/* Snappy Mail — landing page, in the Snappyhost brand (snappyhost.co.uk):
   forest #123026, emerald #14A06A, emerald-deep #0B7A4A, mint #57E0A8, Plus Jakarta Sans. */

:root {
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Brand */
  --forest: #123026;
  --forest-900: #0c1f17;
  --forest-700: #1c4435;
  --emerald: #14a06a;
  --emerald-deep: #0b7a4a;
  --mint: #57e0a8;
  --mint-hi: #7bf0be;
  --on-forest: #ffffff;
  --on-forest-2: #b9cdc3;

  /* Page */
  --bg: #ffffff;
  --bg-2: #eef3ed;
  --card: #ffffff;
  --ink: #0f221c;
  --text: #0f221c;
  --text-2: #42574d;
  --text-3: #6b7f75;
  --border: #e2e7e0;
  --border-2: #d2dbd4;
  --link: var(--emerald-deep);
  --tile: #e6f4ec;
  --nav-bg: rgba(255, 255, 255, .86);
  --shadow: 0 1px 2px rgba(12, 31, 23, .05), 0 8px 24px -10px rgba(12, 31, 23, .14);
  --shadow-xl: 0 2px 6px rgba(12, 31, 23, .08), 0 40px 80px -24px rgba(4, 17, 11, .45);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08140f;
    --bg-2: #0c1b15;
    --card: #10221a;
    --ink: #f1f7f3;
    --text: #e9f2ed;
    --text-2: #a9bdb3;
    --text-3: #7d9389;
    --border: #1b3128;
    --border-2: #274234;
    --link: var(--mint);
    --tile: rgba(87, 224, 168, .12);
    --nav-bg: rgba(8, 20, 15, .82);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .6);
    --shadow-xl: 0 2px 6px rgba(0, 0, 0, .4), 0 50px 100px -30px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font: 13px var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border); }
