/* GotEmail: the app's own look. A dark frame (#282828) around white cards with 13 px
   corners, grey pills, the blue #3F86F7, and the Mac's system font. */

:root {
    --frame: #282828;
    --frame-raised: #3a3a3a;
    --frame-text: #ededed;
    --frame-muted: #8c8c8c;
    --card: #ffffff;
    --soft: #f5f5f7;
    --text: #171717;
    --text-2: #737373;
    --text-3: #8a8a8a;
    --hairline: #ededed;
    --outline: #e3e3e3;
    --pill: #f3f3f3;
    --pill-text: #6e6e6e;
    --blue: #3f86f7;
    --blue-dark: #2c6fe0;
    --radius: 13px;
    --radius-lg: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--card);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg.i { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 24px; }
.center { text-align: center; }

/* ── Nav ── */
nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(1.8) blur(20px);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 54px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-right: auto; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 13.5px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { font-size: 13px; font-weight: 600; color: #fff; background: var(--text); padding: 7px 15px; border-radius: 99px; transition: background .2s; }
.nav-cta:hover { background: #000; }

/* ── Buttons and pills ── */
.btn { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; padding: 14px 26px; border-radius: 99px; transition: background .2s, transform .2s, box-shadow .2s; }
.btn svg.i { font-size: 19px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(63, 134, 247, 0.28); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-quiet { color: var(--text); border: 1px solid var(--outline); background: #fff; }
.btn-quiet:hover { background: var(--soft); }
.btn-wide { width: 100%; justify-content: center; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--pill-text); background: var(--pill); padding: 5px 11px; border-radius: 99px; white-space: nowrap; }
.pill-blue { color: #fff; background: var(--blue); }
.pill-code { color: var(--text); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; font-weight: 600; padding: 7px 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: 0.01em; margin-bottom: 16px; }
.eyebrow-light { color: #8fb8ff; }
h2 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
h2.light { color: var(--frame-text); }
h2 .dim { color: var(--frame-muted); }
.sub { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 620px; margin-top: 18px; }
h3 { font-size: 19px; letter-spacing: -0.015em; font-weight: 650; margin-bottom: 6px; }
p { line-height: 1.55; }

/* ── Hero ── */
.hero { text-align: center; padding: 92px 24px 56px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--soft); border: 1px solid rgba(0,0,0,0.05); padding: 6px 14px; border-radius: 99px; margin-bottom: 28px; transition: background .2s; }
.badge:hover { background: #ececef; }
.badge-new { font-weight: 650; color: var(--blue); }
.hero h1 { font-size: clamp(46px, 8.4vw, 92px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 750; }
.lead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; color: var(--text-2); max-width: 640px; margin: 26px auto 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.meta { font-size: 13px; color: var(--text-3); margin-top: 18px; }

.shot { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; }
.shot img { border-radius: 18px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.35); }

/* ── The dark frame band (AI) ── */
.frame-band { background: var(--frame); padding: 120px 0; margin-top: 60px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.card { background: var(--card); border-radius: var(--radius-lg); padding: 28px; }
.ai-card > p { color: var(--text-2); font-size: 15.5px; }
.mock { background: var(--soft); border-radius: var(--radius); padding: 20px; margin-bottom: 26px; min-height: 250px; }

.ask { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--outline); border-radius: 99px; padding: 10px 16px; font-size: 14px; color: var(--text); }
.ask-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; flex: none; }
.draft { background: var(--card); border-radius: var(--radius); padding: 18px; margin-top: 12px; font-size: 14px; color: var(--text); }
.draft-subject { font-weight: 650; margin-bottom: 8px; }
.draft [data-type] { min-height: 66px; color: #333; }
.draft [data-type]::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: var(--blue); margin-left: 2px; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
.draft [data-type].done::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.draft-actions { display: flex; gap: 8px; margin-top: 14px; }

.thread { display: flex; align-items: center; gap: 12px; }
.thread-title { font-weight: 650; font-size: 14.5px; }
.thread-sub { font-size: 12.5px; color: var(--text-2); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.a1 { background: linear-gradient(135deg, #f59e0b, #ef6c3a); }
.a2 { background: #171717; }
.summary { background: var(--card); border-radius: var(--radius); padding: 18px; margin-top: 14px; font-size: 14px; line-height: 1.6; color: #333; }
.summary-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--blue); margin-bottom: 6px; }
mark { background: rgba(63,134,247,.12); color: var(--blue-dark); font-weight: 600; padding: 1px 6px; border-radius: 6px; }

.ai-points { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center; margin-top: 40px; color: var(--frame-text); font-size: 14.5px; }
.ai-points li { display: flex; align-items: center; gap: 8px; }
.ai-points svg { color: #8fb8ff; }

/* ── Codes ── */
.codes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.code-card { background: var(--soft); border-radius: var(--radius-lg); padding: 24px; }
.code-card > p { color: var(--text-2); font-size: 15px; }
.code-card .mock { background: var(--card); min-height: 230px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 1px 0 rgba(0,0,0,0.03); }

.mock-message { justify-content: flex-start !important; }
.msg-subject { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.msg-pills { display: flex; gap: 8px; margin: 12px 0 16px; flex-wrap: wrap; }
.msg-from { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.35; padding-top: 14px; border-top: 1px solid var(--hairline); }
.msg-from span { color: var(--text-2); }
.lines { margin-top: 14px; display: grid; gap: 7px; }
.lines i { display: block; height: 7px; border-radius: 4px; background: var(--hairline); }
.lines i.short { width: 60%; }

.mock-banner { gap: 12px; background: linear-gradient(160deg, #dfe9fb, #f3e9f7) !important; }
.banner { display: flex; align-items: center; gap: 12px; background: var(--frame); color: var(--frame-text); border-radius: 99px; padding: 8px 8px 8px 8px; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.45); }
.banner-disc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--frame-raised); font-size: 18px; flex: none; }
.banner-text { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; }
.banner-text b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 18px; letter-spacing: 0.03em; white-space: nowrap; }
.banner-text span { font-size: 12.5px; color: var(--frame-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-text .banner-line { color: var(--frame-text); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-copy { flex: none; font-size: 13px; font-weight: 600; background: var(--frame-raised); padding: 8px 14px; border-radius: 99px; }
.banner-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--text); font-size: 16px; flex: none; }

.mock-menu { justify-content: flex-start !important; padding: 0 !important; overflow: hidden; background: linear-gradient(160deg, #e6eefc, #eef3f9) !important; }
.menubar { display: flex; justify-content: flex-end; padding: 7px 14px; background: rgba(255,255,255,0.6); font-size: 12px; }
.menubar-mark { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; background: rgba(0,0,0,0.07); padding: 2px 8px; border-radius: 6px; }
.menubar-mark img { width: 14px; height: 14px; border-radius: 4px; }
.menu { margin: 8px 14px 14px auto; width: 82%; background: rgba(255,255,255,0.92); border-radius: 11px; padding: 6px; box-shadow: 0 14px 34px -12px rgba(0,0,0,0.3); font-size: 13px; }
.menu-head { color: var(--text-3); font-size: 11.5px; font-weight: 600; padding: 6px 10px 4px; }
.menu-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 7px; }
.menu-row:nth-child(2) { background: var(--blue); color: #fff; }
.menu-row b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; }
.menu-row .menu-link { font-family: inherit; display: inline-flex; align-items: center; gap: 4px; color: var(--blue); }

/* ── Features ── */
.soft-band { background: var(--soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.feature { background: var(--card); border-radius: var(--radius-lg); padding: 28px; }
.feature > svg.i { font-size: 26px; color: var(--blue); margin-bottom: 18px; }
.feature p { color: var(--text-2); font-size: 15px; }

/* ── Pricing ── */
.plan { max-width: 440px; margin: 48px auto 0; text-align: left; background: var(--card); border: 1px solid var(--outline); border-radius: 26px; padding: 32px; box-shadow: 0 30px 80px -40px rgba(0,0,0,0.25); }
.plan-head { display: flex; align-items: center; gap: 14px; }
.plan-head img { border-radius: 13px; }
.plan-head h3 { margin: 0; }
.plan-head p { font-size: 13.5px; color: var(--text-2); }
.price { margin-top: 26px; font-size: 52px; font-weight: 750; letter-spacing: -0.04em; }
.price s { font-size: 22px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 6px; }
.price-note { font-size: 13.5px; color: var(--text-2); }
.plan-list { list-style: none; margin: 24px 0 28px; display: grid; gap: 11px; font-size: 15px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list svg { color: var(--blue); margin-top: 3px; }
.plan-try { display: block; text-align: center; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.plan-try:hover { color: var(--blue); }

/* ── Footer ── */
footer { border-top: 1px solid var(--hairline); padding: 36px 0 48px; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-inner p { display: flex; gap: 22px; font-size: 13.5px; color: var(--text-2); }
.footer-inner p a:hover { color: var(--text); }
.footer-inner .fine { margin-left: auto; color: var(--text-3); }

/* ── Inner pages: privacy, terms, What's New, thanks ── */
.doc-main { max-width: 720px; margin: 0 auto; padding: 80px 24px 110px; }
.doc-main h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 750; margin-bottom: 14px; }
.doc-main h2 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; font-weight: 700; margin: 44px 0 12px; }
.doc-main p, .doc-main li { font-size: 16px; line-height: 1.65; color: #3a3a3c; }
.doc-main p + p { margin-top: 12px; }
.doc-main ul { padding-left: 20px; margin-top: 10px; display: grid; gap: 10px; }
.doc-main a { color: var(--blue); }
.doc-main a:hover { text-decoration: underline; }
.doc-main code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--pill); padding: 1px 6px; border-radius: 6px; }
.doc-main .muted { color: var(--text-3); font-size: 14px; }
.doc-main .doc-sub, .doc-main .sub { font-size: 19px; color: var(--text-2); line-height: 1.5; }

.releases { margin-top: 40px; display: grid; gap: 16px; }
.release { background: var(--soft); border-radius: var(--radius-lg); padding: 26px 28px; }
.release-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.doc-main .release-head h2 { margin: 0; font-size: 22px; }
.release-head span { font-size: 13.5px; color: var(--text-3); }
.doc-main .release ul { list-style: none; padding: 0; margin: 0; gap: 12px; }
.doc-main .release li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.tag { flex: none; font-size: 11.5px; font-weight: 650; line-height: 1.5; padding: 2px 9px; border-radius: 99px; margin-top: 2px; background: var(--pill); color: var(--pill-text); }
.tag-new { background: rgba(63,134,247,.12); color: var(--blue-dark); }
.tag-fixed { background: rgba(22,163,74,.12); color: #15803d; }

.thanks { text-align: center; }
.thanks-icon { margin: 0 auto 26px; border-radius: 20px; box-shadow: 0 18px 40px -18px rgba(0,0,0,0.35); }
.thanks .doc-sub { max-width: 560px; margin: 0 auto; }
.doc-main .thanks-steps { list-style: none; text-align: left; margin: 40px 0 30px; padding: 0; counter-reset: step; background: var(--soft); border-radius: var(--radius-lg); gap: 0; overflow: hidden; }
.doc-main .thanks-steps li { position: relative; padding: 20px 24px 20px 70px; counter-increment: step; color: var(--text-2); font-size: 15px; border-top: 1px solid rgba(0,0,0,0.05); }
.doc-main .thanks-steps li:first-child { border-top: none; }
.thanks-steps li::before { content: counter(step); position: absolute; left: 24px; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.thanks-steps b { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }
.doc-main a.btn-primary { color: #fff; text-decoration: none; }
.doc-main .thanks-help { margin-top: 22px; font-size: 14px; color: var(--text-2); }
.order-ref { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 26px; font-size: 12.5px; color: var(--text-3); }
.order-ref code { font-size: 12.5px; }

/* ── Motion ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ── Narrow screens ── */
@media (max-width: 920px) {
    .ai-grid, .codes-grid, .feature-grid { grid-template-columns: 1fr; }
    .section { padding: 88px 16px; }
    .frame-band { padding: 88px 0; }
}
@media (max-width: 640px) {
    .doc-main { padding: 56px 16px 80px; }
    .release { padding: 22px; }
    .doc-main .thanks-steps li { padding-left: 62px; }
    .wrap, .nav-inner, .hero, .shot { padding-left: 16px; padding-right: 16px; }
    .nav-links { display: none; }
    .hero { padding-top: 64px; }
    .shot img { border-radius: 12px; }
    .card, .feature, .code-card { padding: 22px; }
    .plan { padding: 24px; }
    .footer-inner .fine { margin-left: 0; }
}
