/* Home page. Fonts and brand colors come from styles.css (shared with the subpages). */

.home {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 500 17px/1.55 Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.home a { color: inherit; }
.home .wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
.home h1, .home h2, .home h3 { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.home h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; }
.home p { margin: 0; }
.eyebrow { color: var(--apricot); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--night); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Buttons */
.pill { display: inline-block; background: var(--apricot); color: #1b1006 !important; text-decoration: none; font-weight: 700;
        border-radius: 999px; padding: 15px 26px; transition: transform .15s ease, filter .15s ease; }
.pill:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pill.small { padding: 10px 18px; font-size: 0.92rem; }
.link { color: var(--mist) !important; text-decoration: none; font-weight: 700; }
.link:hover { color: var(--ink) !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(11, 15, 26, 0.82); backdrop-filter: blur(14px);
       -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(42, 53, 80, 0.6); }
.top-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.top-row img { display: block; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 700; }
.top nav a:hover { color: var(--ink); }

/* Phones: the screenshots, framed like the real thing */
.phone { margin: 0; justify-self: center; width: min(330px, 78vw); aspect-ratio: 1100 / 2390;
         border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #2a3350, #121829);
         box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(205, 210, 226, .08); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px;
        background: radial-gradient(900px 500px at 80% 10%, rgba(244, 162, 97, .14), transparent 60%),
                    radial-gradient(700px 500px at 10% 90%, rgba(27, 33, 66, .9), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 0.98; }
.home .dot { color: var(--apricot); }
.hero .lede { color: var(--apricot); font-family: "Inter Tight", Inter, sans-serif; font-weight: 800;
              font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; margin-top: 14px; max-width: 16em; }
.hero .body { color: var(--mist); max-width: 30em; font-size: 1.12rem; margin-top: 22px; }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 32px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 12px;
         border: 1px solid var(--rule); border-radius: 999px; color: var(--mist); font-size: 0.86rem; font-weight: 700;
         background: rgba(18, 24, 41, .7); }
.badge span { width: 8px; height: 8px; border-radius: 50%; background: #4fd18b; box-shadow: 0 0 0 4px rgba(79, 209, 139, .18); }

/* Two phones, one leaning on the other. Sized from the column, so they never reach the words. */
.hero-phones { position: relative; width: 100%; max-width: 480px; justify-self: end; aspect-ratio: 1 / 1.4; }
.hero-phones .phone { position: absolute; width: 60%; border-radius: clamp(30px, 9vw, 46px); }
.hero-phones .phone img { border-radius: clamp(22px, 7vw, 37px); }
.hero-phones .front { right: 2%; top: 5%; transform: rotate(3deg); z-index: 2; }
.hero-phones .back { left: 2%; top: 0; transform: rotate(-6deg); opacity: .92; filter: saturate(.95); }

/* Mode legend */
.modes { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 22px 0; }
.modes .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.modes p { color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.modes ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.modes li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.modes li::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--c); }

/* Features */
.feature { padding: 96px 0; }
.feature + .feature { padding-top: 24px; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.feature-grid.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.copy { max-width: 32em; }
.copy > p:not(.eyebrow) { color: var(--mist); font-size: 1.1rem; margin-top: 18px; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 26px; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; border-radius: 50%;
                     border: 2px solid var(--apricot); }
.points b { color: var(--ink); font-weight: 700; }

/* How it works */
.steps { padding: 96px 0 40px; }
.steps ol { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #121829; border: 1px solid var(--rule); border-radius: 22px; padding: 28px; }
.steps li span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
                 background: var(--apricot); color: #1b1006; font-weight: 800; margin-bottom: 18px; }
.steps h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.steps li p { color: var(--muted); margin-top: 8px; }

/* Friends: the social section gets its own glow */
.friends { padding: 110px 0; margin: 40px 0;
           background: radial-gradient(700px 420px at 75% 50%, rgba(244, 162, 97, .12), transparent 70%),
                       linear-gradient(180deg, transparent, rgba(27, 33, 66, .65) 18%, rgba(27, 33, 66, .65) 82%, transparent); }
.social-grid { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.social-grid li { background: rgba(11, 15, 26, .55); border: 1px solid var(--rule); border-radius: 18px; padding: 18px; color: var(--muted); font-size: 0.95rem; }
.social-grid b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.fine { color: var(--muted) !important; font-size: 0.9rem !important; margin-top: 22px !important; }

/* FAQ */
.faq { padding: 40px 0 96px; }
.narrow { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--rule); padding: 20px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--apricot); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; max-width: 40em; }

/* Privacy */
.privacy { padding: 96px 0; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.privacy .body { color: var(--mist); margin-top: 18px; font-size: 1.08rem; }
.privacy .body a { color: var(--apricot); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-radius: 22px; overflow: hidden; }
.rules li { background: #121829; padding: 20px 24px; color: var(--muted); }
.rules b { color: var(--ink); display: block; font-size: 1.05rem; }

/* Beta */
.beta { padding: 40px 0 110px; }
.beta-box { text-align: center; border-radius: 32px; padding: 64px 24px;
            background: radial-gradient(600px 300px at 50% 0%, rgba(244, 162, 97, .22), transparent 70%), var(--dusk); }
.beta-box img { border-radius: 18px; }
.beta-box h2 { margin-top: 18px; }
.beta-box p { color: var(--mist); max-width: 30em; margin: 14px auto 28px; }

/* Footer */
.bottom { border-top: 1px solid var(--rule); padding: 32px 0 48px; }
.bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bottom .sign { display: grid; gap: 8px; }
.bottom .sign p { color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.bottom nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 700; }
.bottom nav a:hover { color: var(--ink); }

/* Small screens: one column, phones above their words */
@media (max-width: 860px) {
  .top nav { display: none; }
  .top-row .pill { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero-grid, .feature-grid, .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-phones { max-width: 420px; justify-self: center; }
  .feature, .friends { padding: 64px 0; }
  .feature-grid.flip { grid-template-columns: 1fr; }
  .feature-grid.flip .phone { order: -1; }
  .steps ol, .social-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } }
