:root {
  color-scheme: light;
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;

  --bg: #f3ede1;
  --bg-quiet: #ece4d5;
  --paper: #fbf7ef;
  --paper-2: #f3efe8;
  --ink: #1a1814;
  --ink-soft: #2a2017;
  --muted: #6b655b;
  --quiet: #938c7e;
  --line: #ddd3c0;
  --line-strong: #cdbfA6;
  --accent: #a5552b;
  --accent-strong: #8e4622;
  --accent-soft: #efe0d3;
  --teal: #4f6b5b;
  --gold: #b59a52;
  --danger: oklch(0.52 0.17 24);
  --shadow-soft: 0 24px 70px oklch(0.18 0.035 255 / 0.12);
  --shadow-tight: 0 12px 32px oklch(0.18 0.035 255 / 0.1);

  --radius: 8px;
  --radius-sm: 6px;
  --max: 1180px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgb(221 211 192 / 0.36) 1px, transparent 1px),
    linear-gradient(180deg, rgb(221 211 192 / 0.36) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgb(165 85 43 / 0.68);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-3);
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(251 247 239 / 0.92), rgb(243 237 225 / 0.84) 38%, transparent 70%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(221 211 192 / 0.84);
  background: rgb(251 247 239 / 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 780;
  letter-spacing: 0;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: oklch(0.99 0.005 255);
  box-shadow: 0 12px 28px oklch(0.43 0.16 28 / 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mobile-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 760;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: oklch(0.99 0.005 255);
  box-shadow: 0 16px 36px rgb(165 85 43 / 0.24);
}

.button.primary:hover {
  background: var(--accent-strong);
  color: oklch(0.99 0.005 255);
}

.button.secondary {
  background: oklch(0.99 0.004 255 / 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-tight);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  padding: 14px var(--space-5) 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 82% 24%, rgb(165 85 43 / 0.16), transparent 34%),
    radial-gradient(circle at 58% 78%, rgb(79 107 91 / 0.12), transparent 30%),
    linear-gradient(180deg, rgb(251 247 239 / 0.9) 0%, rgb(243 237 225 / 0.9) 100%);
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-right: min(60vw, 700px);
}

.hero-mailbox {
  justify-content: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 9ch;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.92;
  margin-bottom: var(--space-5);
}

h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.02;
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.hero-lede,
.page-hero p,
.section-header p,
.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero-lede {
  max-width: 33rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-actions.centered {
  justify-content: center;
}

.fineprint {
  max-width: 35rem;
  color: var(--quiet);
  font-size: 13px;
  margin-top: var(--space-3);
}

.hero-note {
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
  color: var(--muted);
  font-size: 14px;
}

.note-row,
.compare-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.check-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  flex: 0 0 auto;
}

.product-stage {
  position: relative;
  min-height: 540px;
  min-width: 0;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 34px -18px 22px 40px;
  border: 1px solid oklch(0.82 0.028 255 / 0.7);
  border-radius: 12px;
  background:
    linear-gradient(90deg, oklch(0.82 0.02 255 / 0.22) 1px, transparent 1px),
    linear-gradient(180deg, oklch(0.82 0.02 255 / 0.22) 1px, transparent 1px),
    oklch(0.965 0.014 255 / 0.5);
  background-size: 28px 28px;
}

.app-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.app-window.large {
  min-height: 500px;
  transform: translate3d(0, 0, 0);
}

.window-bar {
  height: 46px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  color: var(--muted);
  font-size: 13px;
  background: var(--paper-2);
}

.window-controls {
  display: flex;
  gap: 7px;
}

.window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.mail-ui {
  display: grid;
  grid-template-columns: minmax(155px, 0.78fr) minmax(230px, 1.08fr) minmax(190px, 0.86fr);
  min-height: 456px;
}

.mail-sidebar {
  border-right: 1px solid var(--line);
  background: var(--paper-2);
  padding: var(--space-4);
}

.account-pill {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background: var(--paper);
  font-size: 13px;
  font-weight: 760;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-weight: 850;
}

.side-list {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-1);
}

.side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
}

.side-item.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 820;
}

.side-count,
.thread-time {
  color: var(--quiet);
  font-size: 12px;
}

.mail-list {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.list-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.search-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-quiet);
  color: var(--quiet);
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.tab.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.thread {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: var(--space-3);
  padding: 14px var(--space-4);
  border-bottom: 1px solid oklch(0.925 0.012 255);
  transition: background 150ms ease;
}

.thread > div {
  min-width: 0;
}

.thread:hover {
  background: oklch(0.972 0.012 255);
}