.sprite { display: none; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.hl { color: var(--emerald); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font: 700 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--emerald) 60%, transparent); outline-offset: 3px; }
.btn-primary { color: #fff; background: var(--emerald); box-shadow: 0 10px 22px -12px rgba(20, 160, 106, .8); }
.btn-primary:hover { background: var(--emerald-deep); }
.btn-ghost { color: var(--text); background: var(--card); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--link); }
.btn-outline-light { color: #fff; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .32); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn-white { color: var(--forest); background: #fff; }
.btn-white:hover { color: var(--emerald-deep); }
.btn-forest { color: #fff; background: var(--forest); }
.btn-forest:hover { background: var(--forest-900); }
.btn .arrow { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-sm .ic { width: 17px; height: 17px; }

/* OS logos are single-colour SVGs used as masks, so they take the text colour */
.os-ic, .os-logo { display: inline-block; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.os-ic { width: 20px; height: 20px; flex: none; }
[data-icon="apple"] { --icon: url(assets/os/apple.svg); }
[data-icon="windows"] { --icon: url(assets/os/windows.svg); }
[data-icon="linux"] { --icon: url(assets/os/linux.svg); }
[data-icon="ubuntu"] { --icon: url(assets/os/ubuntu.svg); }
[data-icon="debian"] { --icon: url(assets/os/debian.svg); }
[data-icon="fedora"] { --icon: url(assets/os/fedora.svg); }
[data-icon="archlinux"] { --icon: url(assets/os/archlinux.svg); }
#heroOs:not([data-icon]) { display: none; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 8px 12px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--link); border-bottom-color: var(--emerald); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 88px 0 72px; color: var(--on-forest);
  background:
    radial-gradient(45% 60% at 18% 8%, rgba(87, 224, 168, .2), transparent 70%),
    radial-gradient(40% 55% at 88% 30%, rgba(20, 160, 106, .22), transparent 70%),
    linear-gradient(180deg, var(--forest-900), var(--forest));
}
/* A faint dot grid, fading out towards the bottom */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 26px 26px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 85%); mask: linear-gradient(180deg, #000, transparent 85%);
}
.hero-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid rgba(87, 224, 168, .3); background: rgba(87, 224, 168, .08); color: var(--mint); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.eyebrow:hover { background: rgba(87, 224, 168, .14); }
.eyebrow .ic { width: 15px; height: 15px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(87, 224, 168, .2); }
h1 { margin: 28px 0 0; font-size: clamp(44px, 7vw, 84px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; }
.hero .hl { color: var(--mint); }
.hero .u { position: relative; display: inline-block; }
.swoosh { position: absolute; left: 3%; bottom: -.1em; width: 94%; height: .2em; overflow: visible; }
.swoosh path { fill: none; stroke: var(--mint); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .85; }
.lede { max-width: 700px; margin: 30px 0 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--on-forest-2); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.cta .os-ic { width: 20px; height: 20px; }
.hero-meta { margin: 18px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-forest-2); }

/* The screenshot straddles the forest hero and the page below */
.shot-band { background: linear-gradient(180deg, var(--forest) 0 46%, var(--bg) 46%); }
.shot-hero { position: relative; }
.window { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-2); background: var(--card); box-shadow: var(--shadow-xl); }
.window img { width: 100%; }
.shot-hero .window { border-radius: 16px; border-color: rgba(255, 255, 255, .14); }

/* A new-mail notification, as the app shows it */
.toast-demo {
  position: absolute; top: 9%; right: -18px; width: min(370px, 46%);
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px;
  background: rgba(250, 252, 251, .86); color: #0f221c; border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 24px 60px -16px rgba(4, 17, 11, .5);
  animation: drop-in .7s cubic-bezier(.2, .9, .3, 1.2) 1.2s both;
}
.toast-demo img { width: 40px; height: 40px; }
.td-top { display: flex; justify-content: space-between; font-size: 12.5px; color: #66786f; }
.td-top b { font-weight: 700; color: #33463d; }
.td-title { margin-top: 2px; font-weight: 700; font-size: 14.5px; }
.td-body { font-size: 13.5px; line-height: 1.45; color: #1d3028; }
.td-body span { color: #66786f; }
@media (prefers-color-scheme: dark) {
  .toast-demo { background: rgba(28, 44, 37, .84); color: #f1f7f3; border-color: rgba(255, 255, 255, .1); }
  .td-top, .td-body span { color: #93a99e; }
  .td-top b { color: #cfdcd5; }
  .td-body { color: #e1ebe6; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }

.works { margin-top: 40px; text-align: center; color: var(--text-3); font-size: 14.5px; }
.works b { color: var(--text); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section.alt { background: var(--bg-2); }
.head { text-align: center; max-width: 800px; margin: 0 auto 56px; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
h2 { margin: 0; color: var(--ink); font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; }
.sub { margin: 18px auto 0; font-size: 18px; color: var(--text-2); max-width: 680px; }
h3 { margin: 0; color: var(--ink); font-size: 18.5px; font-weight: 700; letter-spacing: -.015em; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.feat { position: relative; padding: 28px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.feat:hover { border-color: color-mix(in srgb, var(--emerald) 45%, var(--border)); box-shadow: var(--shadow); }
.feat p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
.feat-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr minmax(0, 300px); grid-template-rows: auto auto 1fr; column-gap: 28px; }
.feat-wide > :not(.notif-stack) { grid-column: 1; }
.notif-stack { grid-column: 2; grid-row: 1 / 4; align-self: center; display: flex; flex-direction: column; gap: 10px; }
.mini-n { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); font-size: 13px; line-height: 1.35; }
.mini-n:first-child { box-shadow: var(--shadow); background: var(--card); transform: translateX(-10px); }
.mini-n div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mini-n b { color: var(--ink); }
.mini-n span:not(.av) { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-n em { font-style: normal; color: var(--text-3); font-size: 12px; align-self: flex-start; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 700; font-size: 12px; }
.a1 { background: #c75d00; } .a2 { background: #1c4435; }

.f-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; color: var(--link); background: var(--tile); }
.f-ic .ic { width: 22px; height: 22px; }

/* ---------- Showcase rows ---------- */
.show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.show + .show { margin-top: 120px; }
.show.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.show.flip .show-text { order: 2; }
.show-text h2 { font-size: clamp(30px, 3.6vw, 42px); }
.show-text > p:not(.kicker) { margin: 18px 0 0; color: var(--text-2); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.ticks .ic { width: 20px; height: 20px; margin-top: 2px; padding: 4px; border-radius: 50%; color: #fff; background: var(--emerald); stroke-width: 3.2; }
.window.stack { overflow: visible; border: 0; background: none; box-shadow: none; }
.window.stack img { border-radius: 12px; border: 1px solid var(--border-2); box-shadow: var(--shadow-xl); }
.window.stack img:first-child { position: relative; z-index: 2; width: 88%; }
.window.stack .stack-back { position: absolute; z-index: 1; width: 70%; right: 0; bottom: -14%; }

/* ---------- Privacy ---------- */
.privacy {
  color: var(--on-forest);
  background:
    radial-gradient(55% 75% at 12% 0%, rgba(87, 224, 168, .16), transparent 62%),
    radial-gradient(50% 70% at 92% 100%, rgba(20, 160, 106, .2), transparent 62%),
    var(--forest);
}
.privacy h2, .privacy h3 { color: #fff; }
.privacy .kicker { color: var(--mint); }
.privacy .sub { color: var(--on-forest-2); }
.privacy .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.p-card { padding: 28px; }
.p-card > .ic { width: 26px; height: 26px; color: var(--mint); margin-bottom: 16px; }
.p-card p { margin: 10px 0 0; color: var(--on-forest-2); font-size: 15px; }

/* ---------- Download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.dl { position: relative; display: flex; flex-direction: column; padding: 30px 26px 24px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.dl.detected { border: 2px solid var(--emerald); box-shadow: 0 22px 50px -24px rgba(20, 160, 106, .55); }
.rec { position: absolute; top: -13px; left: 24px; display: none; padding: 4px 11px; border-radius: 999px; background: var(--emerald); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dl.detected .rec { display: inline-block; }
.os-logo { width: 44px; height: 44px; margin-bottom: 18px; color: var(--ink); }
.dl h3 { font-size: 22px; }
.req { margin: 4px 0 22px; color: var(--text-3); font-size: 14px; }
.dl-btns { display: grid; gap: 10px; }
.dl-btn { height: auto; min-height: 62px; padding: 10px 16px; justify-content: flex-start; text-align: left; gap: 12px; white-space: normal; }
.dl-btn span:not(.mini-logos):not(.os-ic) { display: flex; flex-direction: column; gap: 4px; line-height: 1.2; }
.dl-btn small { font-size: 12.5px; font-weight: 500; opacity: .8; }
.mini-logos { display: inline-flex; gap: 3px; flex: none; }
.mini-logos .os-ic { width: 18px; height: 18px; }
.hint { margin: 18px 0 0; font-size: 13.5px; color: var(--text-3); line-height: 1.55; }
.hint a { color: var(--link); font-weight: 700; text-decoration: none; }
.hint a:hover { text-decoration: underline; }
.hint code { font-size: 12px; }

.first-run { margin-top: 48px; padding: 30px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); }
.first-run > p { margin: 6px 0 20px; color: var(--text-2); }
.grid.tight { gap: 14px; }
.fr { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.fr .os-ic { margin-top: 2px; color: var(--ink); }
.fr p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.fr b { color: var(--ink); }

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
summary .ic { transition: transform .2s; color: var(--link); }
details[open] > summary .ic { transform: rotate(180deg); }
.verify { margin-top: 20px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.verify summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.verify > p { margin: 0 0 14px; font-size: 14px; color: var(--text-2); }
.verify a { color: var(--link); }
.sums { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0 0 20px; font: 12.5px/1.5 var(--mono); }
.sums dt { color: var(--ink); font-weight: 600; }
.sums dd { margin: 0; color: var(--text-3); word-break: break-all; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0 24px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.faq details[open] { border-color: color-mix(in srgb, var(--emerald) 40%, var(--border)); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 16.5px; color: var(--ink); }
.faq details p { margin: 0 0 22px; color: var(--text-2); }

/* ---------- Final CTA (emerald band) & footer ---------- */
.final { padding: 104px 0; background: var(--emerald); color: #fff; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 80% at 85% 10%, rgba(123, 240, 190, .35), transparent 70%), radial-gradient(35% 70% at 5% 100%, rgba(12, 31, 23, .25), transparent 70%);
}
.final-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-icon img { width: 96px; height: 96px; filter: drop-shadow(0 18px 28px rgba(4, 17, 11, .35)); }
.final h2 { margin-top: 26px; color: #fff; }
.final p { margin: 16px 0 32px; font-size: 18px; color: rgba(255, 255, 255, .9); max-width: 620px; }
.final .cta { margin-top: 0; }

.foot { background: var(--forest); color: var(--on-forest-2); padding: 40px 0; }
.foot .brand { color: #fff; }
.foot .brand-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot nav a, .foot p { color: var(--on-forest-2); font-size: 14px; text-decoration: none; margin: 0; }
.foot nav a:hover { color: #fff; }

/* ---------- Scroll reveal (only when scripts run, and not for reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .toast-demo { animation: none; }
  .btn:hover, .btn:hover .arrow { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .toast-demo { right: 12px; }
  .show, .show.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .show.flip .show-text { order: 0; }
  .show + .show { margin-top: 90px; }
  .show-text { max-width: 640px; }
  .window.stack { padding-bottom: 12%; }
}
@media (max-width: 900px) {
  .grid, .dl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feat-wide { grid-column: span 2; }
  .nav-links { display: none; }
  .nav-in > .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .nav-in { height: 64px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; }
  .hero { padding: 56px 0 52px; }
  .eyebrow { letter-spacing: .08em; font-size: 11.5px; }
  .hero-meta { letter-spacing: .05em; font-size: 12px; }
  .section { padding: 80px 0; }
  .final { padding: 80px 0; }
  .grid, .dl-grid, .grid.three { grid-template-columns: minmax(0, 1fr); }
  .feat-wide { grid-column: auto; display: block; }
  .notif-stack { margin-top: 20px; }
  .mini-n:first-child { transform: none; }
  .toast-demo { position: relative; top: auto; right: auto; width: auto; margin: -28px 12px 0; }
  .cta { width: 100%; flex-direction: column; }
  .cta .btn { width: 100%; }
  .sums { grid-template-columns: minmax(0, 1fr); }
  .sums dd { margin-bottom: 8px; }
  .first-run { padding: 22px; }
  .foot nav { margin-left: 0; flex-wrap: wrap; }
}
