/* Frontier Mail product site. Static, no script; fonts and images are this site's own (CSP font-src/img-src 'self').
   One bold element: the airmail stripe along the top edge. Everything else stays quiet: navy, one blue, cool paper.
   Fonts: Chivo (display) and Inter (text), both SIL Open Font License; the licence files are published beside them.
   The asset placeholders below are replaced by the build with the content-hashed file names. */

@font-face { font-family: "Chivo"; src: url("/assets/chivo.1cc4f1ce.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/inter.287e9ce0.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #f5f7fb; --fg: #0d192d; --muted: #4f5a6e; --link: #2453d1; --accent: #2453d1; --accent-fg: #ffffff;
  --card: #ffffff; --line: #d9dfea; --ink: #0d192d; --glow: #1e407a; --on-ink: #ffffff; --on-ink-muted: #c3d1ef;
  --airmail-red: #d43d33; --airmail-blue: #2453d1; --shadow: 0 1px 0 rgba(13, 25, 45, .04), 0 18px 40px -24px rgba(13, 25, 45, .35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1322; --fg: #e8edf6; --muted: #a9b5ca; --link: #8fb0ff; --accent: #8fb0ff; --accent-fg: #0a1322;
    --card: #111d33; --line: #22314d; --ink: #07101e; --glow: #1b3b72; --on-ink: #ffffff; --on-ink-muted: #b9c8ea;
    --airmail-red: #e0574d; --airmail-blue: #6f93ff; --shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 106.25%; line-height: 1.6; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--airmail-blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: "Chivo", "Inter", system-ui, sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); color: var(--fg); padding: .5rem .75rem; z-index: 3; }

/* The airmail stripe: the one memorable thing. */
.stripe { height: 8px; background: repeating-linear-gradient(-45deg, var(--airmail-red) 0 14px, var(--bg) 14px 22px, var(--airmail-blue) 22px 36px, var(--bg) 36px 44px); }

.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: "Chivo", "Inter", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
nav a { color: var(--fg); text-decoration: none; font-weight: 500; padding: .25rem 0; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--line); }
nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.banner { margin: 0; padding: .6rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); }
main { padding-top: 2rem; padding-bottom: 4rem; }
main.home { padding-top: 0; }

.button { display: inline-block; background: var(--accent); color: var(--accent-fg); padding: .7rem 1.2rem; border-radius: .6rem; text-decoration: none; font-weight: 600; border: 2px solid var(--accent); }
.button:hover { filter: brightness(1.08); }
.button.quiet { background: transparent; color: var(--link); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Home: the shared promise on navy, then two equal halves. */
.hero { background: radial-gradient(60rem 30rem at 15% -10%, var(--glow), transparent 70%), var(--ink); color: var(--on-ink); padding: 3.5rem 0 0; }
.hero h1 { color: var(--on-ink); max-width: 46rem; }
.hero .lead { color: var(--on-ink-muted); }
.halves { display: grid; gap: 1.5rem; margin-top: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .halves { grid-template-columns: 1fr 1fr; } }
.half { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; border-radius: 1.25rem 1.25rem 0 0; padding: 1.75rem 1.5rem 0; display: flex; flex-direction: column; }
.half h2 { color: var(--on-ink); margin-top: 0; }
.half p, .half li { color: var(--on-ink-muted); }
.half ul { padding-left: 1.1rem; margin: 0 0 .5rem; }
.half li { margin: .2rem 0; }
.half .button { background: #ffffff; color: #0d192d; border-color: #ffffff; }
.half .button.quiet { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, .45); }
.half a:focus-visible { outline-color: #ffffff; }
.phone { align-self: center; width: min(17rem, 72%); margin-top: auto; padding-top: 1.75rem; line-height: 0; }
.phone img { display: block; width: 100%; aspect-ratio: 540 / 760; object-fit: cover; object-position: top; border: 8px solid #0b1220; border-bottom: 0; border-radius: 2rem 2rem 0 0; box-shadow: 0 -8px 40px rgba(0, 0, 0, .35); }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 1.25rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.facts li { border-top: 2px solid rgba(255, 255, 255, .2); padding-top: .75rem; }
.facts strong { display: block; color: var(--on-ink); font-family: "Chivo", "Inter", sans-serif; font-size: 1.02rem; }

/* Real screens from the app. */
.screens { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.screens figure { margin: 0; }
.screens img { display: block; width: 100%; border-radius: 1.25rem; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.screens figcaption { margin-top: .75rem; }
.screens figcaption strong { display: block; font-family: "Chivo", "Inter", sans-serif; }
.screens figcaption span { color: var(--muted); }

/* Feature lists: ruled rows, not boxes. */
.grid { display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); padding: 0; margin: 0; list-style: none; }
.card { border-top: 1px solid var(--line); padding: 1.1rem 0 1rem; }
.card p { margin-bottom: .5rem; }
.tag { display: inline-block; font-size: .85rem; padding: .05rem .55rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--muted); }
.proof { color: var(--muted); font-size: .9rem; }
.proof code { overflow-wrap: anywhere; }

/* Pricing: three plans side by side, the one place where boxes compare like with like. */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); padding: 0; list-style: none; }
.plans > li { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow); }
.plans ul { padding-left: 1.1rem; }

.privacy { margin-top: 3.5rem; padding: 2rem; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--airmail-blue); border-radius: .75rem; }
.privacy h2 { margin-top: 0; }
.privacy p { max-width: 44rem; }

/* Reading pages: one comfortable column. */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { margin-top: 2.25rem; }
.prose li { margin: .25rem 0; }
.prose img { border-radius: .5rem; }
.doclist { list-style: none; padding: 0; display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.doclist li { border-top: 1px solid var(--line); }
.doclist a { display: block; padding: .85rem 0; font-weight: 600; text-decoration: none; }
.doclist a:hover { text-decoration: underline; }

table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: .5rem .75rem; text-align: left; vertical-align: top; }
th { font-weight: 600; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--card); border: 1px solid var(--line); padding: .9rem 1rem; overflow-x: auto; border-radius: .6rem; }
blockquote { margin: 1rem 0; padding: .25rem 1rem; border-left: 4px solid var(--line); color: var(--muted); }

.foot { border-top: 1px solid var(--line); color: var(--muted); padding: 2rem 0 2.5rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.foot nav a { color: var(--muted); font-weight: 400; }
.foot p { margin: 0; }
.credit { font-size: .85rem; }

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