.thread.unread {
  background: oklch(0.985 0.008 255);
}

.account-color {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.account-color.green {
  background: var(--teal);
}

.account-color.amber {
  background: var(--gold);
}

.thread-title {
  color: var(--ink);
  font-weight: 820;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-copy {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader {
  padding: var(--space-5);
  background: oklch(0.982 0.006 255);
}

.reader-labels {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.label {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 820;
}

.reader h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.12;
}

.reader-meta {
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
}

.reader p {
  color: var(--muted);
}

.trust-strip {
  margin-top: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: var(--paper);
  display: grid;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 13px;
}

.floating-card {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 22px;
  width: min(258px, 78%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-tight);
  padding: var(--space-4);
  transform: translate3d(0, 0, 0);
}

.floating-card strong {
  display: block;
  margin-bottom: var(--space-2);
}

.floating-card p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.photo-stage {
  min-height: auto;
  padding: 18px 0 74px 18px;
}

.photo-stage::before {
  inset: 40px -16px 54px 38px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, oklch(0.82 0.02 255 / 0.24) 1px, transparent 1px),
    linear-gradient(180deg, oklch(0.82 0.02 255 / 0.24) 1px, transparent 1px),
    oklch(0.95 0.014 255 / 0.62);
  background-size: 30px 30px;
}

.hero-image-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  box-shadow:
    0 30px 82px oklch(0.18 0.035 255 / 0.18),
    0 1px 0 oklch(1 0 0 / 0.86) inset;
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-proof-panel {
  margin-top: var(--space-7);
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  border: 1px solid oklch(0.82 0.025 255 / 0.7);
  border-radius: var(--radius);
  background: oklch(0.99 0.004 255 / 0.72);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(16px);
  padding: var(--space-3);
}

.hero-proof-panel div {
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: oklch(0.985 0.006 255 / 0.78);
}

.hero-proof-panel strong,
.hero-proof-panel span {
  display: block;
}

.hero-proof-panel strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.hero-proof-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.actual-app-preview {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--max)) / 2));
  top: 50%;
  width: min(700px, 49vw);
  transform: translateY(-48%);
  border: 1px solid #3a372f;
  border-radius: 10px;
  overflow: hidden;
  background: #0f0f0e;
  box-shadow:
    0 32px 90px rgb(42 32 23 / 0.24),
    0 1px 0 rgb(255 255 255 / 0.08) inset;
}

.actual-app-preview.hero-app {
  position: relative;
  inset: auto;
  width: min(1720px, calc(100vw - 44px));
  transform: none;
}

.actual-titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #2a2823;
  background: #0f0f0e;
  color: #faf8f4;
}

.actual-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.actual-brand em {
  color: #c46a3d;
  font-style: italic;
}

.actual-window {
  color: #7e776c;
  font-size: 20px;
  line-height: 1;
}

.actual-shell {
  display: grid;
  grid-template-columns: 170px minmax(210px, 0.95fr) minmax(230px, 1.05fr);
  height: 470px;
  color: #1a1814;
  background: #faf8f4;
}

.hero-app .actual-shell {
  grid-template-columns: minmax(280px, 0.72fr) minmax(760px, 1.9fr);
  height: clamp(650px, calc(100vh - 112px), 860px);
}

.actual-sidebar {
  padding: 14px 12px;
  border-right: 1px solid #e5e0d6;
  background: #f3efe8;
}

.actual-account {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid #d8cebc;
  border-radius: 8px;
  background: #fbf7ef;
  color: #1a1814;
  padding: 8px 10px;
  text-align: left;
}

.actual-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #7c8a6e;
  color: #1a1814;
  font-weight: 800;
}

.actual-caret {
  color: #938c7e;
}

.actual-nav {
  display: grid;
  gap: 4px;
  margin-top: 22px;
}

.actual-nav-item {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
  color: #6b655b;
  padding: 0 10px;
  font-size: 13px;
}

.actual-nav-item.active {
  background: rgb(176 101 59 / 0.16);
  color: #9d5530;
  font-weight: 800;
}

.actual-nav-item b {
  font-size: 11px;
  color: #938c7e;
}

.actual-list {
  min-width: 0;
  border-right: 1px solid #e5e0d6;
  background: #fbf7ef;
}

.hero-app .actual-list {
  display: none;
}

.actual-toolbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e0d6;
  padding: 0 14px;
  color: #6b655b;
  font-size: 12px;
}

.actual-toolbar span:first-child {
  color: #1a1814;
  font-weight: 800;
}

