/* Marketing page. Built on base.css tokens. */

.section { max-width: 1240px; margin: 0 auto; padding: 128px 20px 0; }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 760px; }

/* ---------------------------------------------------------------- nav */

.nav { position: sticky; top: 0; z-index: 20; transition: background 0.2s ease, box-shadow 0.2s ease; }
.nav.scrolled { background: rgba(242, 243, 241, 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { max-width: 1264px; margin: 0 auto; height: 76px; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.nav-links {
  margin: 0 auto; display: flex; gap: 4px; padding: 5px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line);
}
.nav-links a { padding: 8px 18px; border-radius: var(--pill); text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-menu { display: none; }
.mobile-menu { display: grid; gap: 2px; margin: 0 12px 12px; padding: 10px; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow); }
.mobile-menu a { padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; font-size: 17px; }
.mobile-menu a:hover { background: var(--canvas); }

/* ---------------------------------------------------------------- hero */

.hero { padding: 4px 12px 0; }
.hero-sheet {
  max-width: 1400px; margin: 0 auto; border-radius: var(--r-xl); background: var(--gradient);
  padding: 72px clamp(20px, 5vw, 72px) 0; position: relative;
  display: flow-root; /* keeps the phones' negative margin inside, so they hang over the edge */
}
.hero-copy { max-width: 820px; display: grid; gap: 22px; }
.platform-row { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-title { font-size: clamp(46px, 7.6vw, 96px); text-wrap: balance; }
.hero-note { margin-top: -8px; padding-left: 4px; }

.link-form {
  display: flex; align-items: center; gap: 8px; max-width: 640px; height: 66px; padding: 8px 8px 8px 20px;
  border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.link-form:focus-within { border-color: var(--ink); }
.link-form .link-icon { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.link-form input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 17px; }
.link-form input:focus { outline: none; }
.link-form .btn { height: 50px; }

.hero-timeline { margin-top: 88px; }
.timeline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 64px; }
.hero-ruler { animation: reveal 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.2s; }
.hero-ruler .ruler-seg { animation: darken 0.5s ease both; }
.hero-ruler .ruler-seg:nth-child(1) { animation-delay: 0.7s; }
.hero-ruler .ruler-seg:nth-child(2) { animation-delay: 0.95s; }
.hero-ruler .ruler-seg:nth-child(3) { animation-delay: 1.2s; }
.hero-ruler .ruler-seg:nth-child(4) { animation-delay: 1.45s; }
@keyframes reveal { from { clip-path: inset(-90px 100% 0 0); } to { clip-path: inset(-90px 0 0 0); } }
@keyframes darken { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero-phones {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: -150px; padding-top: 30px;
}
.phone-slot { margin: 0; display: grid; justify-items: center; gap: 14px; position: relative; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.phone-slot::before { content: ""; position: absolute; top: -30px; height: 30px; width: 1px; background: var(--ink); left: 50%; }
.phone-slot:nth-child(1) { animation-delay: 0.9s; }
.phone-slot:nth-child(2) { animation-delay: 1.05s; }
.phone-slot:nth-child(3) { animation-delay: 1.2s; }
.phone-slot:nth-child(4) { animation-delay: 1.35s; }
.phone-slot .phone { --w: min(220px, 19vw); }
.phone-slot figcaption { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.phone-slot figcaption .mono { color: var(--ink-3); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

#how { padding-top: 260px; }

/* ---------------------------------------------------------------- steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--paper); border-radius: var(--r-lg); padding: 30px 28px 32px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  font-size: 15px; margin-bottom: 18px;
}

/* ---------------------------------------------------------------- formats */

.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.format-card { background: var(--paper); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line); display: grid; gap: 22px; align-content: start; }
.format-copy { display: grid; gap: 6px; }
.frame, .framing-demo {
  height: 230px; border-radius: var(--r-md); background: var(--mint); display: grid; place-items: center; position: relative;
}
.frame::before {
  content: ""; position: absolute; inset: 0; margin: auto; height: 190px; border-radius: 14px;
  border: 1.5px solid var(--ink); background: linear-gradient(160deg, #f4f7f5, #e7ece9);
}
.frame-916::before { aspect-ratio: 9 / 16; }
.frame-45::before { aspect-ratio: 4 / 5; }
.frame-11::before { aspect-ratio: 1; height: 160px; }
.frame .safe {
  position: absolute; z-index: 1;
  background: repeating-linear-gradient(135deg, rgba(48, 48, 48, 0.32) 0 1.5px, transparent 1.5px 6px);
}
.frame-916 .safe-bottom { width: calc(190px * 9 / 16); height: 32px; bottom: 20px; left: 50%; translate: -50% 0; border-radius: 0 0 13px 13px; }
.frame-916 .safe-right { width: 18px; height: 70px; bottom: 54px; left: calc(50% + 190px * 9 / 32 - 19px); border-radius: 6px 0 0 6px; }
.frame-45 .safe-bottom { width: calc(190px * 4 / 5); height: 22px; bottom: 20px; left: 50%; translate: -50% 0; border-radius: 0 0 13px 13px; }
.frame-cap {
  position: absolute; z-index: 2; left: 50%; translate: -50% 0; bottom: 74px;
  font-size: 11px; font-weight: 600; color: #fff; background: var(--ink); padding: 3px 9px; border-radius: 99px; white-space: nowrap;
}
.frame-45 .frame-cap { bottom: 60px; }
.frame-11 .frame-cap { bottom: 64px; }
.framing-demo { display: flex; gap: 18px; justify-content: center; align-items: center; background: var(--lilac); }
.mini-wrap { margin: 0; display: grid; gap: 8px; justify-items: center; font-size: 13px; color: var(--ink-2); }
.mini {
  width: 84px; aspect-ratio: 9 / 16; border-radius: 12px; border: 1.5px solid var(--ink);
  position: relative; overflow: hidden; background: var(--bg);
}
.mini svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini .fit-bg { inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); filter: blur(5px); opacity: 0.8; }
.mini .fit-fg { inset: auto 0; top: 50%; translate: 0 -50%; height: auto; aspect-ratio: 16 / 9; }

/* ---------------------------------------------------------------- anatomy */

.anatomy-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 56px; align-items: center; }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.callouts li { display: grid; gap: 8px; max-width: 340px; position: relative; }
.callouts-left li { justify-self: end; text-align: right; justify-items: end; }
.callouts-left li::after, .callouts-right li::before {
  content: ""; position: absolute; top: 13px; width: 32px; height: 1px; background: var(--hair);
}
.callouts-left li::after { right: -44px; }
.callouts-right li::before { left: -44px; }
.callout-tag { justify-self: inherit; }
.callouts-right .callout-tag { justify-self: start; }
.cap-sample {
  font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: 14px; color: #fff; background: #3d3d3d;
  padding: 3px 10px; border-radius: 8px;
}
.cap-sample mark { background: none; color: var(--caption); }
.anatomy-phone { position: relative; }
.phone-lg { --w: 290px; }
.score-float {
  position: absolute; top: 74px; right: -34px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  display: grid; justify-items: center; padding: 10px 16px; line-height: 1.1;
}
.score-float b { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--good); }

/* ---------------------------------------------------------------- ranking */

.rank-panel {
  background: var(--lilac); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
}
.rank-copy { display: grid; gap: 20px; }
.legend { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.key { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.key-solid, .seg.solid { background: linear-gradient(#5b5b5b, #303030); }
.key-hatch, .seg.hatch { background: repeating-linear-gradient(135deg, var(--ink) 0 2.5px, transparent 2.5px 6.5px), rgba(255, 255, 255, 0.35); }
.key-dots, .seg.dots { background: radial-gradient(var(--ink) 1.4px, transparent 1.8px) 0 0 / 7px 7px, rgba(255, 255, 255, 0.25); }
.rank-chart { display: grid; grid-template-columns: auto 1fr; gap: 14px; height: 340px; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--ink-2); padding-bottom: 30px; }
.chart-cols { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line-2); padding-bottom: 0; position: relative; margin-bottom: 30px; }
.col { position: relative; width: min(48px, 9%); height: var(--h); display: flex; flex-direction: column; gap: 4px; }
.col .seg { display: block; height: var(--s); border-radius: 14px; }
.col span { position: absolute; bottom: -28px; left: 50%; translate: -50% 0; font-size: 13px; color: var(--ink-2); }

/* ---------------------------------------------------------------- pricing */

.pricing-panel { background: var(--mint); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--paper); border-radius: var(--r-lg); padding: 30px 28px 28px; display: grid; gap: 14px; align-content: start; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.amount { font-size: 56px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.per { color: var(--ink-3); font-size: 15px; }
.plan-credits { font-size: 15.5px; }
.plan-credits b { font-weight: 600; }
.plan-ruler {
  height: 24px; margin: 4px 0 6px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 6px) left / calc(var(--n) * 1%) 100% no-repeat,
    repeating-linear-gradient(90deg, var(--hair) 0 1px, transparent 1px 6px) left bottom / 100% 60% no-repeat;
}
.plan-list { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 10px; font-size: 15.5px; }
.plan-list li { display: flex; gap: 10px; align-items: center; }
.plan-list svg { width: 18px; height: 18px; flex: none; color: var(--good); }
.plan-featured { background: var(--ink); color: #fff; }
.plan-featured .per, .plan-featured .faint { color: rgba(255, 255, 255, 0.55); }
.plan-featured .plan-list svg { color: #9fe0bf; }
.plan-featured .badge-ink { background: #fff; color: var(--ink); }
.plan-featured .plan-ruler {
  background:
    repeating-linear-gradient(90deg, #fff 0 1.5px, transparent 1.5px 6px) left / calc(var(--n) * 1%) 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px 6px) left bottom / 100% 60% no-repeat;
}
.plan-featured .btn-dark { background: #fff; color: var(--ink); border-color: #fff; }
.plan-featured .btn-dark:hover { background: #eef0ee; }
.plan .btn { margin-top: auto; }
.topups { margin-top: 16px; background: rgba(255, 255, 255, 0.55); border-radius: var(--r-lg); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.topups > div:first-child { display: grid; gap: 4px; }
.pack-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pack {
  display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: baseline; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 18px; min-width: 150px;
}
.pack:hover { border-color: var(--ink-3); }
.pack b { font-weight: 600; }
.pack span:nth-child(2) { justify-self: end; font-size: 18px; }
.pack .tiny { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- faq */

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq-list { display: grid; }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 20px; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; translate: 0 -50%;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 60ch; }

/* ---------------------------------------------------------------- closing call to action */

.cta-panel {
  background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 80px);
  display: grid; gap: 20px; justify-items: start; position: relative; overflow: hidden;
}
.cta-panel .lede { color: rgba(255, 255, 255, 0.7); }
.cta-ruler { width: 100%; margin-bottom: 28px; --hair: rgba(255, 255, 255, 0.25); --ink: #fff; }
.cta-ruler .ruler-seg::before { display: none; }
.link-form-dark { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); box-shadow: none; width: 100%; }
.link-form-dark:focus-within { border-color: #fff; }
.link-form-dark input { color: #fff; }
.link-form-dark input::placeholder { color: rgba(255, 255, 255, 0.5); }
.link-form-dark .link-icon { color: rgba(255, 255, 255, 0.5); }
.cta-panel :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- footer */

.footer { max-width: 1240px; margin: 0 auto; padding: 88px 20px 40px; display: grid; gap: 40px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-top: 40px; border-top: 1px solid var(--line-2); }
.footer-brand { display: grid; gap: 12px; align-content: start; justify-items: start; max-width: 300px; }
.footer-brand .logo img { height: 30px; }
.footer-mail { color: var(--ink); }
.footer-mail:not([href]) { display: none; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols div { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer-head { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.footer-cols a, .footer-cols button {
  text-decoration: none; color: var(--ink-2); font-size: 15px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.footer-cols a:hover, .footer-cols button:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .anatomy-grid { grid-template-columns: 1fr; justify-items: center; gap: 48px; }
  .anatomy-phone { order: -1; }
  .callouts { grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; }
  .callouts li, .callouts-left li { justify-self: start; text-align: left; justify-items: start; max-width: none; }
  .callouts li::before, .callouts li::after { display: none; }
  .rank-panel { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 860px) {
  .nav-links, .nav-signin { display: none; }
  .nav-menu { display: inline-grid; }
  .steps { grid-template-columns: 1fr; }
  .callouts { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; gap: 16px; }
  .hero-phones {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * clamp(20px, 5vw, 72px)) -110px;
    padding: 30px clamp(20px, 5vw, 72px) 8px; scrollbar-width: none;
  }
  .hero-phones::-webkit-scrollbar { display: none; }
  .phone-slot { scroll-snap-align: center; }
  .phone-slot::before { display: none; }
  .phone-slot .phone { --w: 200px; }
  #how { padding-top: 200px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 0 8px; }
  .hero-sheet { padding-top: 40px; border-radius: 30px; }
  .link-form { flex-wrap: wrap; height: auto; border-radius: var(--r-md); padding: 8px; }
  .link-form .link-icon { margin-left: 10px; }
  .link-form input { height: 48px; }
  .link-form .btn { width: 100%; }
  .hero-timeline { margin-top: 56px; }
  .timeline-head { flex-direction: column; gap: 2px; margin-bottom: 56px; }
  .hero-ruler .ruler-label { font-size: 11px; padding-left: 6px; }
  .hero-ruler .ruler-label b { font-size: 12px; }
  .hero-ruler .ruler-seg:nth-child(even) .ruler-label { bottom: 40px; }
  .format-grid { grid-template-columns: 1fr; }
  .callouts { grid-template-columns: 1fr; }
  .phone-lg { --w: 250px; }
  .score-float { right: -18px; }
  .rank-chart { height: 280px; }
  .topups { padding: 20px; }
  .pack-row { width: 100%; }
  .pack { flex: 1; min-width: 0; }
  .faq-list summary { font-size: 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
