/* Mail Agents landing page. Warm paper, ink, one tomato accent; Fraunces for headings, Inter for words (the app's look). */
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F6F1EA; --paper-2: #EFE7DC; --card: #FFFFFF; --ink: #1D1A16; --ink-2: #3D3731; --muted: #6B6259;
  --line: #E7DFD4; --line-2: #D9CEBF; --tomato: #E8553A; --tomato-ink: #FFFFFF; --tomato-soft: #FBE3DC; --sage: #6E8B74;
  --shadow: 0 1px 2px rgba(40,25,10,.06), 0 12px 32px -12px rgba(40,25,10,.18), 0 40px 80px -40px rgba(40,25,10,.22);
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --r: 22px; --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #161412; --paper-2: #1C1916; --card: #211E1B; --ink: #F3EDE4; --ink-2: #DCD4C8; --muted: #A79E92;
    --line: #2E2A26; --line-2: #3A3530; --tomato: #F06B52; --tomato-ink: #1D1A16; --tomato-soft: #3A221C;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 50px -20px rgba(0,0,0,.7); color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
b { font-weight: 600; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tomato); margin-bottom: 12px; }
.kicker--soft { color: #F4A08F; }
.lede { font-size: 18.5px; color: var(--ink-2); max-width: 34em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 99px; border: 0; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.btn:active { transform: scale(.97); }
.btn--tomato { background: var(--tomato); color: var(--tomato-ink); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--tomato) 70%, transparent); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--link { background: none; padding: 0 4px; color: var(--ink); }

/* header + product switcher */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 96%, transparent); border-bottom: 1px solid transparent; }
.nav.is-stuck { border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.nav__links { display: none; gap: 26px; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav__links { display: flex; } }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.brand__icon { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 6px -2px rgba(0,0,0,.25); }
.brand--sm { font-size: 16px; } .brand--sm .brand__icon { width: 28px; height: 28px; border-radius: 8px; }
.brand__name { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.apps { position: relative; }
.apps__btn { border: 0; background: none; padding: 4px 6px 4px 0; cursor: pointer; border-radius: 12px; }
.apps__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .5; transition: transform .25s var(--ease); }
.apps__btn[aria-expanded="true"] .apps__chev { transform: rotate(180deg); }
.apps__menu { position: absolute; z-index: 70; top: calc(100% + 10px); left: -6px; width: min(360px, calc(100vw - 24px)); padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.apps__menu[hidden] { display: none; }
.apps__h { margin: 4px 10px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.apps__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; }
.apps__item:hover { background: var(--paper-2); }
.apps__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.apps__ic--fb svg { width: 44px; height: 44px; } .apps__ic--fb rect { fill: var(--ink); } .apps__ic--fb path { fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; }
.apps__txt { flex: 1; min-width: 0; } .apps__txt b { display: block; font-size: 15px; } .apps__txt small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.apps__tag { flex: none; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
.apps__tag--here { color: var(--tomato); background: var(--tomato-soft); }
.apps__go { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 699px) { .apps__menu { position: fixed; top: 70px; left: 12px; right: 12px; width: auto; } }

/* phones (real app screens) */
.phone { width: 260px; aspect-ratio: 375 / 812; border-radius: 40px; padding: 9px; background: #1d1a16; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.08); flex: none; }
.phone img { width: 100%; height: 100%; border-radius: 31px; object-fit: cover; object-position: top; }

/* hero */
.hero { padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 { font-size: clamp(40px, 10.5vw, 72px); line-height: 1.02; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--tomato); }
.hero .lede { margin-top: 18px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.hero__art { position: relative; height: 520px; display: grid; place-items: center; }
.hero__paper { position: absolute; width: 300px; right: -20px; top: -10px; opacity: .9; }
.hero__art .phone { position: absolute; }
.phone--front { width: 250px; transform: translateX(-60px) rotate(-4deg); z-index: 2; }
.phone--back { width: 230px; transform: translateX(90px) translateY(30px) rotate(5deg); opacity: .96; }
@media (max-width: 699px) {
  .hero__cta { flex-direction: column; align-items: stretch; gap: 6px; }
  .hero__cta .btn--tomato { min-height: 52px; font-size: 17px; }
  .hero__cta .btn--link { justify-content: flex-start; min-height: 44px; }
  .hero__art { height: 420px; }
  .phone--front { width: 200px; transform: translateX(-52px) rotate(-4deg); }
  .phone--back { width: 184px; transform: translateX(70px) translateY(24px) rotate(5deg); }
  .hero__paper { width: 200px; right: -30px; top: -20px; }
}

/* three reasons */
.why { padding: 0 0 clamp(48px, 7vw, 88px); }
.why__list { display: grid; gap: 14px; }
@media (min-width: 820px) { .why__list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.why__list li { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px 14px 12px; }
.why__list img { width: 72px; height: 72px; flex: none; border-radius: 16px; }
.why__list b { display: block; font-size: 16.5px; }
.why__list span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* how it works: three tabs */
.how { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper-2); }
.how__in { display: grid; gap: 28px; }
.how h2, .flows h2, .yours h2, .who h2, .faq h2, .access h2 { font-size: clamp(32px, 6.4vw, 50px); line-height: 1.05; }
.steps { max-width: 760px; }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; max-width: 560px; margin-bottom: 28px; }
.seg__ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 12px; background: var(--ink); transition: transform .45s var(--ease); }
.seg__tab { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 6px; border: 0; background: none; border-radius: 12px; font: 600 14.5px/1.1 var(--sans); color: var(--ink-2); cursor: pointer; transition: color .3s; }
.seg__tab b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); font-size: 12px; flex: none; }
.seg__tab[aria-selected="true"] { color: var(--paper); }
.seg__tab[aria-selected="true"] b { background: var(--tomato); color: #fff; }
@media (max-width: 420px) { .seg__tab { font-size: 13px; gap: 6px; } .seg__tab b { width: 20px; height: 20px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .seg__ind { transition: none; } }
.step { display: grid; gap: 28px; align-items: center; }
.step[hidden] { display: none; }
@media (min-width: 760px) { .step { grid-template-columns: auto 1fr; gap: 48px; } }
.step .phone { width: 240px; justify-self: center; }
.step__copy h3 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 10px; }
.step__copy p { font-size: 17.5px; color: var(--ink-2); max-width: 30em; }
@media (max-width: 759px) { .step__copy { order: -1; } }
html:not(.js) .seg { display: none; }
html:not(.js) .step[hidden] { display: grid; margin-top: 40px; }

/* flows */
.flows { padding: clamp(64px, 9vw, 120px) 0; }
.flows__in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .flows__in { grid-template-columns: auto 1fr; gap: 72px; } }
.phone--tilt { width: 250px; justify-self: center; transform: rotate(-3deg); }
.flows .lede { margin-top: 16px; }
.ticks { margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16.5px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--tomato-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--tomato); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 899px) { .flows__copy { order: -1; } }