.actual-search {
  margin: 12px 14px;
  min-height: 36px;
  border: 1px solid #e5e0d6;
  border-radius: 7px;
  color: #938c7e;
  background: #f3efe8;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
}

.actual-thread {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 11px;
  align-items: start;
  border-bottom: 1px solid #eee7da;
  padding: 13px 14px;
}

.actual-thread.selected {
  background: rgb(176 101 59 / 0.08);
  outline: 1px solid rgb(176 101 59 / 0.24);
  outline-offset: -1px;
}

.actual-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: #b0653b;
}

.actual-dot.green {
  background: #7c8a6e;
}

.actual-dot.rose {
  background: #b07a84;
}

.actual-thread strong,
.actual-thread p,
.actual-thread time {
  display: block;
}

.actual-thread strong {
  color: #1a1814;
  font-size: 13px;
  line-height: 1.2;
}

.actual-thread p {
  margin: 2px 0 0;
  color: #6b655b;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actual-thread time {
  color: #938c7e;
  font-size: 11px;
}

.actual-reader {
  min-width: 0;
  position: relative;
  padding: 24px 22px 20px;
  background: #fbf7ef;
}

.hero-letter {
  min-width: 0;
  padding: clamp(138px, 16vh, 172px) clamp(42px, 5.2vw, 72px) clamp(28px, 3.5vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-reader-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e0d6;
  padding: 0 22px;
  color: #6b655b;
  font-size: 13px;
}

.hero-reader-bar span:first-child {
  color: #1a1814;
  font-weight: 800;
}

.hero-thread-strip {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e5e0d6;
  background: rgb(176 101 59 / 0.08);
  padding: 10px 22px;
}

.hero-thread-strip strong,
.hero-thread-strip p,
.hero-thread-strip time {
  display: block;
}

.hero-thread-strip strong {
  color: #1a1814;
  font-size: 14px;
  line-height: 1.2;
}

.hero-thread-strip p {
  margin: 2px 0 0;
  color: #6b655b;
  font-size: 13px;
  line-height: 1.25;
}

.hero-thread-strip time {
  color: #938c7e;
  font-size: 12px;
}

.actual-reader-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.actual-chip {
  border: 1px solid #e5e0d6;
  border-radius: 999px;
  background: #f3efe8;
  color: #6b655b;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}

.actual-reader h2 {
  font-size: 23px;
  line-height: 1.08;
  color: #1a1814;
  margin-bottom: 8px;
}

.actual-meta {
  color: #938c7e;
  font-size: 12px;
  border-bottom: 1px solid #e5e0d6;
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.actual-reader p {
  color: #6b655b;
  font-size: 13px;
}

.hero-letter h1 {
  max-width: 8.2ch;
  font-size: clamp(76px, 7.4vw, 126px);
  margin-bottom: 18px;
}

.hero-letter .eyebrow {
  margin-bottom: 18px;
  order: 2;
}

.hero-letter h1 {
  order: 1;
}

.hero-letter .hero-lede {
  order: 3;
}

.hero-letter .actual-reader-top {
  order: 4;
}

.hero-letter .hero-mail-body {
  order: 5;
}

.hero-letter .hero-actions {
  order: 6;
}

.hero-letter .fineprint {
  order: 7;
}

.hero-letter .hero-note {
  order: 8;
}

.hero-letter .hero-lede {
  max-width: 42rem;
  color: #5b554c;
}

.hero-letter .fineprint {
  color: #7e776c;
}

.hero-mail-body {
  max-width: 46rem;
  margin-top: var(--space-5);
  color: #6b655b;
}

.hero-mail-body p {
  font-size: 15px;
  margin-bottom: var(--space-4);
}

.hero-mail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-mail-grid span {
  border: 1px solid #e5e0d6;
  border-radius: 7px;
  background: #f3efe8;
  color: #5b554c;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 700;
}

.actual-attachment {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e0d6;
  border-radius: 8px;
  background: #f3efe8;
  padding: 12px;
}

.actual-attachment > span {
  width: 52px;
  height: 42px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 58% 48%, rgb(217 128 63 / 0.5), transparent 38%),
    #2a2017;
}

.actual-attachment strong {
  color: #1a1814;
  font-size: 13px;
}

.actual-attachment p {
  margin: 2px 0 0;
  color: #938c7e;
  font-size: 12px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 86px) var(--space-5);
}

.section.compact {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.section-header {
  max-width: 760px;
  margin-bottom: var(--space-7);
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: var(--space-5);
}

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

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

.feature-card,
.policy-card,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(0.99 0.004 255 / 0.74);
  padding: var(--space-5);
}

.feature-card {
  min-height: 100%;
}

.feature-card:nth-child(2n),
.policy-card:nth-child(2n) {
  background: oklch(0.965 0.012 255 / 0.72);
}

.feature-card p,
.price-card p,
.policy-card p,
.quote-panel p {
  color: var(--muted);
}

.icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: var(--space-4);
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: oklch(0.955 0.012 255 / 0.78);
}

