/* Aegis Action landing page — page-specific components.
   Loaded AFTER tools.css, which supplies the tokens, nav, footer and .btn. Nothing here
   redefines a token: a retheme edits tools.css and this file follows.

   Two of the blocks below (.gmail-card, .register) are hand-drawn reproductions of real UI
   rather than screenshots. Action ships inside Gmail and behind a login, so there is no
   marketing screenshot to take that would not either leak a real inbox or need one staged.
   Drawing them in CSS also keeps them legible at 375px, which a cropped screenshot never is. */

/* ---------- hero ---------- */
.act-hero { max-width: var(--container); margin: 0 auto; padding: clamp(40px, 7vw, 82px) 24px clamp(32px, 5vw, 56px); display: grid; gap: 44px; }
@media (min-width: 980px) { .act-hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.act-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 5.2vw, 3.3rem); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 18px; text-wrap: balance; }
.act-hero .lede { font-size: 1.1rem; color: #cdd0d6; max-width: 54ch; }

/* Price line above the CTAs, matching the homepage pattern: one action plus one fact, so the
   eye is not asked to choose between two filled buttons. */
.price-line { display: flex; width: fit-content; align-items: baseline; flex-wrap: wrap; gap: 8px; color: #fff; font-size: 1.02rem; font-weight: 600; border-bottom: 1px solid var(--signal); padding-bottom: 5px; margin: 22px 0; }
.price-line:hover { border-bottom-color: #fff; text-decoration: none; }
.price-line span { color: var(--steel); font-weight: 400; font-size: 0.88rem; }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-quiet { color: #fff; font-weight: 600; font-size: 0.94rem; border-bottom: 1px solid var(--hairline); padding-bottom: 4px; }
.btn-quiet:hover { border-bottom-color: #fff; text-decoration: none; }
.hero-note { color: var(--steel); font-size: 0.86rem; margin-top: 20px; max-width: 50ch; }

/* ---------- the Gmail card reproduction ---------- */
.gmail-card { background: #F2F3F5; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.5); max-width: 390px; width: 100%; margin: 0 auto; color: #1A1F2B; font-size: 0.82rem; line-height: 1.45; }
.gc-bar { display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: #78909C; color: #fff; font-size: 0.8rem; font-weight: 600; }
.gc-bar .mark { width: 20px; height: 20px; border-radius: 4px; background: var(--signal); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; flex: none; }
.gc-body { background: #fff; padding: 14px 16px 16px; }
.gc-from { font-size: 0.74rem; color: #5F6368; }
.gc-subject { font-weight: 600; font-size: 0.9rem; margin: 2px 0 12px; }
.gc-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-flag { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; padding: 3px 7px; border-radius: 3px; text-transform: uppercase; }
.gc-flag.commercial { color: #C62828; border: 1px solid rgba(198,40,40,0.4); background: rgba(198,40,40,0.06); }
.gc-flag.date { color: #6A1B9A; border: 1px solid rgba(106,27,154,0.35); background: rgba(106,27,154,0.05); }
.gc-label { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; color: #1A5FB4; text-transform: uppercase; margin: 14px 0 6px; }
.gc-summary { color: #3c4043; font-size: 0.81rem; }
.gc-action { background: #F7F8FA; border: 1px solid #D0D4DA; border-radius: 8px; padding: 10px 12px; margin-bottom: 7px; }
.gc-action .t { font-weight: 600; font-size: 0.81rem; margin-bottom: 5px; }
.gc-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.7rem; color: #5F6368; }
.gc-chip { font-family: var(--font-mono); font-weight: 600; padding: 1px 7px; border-radius: 10px; font-size: 0.64rem; }
.gc-chip.red { background: rgba(198,40,40,0.1); color: #C62828; }
.gc-chip.amber { background: rgba(176,96,0,0.12); color: #B06000; }
.gc-chip.grey { background: rgba(95,99,104,0.1); color: #5F6368; }
.gc-captured { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; font-size: 0.75rem; color: #2E7D32; font-weight: 600; }
.gc-captured .undo { color: #00796B; font-weight: 600; text-decoration: underline; }
.gc-more { margin-top: 12px; padding-top: 10px; border-top: 1px solid #E0E3E8; font-size: 0.77rem; color: #1A5FB4; font-weight: 600; }

/* ---------- the Action Centre register reproduction ---------- */
.register { background: #101218; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.rg-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #0d0f14; border-bottom: 1px solid var(--hairline); }
.rg-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #2a2d35; display: block; }
.rg-chrome .url { margin-left: 10px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--steel); }
.rg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.rg-head .title { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.rg-head .count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--steel); letter-spacing: 0.04em; }
.rg-group { padding: 12px 16px 5px; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.rg-row { display: flex; align-items: center; gap: 11px; padding: 9px 16px; border-top: 1px solid rgba(255,255,255,0.05); }
.rg-row .box { width: 14px; height: 14px; border: 1.5px solid #3a3e48; border-radius: 3px; flex: none; }
.rg-row .box.done { background: var(--signal); border-color: var(--signal); }
.rg-row .t { flex: 1; color: #e2e5ea; font-size: 0.85rem; }
.rg-row .t.done { color: var(--steel); text-decoration: line-through; }

/* ---------- alternating feature rows ---------- */
.act-section { max-width: var(--container); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 24px; }
.act-section + .act-section { border-top: 1px solid var(--hairline); }
.act-section h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; line-height: 1.15; margin: 12px 0 14px; text-wrap: balance; max-width: 24ch; }
.act-section .sub { color: #cdd0d6; max-width: 60ch; }
.split { display: grid; gap: 44px; align-items: center; margin-top: 44px; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > *:first-child { order: 2; } }
.split-copy h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.split-copy p { color: #cdd0d6; margin-bottom: 14px; max-width: 48ch; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 26px; margin-top: 44px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 2px solid var(--signal); padding-top: 18px; }
.step .n { font-family: var(--font-mono); color: var(--signal); font-size: 0.78rem; margin-bottom: 9px; }
.step h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; margin-bottom: 7px; }
.step p { color: #cdd0d6; font-size: 0.93rem; }

/* ---------- capability cards ---------- */
.caps { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 720px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .caps { grid-template-columns: repeat(3, 1fr); } }
.cap { background: var(--card-bg); border: 1px solid var(--hairline); border-radius: 12px; padding: 24px 22px; }
.cap .tag { display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); border: 1px solid rgba(91,95,239,0.5); border-radius: 3px; padding: 3px 7px; margin-bottom: 13px; }
.cap h3 { font-family: var(--font-display); font-size: 1.04rem; font-weight: 700; margin-bottom: 7px; }
.cap p { color: #cdd0d6; font-size: 0.9rem; }

/* ---------- plans ---------- */
.plans { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--card-bg); border: 1px solid var(--hairline); border-radius: 12px; padding: 28px 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--signal); position: relative; }
.plan.featured::before { content: 'RECOMMENDED'; position: absolute; top: -10px; left: 22px; background: var(--signal); color: #fff; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; padding: 3px 9px; border-radius: 3px; }
.plan .name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.plan .price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin: 12px 0 2px; }
.plan .price span { font-family: var(--font-body); font-size: 0.82rem; color: var(--steel); font-weight: 400; }
.plan .cad { font-size: 0.8rem; color: var(--steel); margin-bottom: 18px; min-height: 1.2em; }
.plan ul { list-style: none; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0; font-size: 0.89rem; color: #cdd0d6; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; gap: 10px; }
.plan li::before { content: '—'; color: var(--signal); flex: none; }
.plan .plan-cta { display: block; text-align: center; font-weight: 700; font-size: 0.9rem; padding: 12px; border-radius: 6px; border: 1px solid var(--hairline); color: #fff; }
.plan .plan-cta:hover { text-decoration: none; opacity: 0.85; }
.plan.featured .plan-cta { background: var(--signal); border-color: var(--signal); }

/* ---------- early-access form ---------- */
.signup { background: linear-gradient(180deg, var(--card-2), var(--card-bg)); border: 1px solid var(--hairline); border-radius: 14px; padding: clamp(28px, 4vw, 40px); margin-top: 8px; }
.signup h2 { margin-top: 0; max-width: 20ch; }
.ea-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; max-width: 540px; }
.ea-form input[type=email] { flex: 1 1 260px; background: var(--ink); border: 1px solid var(--hairline); border-radius: 6px; color: #fff; font-family: var(--font-body); font-size: 0.98rem; padding: 13px 14px; outline: none; }
.ea-form input[type=email]:focus { border-color: var(--signal); }
.ea-form input[type=email]::placeholder { color: #4a4e57; }
.ea-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ea-status { margin-top: 14px; font-size: 0.9rem; min-height: 1.3em; }
.ea-status.ok { color: var(--ok); }
.ea-status.err { color: #ffb3a6; }
.ea-note { color: var(--steel); font-size: 0.84rem; margin-top: 12px; max-width: 56ch; }

/* ---------- faq ---------- */
.act-faq { max-width: 820px; margin-top: 36px; }
.act-faq details { border-top: 1px solid var(--hairline); padding: 16px 0; }
.act-faq details:last-child { border-bottom: 1px solid var(--hairline); }
.act-faq summary { font-weight: 600; cursor: pointer; font-size: 1.02rem; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.act-faq summary::-webkit-details-marker { display: none; }
.act-faq summary::after { content: '+'; color: var(--signal); font-family: var(--font-mono); flex: none; }
.act-faq details[open] summary::after { content: '\2212'; }
.act-faq p { color: #cdd0d6; margin: 12px 0 0; max-width: 70ch; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
