/* Mailer website — warm paper, forest green light theme, slate/copper dark theme. */

:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-2: #ebe5da;
  --surface: #fffdf8;
  --surface-2: #f8f4ec;
  --ink: #16211b;
  --muted: #5f6a62;
  --line: #ddd6c9;
  --line-strong: #c9c0b0;
  --accent: #145c43;
  --accent-2: #0e4a36;
  --accent-soft: #dcebe2;
  --amber: #a46d24;
  --amber-soft: #f3e6d1;
  --danger: #a43a2f;
  --footer-bg: #10251d;
  --footer-text: #e9f1ec;
  --footer-muted: #a9bdb1;
  --shadow: 0 26px 70px rgb(22 33 27 / 13%);
  --shadow-soft: 0 12px 34px rgb(22 33 27 / 8%);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(:has(#theme-light:checked)) {
    color-scheme: dark;
    --bg: #0d1017;
    --bg-2: #121722;
    --surface: #171d29;
    --surface-2: #111722;
    --ink: #eef2f8;
    --muted: #a9b2c2;
    --line: #293243;
    --line-strong: #3a465b;
    --accent: #e3a15f;
    --accent-2: #f2bd82;
    --accent-soft: #2c2118;
    --amber: #e3a15f;
    --amber-soft: #2c2118;
    --danger: #ef9a8e;
    --footer-bg: #090c12;
    --footer-text: #eef2f8;
    --footer-muted: #9fa9ba;
    --shadow: 0 28px 80px rgb(0 0 0 / 48%);
    --shadow-soft: 0 14px 38px rgb(0 0 0 / 30%);
  }
}

:root[data-theme="dark"],
:root:has(#theme-dark:checked) {
  color-scheme: dark;
  --bg: #0d1017;
  --bg-2: #121722;
  --surface: #171d29;
  --surface-2: #111722;
  --ink: #eef2f8;
  --muted: #a9b2c2;
  --line: #293243;
  --line-strong: #3a465b;
  --accent: #e3a15f;
  --accent-2: #f2bd82;
  --accent-soft: #2c2118;
  --amber: #e3a15f;
  --amber-soft: #2c2118;
  --danger: #ef9a8e;
  --footer-bg: #090c12;
  --footer-text: #eef2f8;
  --footer-muted: #9fa9ba;
  --shadow: 0 28px 80px rgb(0 0 0 / 48%);
  --shadow-soft: 0 14px 38px rgb(0 0 0 / 30%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 88% -12%, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent 62%),
    radial-gradient(900px 520px at -12% 12%, color-mix(in srgb, var(--amber-soft) 58%, transparent), transparent 58%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-2);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.025em;
  font-size: 1.12rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 14%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 620;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.lang-switch {
  margin-left: 3px;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 3px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.theme-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-switch label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
}

.theme-switch label:hover {
  color: var(--ink);
}

.theme-input:focus-visible + label {
  outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
  outline-offset: 1px;
}

:root[data-theme="light"] .theme-switch label[for="theme-light"],
:root:has(#theme-light:checked) .theme-switch label[for="theme-light"],
:root[data-theme="dark"] .theme-switch label[for="theme-dark"],
:root:has(#theme-dark:checked) .theme-switch label[for="theme-dark"] {
  background: var(--accent);
  color: var(--surface);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(:has(#theme-dark:checked)) .theme-switch label[for="theme-light"] {
    background: var(--accent);
    color: var(--surface);
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(:has(#theme-light:checked)) .theme-switch label[for="theme-dark"] {
    background: var(--accent);
    color: var(--surface);
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 104px) 0 clamp(46px, 6vw, 76px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 6.4vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: -0.058em;
}

h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--accent-soft) 92%, transparent) 64%);
  padding: 0 0.04em;
  border-radius: 4px;
}

.hero-sub {
  margin: 24px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: var(--surface);
  font: inherit;
  font-weight: 730;
  text-decoration: none;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 24%, transparent);
  transition: transform 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.button:hover {
  color: var(--surface);
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 28%, transparent);
}

.button.secondary {
  background: color-mix(in srgb, var(--surface) 66%, transparent);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 64%, transparent);
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 650;
}