/* your list (dark band) */
.yours { padding: clamp(64px, 9vw, 120px) 0; background: #1D1A16; color: #F3EDE4; }
@media (prefers-color-scheme: dark) { .yours { background: #0F0D0C; border-block: 1px solid var(--line); } }
.yours h2 { color: #FBF6EE; }
.yours__lede { margin-top: 14px; font-size: 18.5px; color: #CFC6B9; max-width: 34em; }
.yours__grid { display: grid; gap: 12px; margin-top: 36px; }
@media (min-width: 760px) { .yours__grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.yours__grid li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 18px 20px; }
.yours__grid b { display: block; font-size: 16.5px; color: #FBF6EE; }
.yours__grid span { display: block; margin-top: 4px; font-size: 15px; color: #B9B0A3; line-height: 1.5; }

/* who */
.who { padding: clamp(64px, 9vw, 120px) 0; }
.who__in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .who__in { grid-template-columns: 1fr auto; gap: 72px; } }
.who .lede { margin-top: 16px; }
.phone--small { width: 220px; justify-self: center; }

/* faq */
.faq { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper-2); }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 36em; }

/* early access */
.access { padding: clamp(64px, 9vw, 112px) 0; }
.access__in { display: grid; justify-items: center; text-align: center; gap: 14px; }
.access__in img { width: 140px; height: 140px; border-radius: 28px; }
.access .lede { color: var(--muted); }
.signup { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 480px; margin-top: 10px; }
.signup input { flex: 1 1 220px; min-height: 52px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 16px var(--sans); }
.signup .btn { flex: 1 1 160px; min-height: 52px; }
.signup__msg { flex-basis: 100%; min-height: 1.4em; font-size: 14.5px; color: var(--muted); }
.signup__msg.is-err { color: var(--tomato); }

/* footer */
.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot p { font-size: 14px; color: var(--muted); }

/* gentle arrival */
.js .rise { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } }

/* short labels on phones so buttons and tabs never wrap */
.short { display: none; }
@media (max-width: 560px) { .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .short { display: inline; } }
/* the paper-cut art has a cream ground: blend it into the paper in light mode, leave it out in dark */
.hero__paper { mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .hero__paper { display: none; } }
.btn { white-space: nowrap; }
@media (max-width: 360px) { .brand { font-size: 17px; gap: 8px; } .brand__icon { width: 32px; height: 32px; } .nav .btn--sm { padding: 0 13px; font-size: 14px; } }
