:root {
  color-scheme: light;
  --page: #e9ede8;
  --surface: #f4f4ee;
  --surface-soft: #eef0ea;
  --line: #d2dbd2;
  --ink: #29352e;
  --muted: #5a685f;
  --green: #426456;
  --green-dark: #365447;
  --green-soft: #dde8e0;
  --red: #904b43;
  --red-soft: #f5e9e6;
  --shadow: 0 18px 48px rgba(41, 53, 46, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--page); }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #6d9b7d; outline-offset: 3px; }

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(5vw, 22px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 244, 238, .86);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.5px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--green-soft); color: var(--green); }
.brand-mark svg, .preview-shield svg { width: 25px; height: 25px; fill: currentColor; stroke: currentColor; stroke-width: 0.7; stroke-linejoin: round; }
.brand-mark svg .icon-arrow, .preview-shield svg .icon-arrow { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter; }
.brand-mark svg .icon-detail, .preview-shield svg .icon-detail { fill: var(--green-soft); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); margin-left: auto; }
.main-nav a, .topbar-note a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .topbar-note a:hover { color: var(--green-dark); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; border: 1px solid var(--green); border-radius: 10px; background: var(--green); color: white; font-size: 14px; font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); background: var(--green-dark); }
.button-small { min-height: 39px; padding: 9px 13px; font-size: 12px; }
.button-outline { border-color: #bdccc0; background: transparent; color: var(--green-dark); }
.button-outline:hover { background: var(--green-soft); }

.home-page { background: radial-gradient(ellipse at 78% 4%, rgba(221, 232, 224, .75), transparent 35%), var(--page); }
.home-page main { max-width: 1180px; margin: 0 auto; padding: 0 28px 72px; }
.home-hero { min-height: 580px; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(42px, 7vw, 94px); padding: 84px 0 88px; }
.hero-copy { max-width: 590px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #4b7462; box-shadow: 0 0 0 4px var(--green-soft); }
.hero-copy h1 { max-width: 610px; margin: 0; color: var(--ink); font-size: clamp(42px, 5.8vw, 66px); font-weight: 780; line-height: 1.04; letter-spacing: -.055em; }
.hero-copy h1 span { color: var(--green); }
.hero-copy h1 .headline-or { display: block; margin: .12em 0; color: var(--red); font-size: .56em; letter-spacing: -.025em; }
.hero-intro { max-width: 540px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.68; }
.hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 30px; }
.text-link { color: var(--green-dark); font-size: 14px; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-note { margin: 16px 0 0; color: #728076; font-size: 12px; }
.extension-preview { width: min(100%, 440px); justify-self: center; padding: 26px; border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 22px; background: var(--surface); box-shadow: 0 20px 50px rgba(144, 45, 36, .28), 0 0 22px rgba(144, 45, 36, .16); transform: rotate(1.2deg); }
.preview-top { display: flex; align-items: center; gap: 13px; }
.preview-shield { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.preview-top strong { display: block; margin-top: 3px; font-size: 15px; }
.preview-kicker, .command-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.preview-rule { height: 1px; margin: 21px 0 17px; background: var(--line); }
.preview-message { margin: 0; font-size: 14px; line-height: 1.55; }
.preview-command { display: grid; gap: 8px; margin-top: 17px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.preview-command code { color: var(--red); font-size: 12px; font-weight: 650; }
.signal-viewport { height: 1.45em; overflow: hidden; line-height: 1.45; }
.signal-viewport code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .18s ease, transform .18s ease; }
.signal-viewport code.is-exiting { opacity: 0; transform: translateY(100%); }
.signal-viewport code.is-entering { opacity: 0; transform: translateY(-100%); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.preview-privacy { display: flex; align-items: center; gap: 8px; margin: 14px 0 19px; color: var(--green-dark); font-size: 11px; font-weight: 650; }
.preview-privacy span { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); }
.preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.preview-button { min-height: 39px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--green-dark); font-size: 11px; font-weight: 700; text-align: center; }
.preview-button-primary { border-color: var(--green); background: var(--green); color: #fff; }

.protection-section { padding: 70px 0 76px; border-top: 1px solid var(--line); }
.section-heading { max-width: 690px; margin: 0 auto 34px; text-align: center; }
.section-heading .eyebrow, .install-copy .eyebrow, .teams-copy .eyebrow { justify-content: center; margin-bottom: 12px; }
.section-heading h2, .install-copy h2, .teams-copy h2 { margin: 0; font-size: clamp(28px, 3.8vw, 41px); line-height: 1.12; letter-spacing: -.04em; }
.section-heading > p:last-child { max-width: 640px; margin: 15px auto 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 205px; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.feature-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 19px; border: 1px solid #d0dfd3; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.install-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 55px; padding: 66px 42px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.install-copy .eyebrow { justify-content: flex-start; }
.install-copy h2 { max-width: 420px; }
.install-copy > p:not(.eyebrow) { margin: 15px 0 23px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.install-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.install-steps li { display: flex; align-items: flex-start; gap: 14px; }
.install-steps li > span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }
.install-steps strong { display: block; font-size: 13px; }
.install-steps p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.install-steps code { padding: 2px 5px; border-radius: 4px; background: var(--surface-soft); color: var(--green-dark); font-size: 11px; }

.teams-section { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 54px; padding: 30px 34px; border: 1px solid #cbd8cd; border-radius: 16px; background: rgba(221, 232, 224, .58); }
.teams-copy { max-width: 740px; }
.teams-copy .eyebrow { justify-content: flex-start; margin-bottom: 9px; }
.teams-copy h2 { font-size: 23px; }
.teams-copy p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.teams-section .button { flex: 0 0 auto; }
.coming-soon-badge { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #d9c992; border-radius: 99px; background: #f2ecd9; color: #796328; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.home-footer { max-width: 1180px; display: flex; align-items: center; gap: 20px; margin: 0 auto; padding: 22px 28px 30px; color: var(--muted); font-size: 11px; }
.home-footer .footer-brand { color: var(--green-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.home-footer a:last-child { margin-left: auto; text-decoration: none; }

/* Organization console and email-link pages */
.topbar-note { color: var(--muted); font-size: 12px; }
.dev-badge { display: inline-flex; align-items: center; margin-left: 7px; padding: 4px 8px; border: 1px solid #d9c992; border-radius: 99px; background: #f2ecd9; color: #796328; font-size: 9px; font-weight: 800; letter-spacing: .06em; vertical-align: middle; }
body:not(.home-page) main { max-width: 1010px; margin: 0 auto; padding: 62px 24px 56px; }
.hero { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.hero .eyebrow { justify-content: center; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4b7462; box-shadow: 0 0 0 4px var(--green-soft); }
.hero h1 { margin: 16px 0 12px; font-size: clamp(34px, 5vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span { color: var(--green); }
.intro { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.65; }
.setup-card, .dashboard-card { max-width: 760px; margin: 0 auto; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.step-tag { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.setup-card h2 { margin: 12px 0 7px; font-size: 24px; letter-spacing: -.035em; }
.muted { margin: 0 0 21px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.setup-card label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 750; }
.input-row { display: flex; gap: 9px; }
.input-row input { min-width: 0; flex: 1; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 14px; }
.input-row input:focus { border-color: var(--green); outline: 3px solid rgba(66, 100, 86, .14); }
.input-row button, .primary-btn { min-height: 43px; padding: 10px 15px; border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: white; font-size: 12px; font-weight: 750; cursor: pointer; }
.input-row button:hover, .primary-btn:hover { background: var(--green-dark); }
.input-row button:disabled, .primary-btn:disabled { cursor: wait; opacity: .58; }
.form-note { margin: 10px 0 0; color: #77847b; font-size: 11px; }
.form-message { display: none; margin: 15px 0 0; padding: 11px 13px; border: 1px solid #cbd9cf; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; }
.form-message.visible { display: block; }
.form-message.error { border-color: #e5c9c3; background: var(--red-soft); color: var(--red); }
.form-message[hidden] { display: none; }
.mailbox-link, .mail-action { display: inline-block; margin-top: 13px; color: var(--green-dark); font-size: 12px; font-weight: 750; text-decoration: none; }
.dashboard-card { max-width: 900px; }
.dashboard-card[hidden], .new-code[hidden] { display: none; }
.dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dashboard-heading h2 { margin: 9px 0 3px; font-size: 25px; letter-spacing: -.035em; }
.dashboard-heading .muted { margin: 0; }
.dashboard-heading strong { color: var(--green-dark); }
.quiet-btn, .secondary-btn { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--green-dark); font-size: 12px; font-weight: 700; cursor: pointer; }
.code-create { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 23px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.code-create h3, .data-section h3 { margin: 0 0 5px; font-size: 14px; }
.code-create p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.new-code { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-top: 12px; padding: 15px; border: 1px solid #cbd9cf; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); }
.new-code strong { flex-basis: 100%; font-size: 12px; }
.new-code code { font-size: 13px; overflow-wrap: anywhere; }
.text-button { padding: 6px; border: 0; background: none; color: var(--green-dark); font-size: 12px; font-weight: 750; cursor: pointer; }
.data-section { margin-top: 23px; }
.data-section h3 { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.empty-state { padding: 12px 4px; color: var(--muted); font-size: 12px; }
.data-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 4px; border-bottom: 1px solid #e7ebe5; }
.data-row > div { min-width: 0; display: grid; gap: 4px; }
.data-row strong { font-size: 12px; overflow-wrap: anywhere; }
.data-row span:not(.row-badge) { color: var(--muted); font-size: 11px; }
.row-badge { padding: 5px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green-dark); font-size: 10px; white-space: nowrap; }
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; max-width: 850px; margin: 42px auto 0; }
.how-it-works article { position: relative; padding-left: 39px; }
.number { position: absolute; top: 0; left: 0; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.how-it-works h3 { margin: 1px 0 6px; font-size: 13px; }
.how-it-works p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
body:not(.home-page) footer { max-width: 1010px; display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 20px 24px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
body:not(.home-page) footer a { color: var(--green-dark); text-decoration: none; }
.verify-wrap { max-width: 720px !important; padding-top: 90px !important; }
.verify-wrap .setup-card { max-width: 600px; }
.verify-wrap h1, .mailbox-head h1 { margin: 11px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.mailbox-main { max-width: 850px !important; padding-top: 48px !important; }
.mailbox-head .muted { max-width: 600px; }
.mailbox-address { color: var(--green-dark); font-size: 14px; font-weight: 750; }
.mail-messages { display: grid; gap: 13px; margin-top: 24px; }
.mail-card { padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.mail-card h2 { margin: 0 0 5px; font-size: 15px; }
.mail-meta { margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.mail-card pre { padding: 13px; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font: inherit; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

.policy-page { max-width: 780px !important; margin: 0 auto !important; padding: 58px 24px 68px !important; }
.policy-page h1 { margin: 10px 0 6px; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.045em; }
.policy-page h2 { margin: 31px 0 8px; font-size: 19px; letter-spacing: -.025em; }
.policy-page p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.policy-page .eyebrow { margin-bottom: 0; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.policy-page .policy-updated { margin: 0 0 26px; font-size: 12px; }
.policy-page code { color: var(--green-dark); font-size: .92em; }
.policy-page .policy-back { margin-top: 36px; }
.policy-page a, body:not(.home-page) footer a { color: var(--green-dark); }

@media (max-width: 850px) {
  .topbar { gap: 15px; padding-inline: 22px; }
  .main-nav { gap: 16px; }
  .home-hero { min-height: 0; gap: 30px; padding: 67px 0; }
  .hero-copy h1 { font-size: clamp(40px, 6vw, 54px); }
  .extension-preview { padding: 21px; }
  .install-section { gap: 30px; padding: 38px 28px; }
}
@media (max-width: 650px) {
  .topbar { min-height: 62px; flex-wrap: wrap; padding: 11px 18px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; }
  .main-nav a { font-size: 11px; }
  .topbar .button-small { margin-left: auto; }
  .home-page main { padding: 0 18px 50px; }
  .home-hero { grid-template-columns: 1fr; gap: 37px; padding: 56px 0 58px; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 54px); }
  .hero-intro { font-size: 15px; }
  .extension-preview { width: 100%; max-width: 430px; }
  .protection-section { padding: 52px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .install-section { grid-template-columns: 1fr; gap: 27px; padding: 29px 21px; }
  .teams-section { align-items: flex-start; flex-direction: column; margin-top: 34px; padding: 23px; }
  .teams-section .button { width: 100%; }
  .home-footer { flex-wrap: wrap; padding-inline: 18px; }
  .home-footer span { order: 3; flex-basis: 100%; }
  body:not(.home-page) main { padding: 44px 17px 42px; }
  .setup-card, .dashboard-card { padding: 23px 19px; }
  .input-row { flex-direction: column; }
  .input-row button { min-height: 44px; }
  .how-it-works { grid-template-columns: 1fr; gap: 19px; margin-top: 32px; }
  body:not(.home-page) footer { padding-inline: 17px; }
  .mailbox-main { padding-top: 36px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