.comparison,
.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(30px, 5vw, 56px);
  align-items: start;
}

.comparison-list {
  display: grid;
  gap: var(--space-4);
}

.compare-row {
  color: var(--muted);
}

.compare-row p {
  margin-bottom: 0;
}

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

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
  font-weight: 720;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: var(--space-6);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.5) inset;
}

.price-card.featured {
  border-color: rgb(165 85 43 / 0.62);
  box-shadow:
    0 0 0 3px rgb(165 85 43 / 0.12),
    var(--shadow-tight);
}

.price-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  margin: var(--space-3) 0 var(--space-4);
  font-weight: 860;
}

.price span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 680;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: var(--space-3);
}

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

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

td strong {
  color: var(--ink);
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 410px;
  padding: clamp(56px, 8vw, 86px) var(--space-5) var(--space-7);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  position: relative;
}

.page-hero > * {
  grid-column: 1;
}

.page-hero::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 4;
  width: 100%;
  min-height: 290px;
  align-self: stretch;
  border: 1px solid #d8cebc;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #0f0f0e 0 38px, transparent 38px),
    radial-gradient(circle at 46px 79px, #7c8a6e 0 18px, transparent 19px),
    linear-gradient(90deg, transparent 0 26px, #1a1814 26px 105px, transparent 105px) 0 64px / 100% 22px no-repeat,
    linear-gradient(90deg, transparent 0 26px, #d8cebc 26px 190px, transparent 190px) 0 112px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 26px, #b0653b 26px 182px, transparent 182px) 0 132px / 100% 34px no-repeat,
    linear-gradient(90deg, transparent 0 26px, #6b655b 26px 118px, transparent 118px) 0 188px / 100% 14px no-repeat,
    linear-gradient(90deg, transparent 0 26px, #6b655b 26px 104px, transparent 104px) 0 232px / 100% 14px no-repeat,
    linear-gradient(90deg, #f3efe8 0 34%, #fbf7ef 34% 100%),
    linear-gradient(180deg, #fbf7ef, #f3efe8);
  box-shadow:
    0 32px 80px rgb(42 32 23 / 0.14),
    0 1px 0 rgb(255 255 255 / 0.72) inset;
}

.page-hero::before {
  content: "MailRight";
  position: absolute;
  right: calc(var(--space-5) + 18px);
  top: clamp(70px, 9vw, 104px);
  z-index: 1;
  color: #faf8f4;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  pointer-events: none;
}

.page-hero h1 {
  max-width: 12ch;
  margin-bottom: var(--space-5);
}

.page-hero p {
  max-width: 760px;
}

.callout {
  border: 1px solid rgb(165 85 43 / 0.36);
  padding: var(--space-5);
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.callout p {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 680;
}

.doc-content {
  max-width: 900px;
}

.doc-content h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-top: var(--space-8);
}

.doc-content h3 {
  margin-top: var(--space-6);
}

.doc-content p,
.doc-content li {
  color: var(--muted);
  max-width: 74ch;
}

.doc-content a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-list {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.seo-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(0.99 0.004 255 / 0.74);
  padding: var(--space-5);
}

.seo-list strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
}

.answer-block {
  display: grid;
  gap: var(--space-5);
}

.footer {
  margin-top: var(--space-7);
  border-top: 1px solid oklch(0.29 0.035 255);
  background:
    linear-gradient(90deg, oklch(0.26 0.035 255 / 0.35) 1px, transparent 1px),
    linear-gradient(180deg, oklch(0.26 0.035 255 / 0.35) 1px, transparent 1px),
    oklch(0.19 0.035 255);
  background-size: 36px 36px;
  color: oklch(0.94 0.012 255);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-7);
}

.footer p {
  color: oklch(0.76 0.035 255);
}

.footer .brand-mark {
  box-shadow: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.footer-links strong {
  display: block;
  margin-bottom: var(--space-2);
}

.footer-links a {
  display: block;
  color: oklch(0.82 0.035 255);
  margin: 7px 0;
  font-size: 14px;
}

.legal-note {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-6);
  color: oklch(0.68 0.035 255);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .button:hover,
  .app-window.large,
  .floating-card {
    transform: none;
  }
}

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

  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-hero::after {
    grid-column: 1;
    grid-row: auto;
    min-height: 250px;
  }

  .page-hero::before {
    right: calc(var(--space-5) + 18px);
    top: auto;
    bottom: calc(var(--space-7) + 205px);
  }

  .hero {
    display: grid;
    gap: var(--space-7);
  }

  .hero-copy {
    padding-right: 0;
  }

  .actual-app-preview {
    position: relative;
    right: auto;
    top: auto;
    width: min(100%, 840px);
    margin: 0 auto;
    transform: none;
  }

  .actual-app-preview.hero-app {
    width: calc(100vw - 48px);
  }

  .hero-app .actual-shell {
    grid-template-columns: 170px minmax(0, 1fr);
    height: auto;
    min-height: 650px;
  }

  .hero-letter {
    min-height: 650px;
  }

  h1,
  .page-hero h1 {
    max-width: 12ch;
  }

  .mail-ui {
    grid-template-columns: 190px minmax(260px, 1fr);
  }

  .reader {
    display: none;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: var(--space-4);
    transform: none;
  }

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

@media (max-width: 760px) {
  body {
    background-size: 34px 34px;
  }

  .nav {
    flex-wrap: wrap;
    padding-inline: var(--space-4);
    padding-right: 76px;
    width: 100%;
    max-width: 100%;
    position: relative;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-3);
    position: absolute;
    right: var(--space-4);
    top: 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: var(--space-2);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
  }

  .nav-links a[aria-current="page"]::after {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .section,
  .page-hero {
    width: 100%;
    max-width: 100%;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .page-hero {
    gap: var(--space-5);
  }

  .page-hero::after {
    min-height: 220px;
  }

  .page-hero::before {
    right: 34px;
    bottom: calc(var(--space-7) + 178px);
  }

  .hero {
    min-height: auto;
    padding: var(--space-5) 0 var(--space-6);
    justify-content: flex-start;
  }

  .hero::before {
    background:
      radial-gradient(circle at 82% 18%, rgb(165 85 43 / 0.14), transparent 42%),
      linear-gradient(180deg, rgb(251 247 239 / 0.94) 0%, rgb(243 237 225 / 0.9) 100%);
  }

  .hero-backdrop {
    object-position: 68% center;
    opacity: 0.34;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-lede,
  .fineprint {
    max-width: calc(100vw - 32px);
    overflow-wrap: anywhere;
  }

  .hero-proof-panel {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    grid-template-columns: 1fr;
    margin-top: var(--space-3);
  }

  .actual-app-preview {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .actual-app-preview.hero-app {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .actual-shell {
    grid-template-columns: 130px minmax(0, 1fr);
    height: 390px;
  }

  .hero-app .actual-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
  }

  .hero-app .actual-sidebar {
    display: none;
  }

  .hero-app .actual-reader {
    display: flex;
  }

  .hero-letter {
    min-height: 0;
    padding: 122px 24px 34px;
  }

  .hero-letter h1 {
    font-size: clamp(48px, 14vw, 62px);
  }

  .hero-letter .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-letter .hero-actions .button {
    width: 100%;
  }

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

  .actual-sidebar {
    padding: 10px 8px;
  }

  .actual-account {
    grid-template-columns: 30px 1fr;
    gap: 8px;
    min-height: 46px;
  }

  .actual-caret,
  .actual-nav-item b,
  .actual-reader {
    display: none;
  }

  .actual-nav-item {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .app-window.large {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    transform: none;
  }

  .window-bar > span:last-child {
    display: none;
  }

  .window-bar {
    justify-content: flex-start;
    gap: var(--space-6);
  }

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

  .mail-sidebar {
    display: none;
  }

  .grid.two,
  .grid.three,
  .pricing-grid,
  .footer-inner,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .price-card {
    padding: var(--space-5);
  }
}

@media (max-width: 500px) {
  .nav,
  .section,
  .page-hero {
    max-width: 390px;
    margin-left: 0;
    margin-right: 0;
  }

  .app-window.large {
    width: calc(390px - 32px);
    max-width: calc(390px - 32px);
  }

  .hero-proof-panel {
    width: calc(390px - 32px);
    max-width: calc(390px - 32px);
  }

  .actual-app-preview {
    width: 100%;
    max-width: 100%;
  }

  .actual-app-preview.hero-app {
    width: calc(390px - 32px) !important;
    max-width: calc(390px - 32px) !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .hero-lede,
  .fineprint {
    max-width: calc(390px - 32px);
  }

  .page-hero::before {
    right: 34px;
  }
}