/* ------------------------------------------------------------- hero visual */

.hero-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed color-mix(in srgb, var(--line-strong) 62%, transparent);
  border-radius: calc(var(--radius) + 2px);
  pointer-events: none;
}

.app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-bar span:first-child {
  background: #d9877e;
}

.window-bar span:nth-child(2) {
  background: #d9b46b;
}

.window-bar span:nth-child(3) {
  background: #86b894;
}

.window-body {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 318px;
}

.window-sidebar {
  padding: 15px 11px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.side-item {
  height: 9px;
  margin: 0 0 12px;
  border-radius: 99px;
  background: var(--line);
}

.side-item.active {
  background: color-mix(in srgb, var(--accent) 58%, var(--line));
}

.window-main {
  padding: 15px;
}

.mail-row {
  display: grid;
  grid-template-columns: 30px 1fr 48px;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.mail-row:first-child {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.88;
}

.lines {
  display: grid;
  gap: 6px;
}

.line {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
}

.line.short {
  width: 58%;
}

.line.tiny {
  width: 36%;
  height: 7px;
}

.pill {
  height: 18px;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 720;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.float-chip--top {
  top: -14px;
  right: 22px;
}

.float-chip--bottom {
  bottom: -15px;
  left: 26px;
}

.float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* --------------------------------------------------------------- stats */

.stats-strip {
  border-block: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 22px 0;
}

.stat {
  padding: 0 20px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

/* -------------------------------------------------------------- sections */

.section {
  padding: clamp(52px, 7vw, 84px) 0;
}

.section.alt {
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  letter-spacing: -0.045em;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 60%, transparent) inset;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.07rem;
  letter-spacing: -0.025em;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: start;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 31px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.04em;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.callout {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(100% 120% at 0% 0%, var(--accent-soft), transparent 64%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.callout::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  pointer-events: none;
}

.callout h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.callout p {
  color: var(--muted);
  margin: 13px 0 0;
}

.callout .hero-actions {
  margin-top: 23px;
}

.note {
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--amber) 30%, var(--line));
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 0.93rem;
}

.note strong {
  color: var(--amber);
}

/* ------------------------------------------------------------------ legal */

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 300px at 90% 0%, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent 70%);
}

.legal-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5vw, 3.45rem);
}

.legal-hero p {
  margin: 15px 0 0;
  color: var(--muted);
}

.legal {
  max-width: 860px;
  padding: 40px 0 84px;
}

.legal h2 {
  margin-top: 44px;
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  letter-spacing: -0.035em;
}

.legal h3 {
  margin-top: 28px;
  font-size: 1.12rem;
}

.legal p,
.legal li {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal p {
  margin: 12px 0;
}

.legal ul,
.legal ol {
  padding-left: 1.35em;
}

.legal li {
  margin: 7px 0;
}

.legal strong {
  color: var(--ink);
}

.legal table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.legal th,
.legal td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
}

.legal td {
  color: var(--muted);
}

.legal code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88em;
}

.legal .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal .summary {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.legal .summary p:first-child {
  margin-top: 0;
}

.legal .summary p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--footer-text);
  font-weight: 700;
  text-decoration: none;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-copy {
  max-width: 540px;
  color: var(--footer-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--footer-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--footer-text);
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 28px));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
    gap: 8px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    padding-inline: 9px;
  }

  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .theme-switch {
    margin-left: 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .window-body {
    grid-template-columns: 66px 1fr;
  }

  .float-chip--top {
    right: 10px;
  }

  .float-chip--bottom {
    left: 10px;
  }

  .legal table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .stat {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .skip-link,
  .theme-switch {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .legal,
  .wrap {
    max-width: none;
    width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
