/* Public home page. Same palette as the app (app.css), with more room to breathe. */
@font-face { font-family: "RobotoCard"; font-weight: 500; src: url("/fonts/Roboto-Medium.ttf"); }
@font-face { font-family: "RobotoCard"; font-weight: 700; src: url("/fonts/Roboto-Bold.ttf"); }

:root {
  --bg: #0b0e13; --panel: #141920; --panel-2: #1a2029; --line: #262d38; --text: #e9eef4; --muted: #95a0ad;
  --accent: #2dd4bf; --accent-2: #818cf8; --accent-ink: #04201c; --warm: #fbbf24;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
       font: 16px/1.6 -apple-system, system-ui, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
section { scroll-margin-top: 80px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
       font-weight: 650; font-size: 15px; border-radius: 10px; padding: 10px 18px; white-space: nowrap;
       transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn.primary { background: var(--accent); color: var(--accent-ink);
               box-shadow: 0 6px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); background: color-mix(in srgb, var(--panel) 60%, transparent); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.btn.big { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
       gap: 16px; padding: 14px max(20px, calc((100vw - 1160px) / 2));
       background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px);
       border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; font-size: 17px; }
.logo { width: 28px; height: 28px; display: block; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { padding: 8px 14px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { max-width: 1160px; margin: 0 auto; padding: 72px 20px 56px; display: grid; overflow-x: clip;
        grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
           margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, #f472b6);
        -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 18px; max-width: 560px; margin: 20px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px;
         color: var(--muted); font-size: 14px; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

/* phone mock-up */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.glow { position: absolute; width: min(420px, 80vw); height: min(420px, 80vw); border-radius: 50%; filter: blur(70px); opacity: .55;
        background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%),
                    radial-gradient(circle at 70% 70%, var(--accent-2), transparent 60%); }
.phone { position: relative; width: 270px; aspect-ratio: 9 / 19.5; border-radius: 40px; overflow: hidden;
         border: 10px solid #05070a; background: #000;
         box-shadow: 0 0 0 1px #2c333e, 0 40px 80px -20px rgba(0,0,0,.8), 0 0 60px -20px var(--accent);
         transform: rotate(-3deg); }
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3;
                 width: 84px; height: 22px; border-radius: 20px; background: #05070a; }
.scene { position: absolute; inset: 0; filter: saturate(1.15); }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, #7cc4ff 0%, #b7e1ff 45%, #ffd6a5 100%); }
.sun { position: absolute; width: 70px; height: 70px; border-radius: 50%; right: 34px; top: 70px;
       background: radial-gradient(circle, #fff8d6, #ffd166 60%, transparent 62%); }
.hills { position: absolute; left: 0; width: 200%; bottom: 0; background-repeat: repeat-x; animation: scroll 14s linear infinite; }
.hills.far { height: 52%; opacity: .8; animation-duration: 26s;
             background-image: radial-gradient(ellipse 90px 70px at 60px 100%, #5aa66b 98%, transparent 100%);
             background-size: 150px 100%; }
.hills.near { height: 38%;
              background:
                linear-gradient(#4fa447 0 9%, #3a8a34 9% 14%, transparent 14%),
                repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 2px, transparent 2px 34px),
                repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 2px, transparent 2px 34px),
                linear-gradient(#8a5a33, #6b4424); }
.hills.near::after { content: ""; position: absolute; inset: 14% 0 0; opacity: .5;
                     background: radial-gradient(3px 3px at 20% 30%, #a67443 99%, transparent),
                                 radial-gradient(3px 3px at 60% 60%, #4d321b 99%, transparent),
                                 radial-gradient(3px 3px at 85% 20%, #a67443 99%, transparent);
                     background-size: 68px 68px; }
.blocks { position: absolute; left: 0; width: 200%; bottom: 36%; height: 44px; animation: scroll 9s linear infinite;
          background: repeating-linear-gradient(90deg, transparent 0 60px, #b98a55 60px 104px, transparent 104px 170px),
                      repeating-linear-gradient(0deg, transparent 0 20px, rgba(0,0,0,.12) 20px 22px); }
@keyframes scroll { to { transform: translateX(-50%); } }

.caption { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 84%;
           text-align: center; font-family: "RobotoCard", sans-serif; font-weight: 500; font-size: 17px; line-height: 1.3;
           transition: opacity .35s ease, transform .35s ease, top .35s ease; }
.caption span { display: inline-block; padding: 9px 12px; border-radius: 10px; }
.caption.out { opacity: 0; transform: translate(-50%, -40%) scale(.96); }
.caption.classic span { background: #212124; color: #f0f0f0; }
.caption.captions { top: 62%; }
.caption.captions span { color: #fff; font-weight: 700; font-size: 20px; -webkit-text-stroke: 1px #000;
                         text-shadow: 0 2px 0 #000, 0 0 10px rgba(0,0,0,.5); }
.caption.light span { background: rgba(255,255,255,.92); color: #111; }
.caption.bold { top: 70%; }
.caption.bold span { color: #ffe14d; font-weight: 700; font-size: 23px; -webkit-text-stroke: 1.2px #000;
                     text-shadow: 0 3px 0 #000; }
.phone-ui { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 2; display: grid; gap: 8px; }
.wave { display: flex; gap: 3px; align-items: center; height: 18px; }
.wave i { flex: 1; background: rgba(255,255,255,.85); border-radius: 2px; height: 30%; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -.3s; } .wave i:nth-child(3n) { animation-delay: -.6s; } .wave i:nth-child(5n) { animation-delay: -.8s; }
@keyframes wave { 50% { height: 100%; } }
.progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; }
.progress span { display: block; height: 100%; width: 40%; background: #fff; animation: prog 9s linear infinite; }
@keyframes prog { from { width: 0; } to { width: 100%; } }

.float-card { position: absolute; z-index: 4; display: grid; padding: 10px 14px; border-radius: 12px; font-size: 13px;
              background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line);
              backdrop-filter: blur(8px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); animation: bob 6s ease-in-out infinite; }
.float-card strong { font-size: 14px; }
.float-card span { color: var(--muted); }
.float-card::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
                      position: absolute; left: -4px; top: 50%; margin-top: -4px; box-shadow: 0 0 12px var(--accent); }
.float-card.one { left: 2%; top: 22%; }
.float-card.two { right: 0; bottom: 18%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { max-width: 1160px; margin: 0 auto; padding: 84px 20px; }
.section h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 780; max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section > h2.center { margin-bottom: 46px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
         counter-reset: step; }
.steps li { position: relative; padding: 28px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 800;
            color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 18px; }
.steps h3, .feature h3 { font-size: 19px; margin-bottom: 8px; }
.steps p, .feature p, .trust-item p { color: var(--muted); margin: 0; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel));
           border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
        font-weight: 800; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
        border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.showcase-copy p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin: 18px 0 26px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.swatch { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; display: grid;
          border: 1px solid var(--line); font-family: "RobotoCard", sans-serif;
          background: linear-gradient(180deg, #7cc4ff 0, #b7e1ff 58%, #4fa447 58% 62%, #3a8a34 62% 64%,
                                      #8a5a33 64%, #6b4424 100%); }
.s-captions, .s-bold { filter: brightness(.85); }
.swatch:nth-child(even) { transform: translateY(22px); }
.swatch span { align-self: center; justify-self: center; text-align: center; font-size: 13px; line-height: 1.25; margin: 0 8px; }
.s-classic span { background: #212124; color: #f0f0f0; padding: 7px 9px; border-radius: 7px; }
.s-captions span { align-self: end; margin-bottom: 38%; color: #fff; font-weight: 700; font-size: 15px;
                   -webkit-text-stroke: .8px #000; text-shadow: 0 2px 0 #000; }
.s-light span { background: rgba(255,255,255,.92); color: #111; padding: 7px 9px; border-radius: 7px; }
.s-bold span { align-self: end; margin-bottom: 28%; color: #ffe14d; font-weight: 700; font-size: 17px;
               -webkit-text-stroke: 1px #000; text-shadow: 0 2px 0 #000; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 24px; }
.trust-item { padding: 24px 0 0; border-top: 1px solid var(--line); }
.trust-item h3 { font-size: 17px; margin-bottom: 8px; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; display: flex;
               justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

.cta { max-width: 1120px; margin: 40px auto 90px; padding: 64px 24px; text-align: center; border-radius: 28px;
       background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
                   linear-gradient(180deg, var(--panel-2), var(--panel));
       border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.cta h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.cta p { color: var(--muted); font-size: 17px; margin: 14px 0 28px; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted);
          padding: 26px max(20px, calc((100vw - 1160px) / 2)); border-top: 1px solid var(--line); }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 24px; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions, .ticks { justify-content: center; }
  .hero-visual { min-height: 520px; }
  .steps, .features, .trust { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta .btn.ghost { display: none; }
  .steps, .features, .trust { grid-template-columns: 1fr; }
  .section { padding: 60px 16px; }
  .hero { padding: 36px 16px 32px; }
  .float-card.one { left: 0; top: 10%; }
  .float-card.two { right: 0; bottom: 8%; }
  .swatches { gap: 10px; }
  .swatch span { font-size: 11px; }
  .cta { margin: 20px 16px 60px; padding: 48px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- pricing ---------- */
.billing-toggle { display: flex; justify-content: center; gap: 4px; width: max-content; margin: -20px auto 36px;
                  padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.billing-toggle button { font: inherit; font-size: 14px; font-weight: 650; color: var(--muted); background: none; border: 0;
                         border-radius: 9px; padding: 8px 16px; cursor: pointer; }
.billing-toggle button.on { background: var(--panel-2); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.billing-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.save { color: var(--accent); font-size: 12px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 20px;
        background: var(--panel); border: 1px solid var(--line); }
.plan.featured { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--panel-2)), var(--panel));
                 border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
                 box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.tag { position: absolute; top: -12px; left: 28px; font-size: 12px; font-weight: 700; color: var(--accent-ink);
       background: var(--accent); border-radius: 99px; padding: 3px 10px; }
.plan h3 { font-size: 20px; }
.price { margin: 14px 0 0; }
.price strong { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: 14px; }
.per-month { color: var(--muted); font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.plan .btn { width: 100%; }
.plans-note { max-width: 720px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 440px; } }
.footer a { color: inherit; }
