@font-face {
  font-family: "EB Garamond";
  src: url("assets/EBGaramond-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --white: #fdfcf9;
  --ink: #1f2020;
  --muted: #555450;
  --line: #dcd9d1;
  --accent: #5b4897;
  --lavender: #d9ccff;
  --serif: "EB Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; }
h1, h2, h3 { text-wrap: balance; word-spacing: 0.025em; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.23em; }
a:hover { text-decoration-thickness: 2px; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.shell { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 16px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }

.header-row, .footer-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: none;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand img { border-radius: 26%; }

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.9vw, 38px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 550;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding-block: clamp(42px, 5.4vw, 80px);
}

.hero-copy { padding-block: 18px; }

.eyebrow {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--accent); }

.hero h1 {
  font-size: clamp(4rem, 7.25vw, 7.15rem);
  letter-spacing: -0.046em;
  line-height: 0.86;
  margin-block: 23px 29px;
  text-wrap: initial;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
  font-weight: inherit;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.62;
  max-width: 390px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 52px;
  padding: 10px 17px 10px 19px;
  border-radius: 7px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: var(--accent); border-color: var(--accent); }
.button span { font-size: 1.15em; line-height: 1; }
.hero .button { margin-top: 27px; }

.hero-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 13px;
  background: #484e41;
  color: white;
  aspect-ratio: 1.15;
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }

.hero-photo::after {
  position: absolute;
  inset: 42% 0 0;
  content: "";
  background: linear-gradient(transparent, rgb(17 20 17 / 85%));
  pointer-events: none;
}

.photo-caption {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: grid;
  gap: 7px;
  padding: 22px clamp(17px, 3vw, 36px);
}

.photo-caption .eyebrow { color: #ebe3ff; }
.photo-caption > :last-child { font-family: var(--serif); font-size: clamp(1.3rem, 2.45vw, 2.35rem); line-height: 1.12; }

.product-section {
  border-block: 1px solid var(--line);
  background: var(--white);
  padding-block: clamp(48px, 6vw, 84px);
}

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 18px 36px;
  margin-bottom: 28px;
}

.section-head h2, .help-strip h2, .document-head h1 {
  font-size: clamp(3.2rem, 5.4vw, 5.7rem);
  letter-spacing: -0.04em;
  line-height: 0.93;
  text-wrap: initial;
}

.section-head p { max-width: 335px; color: var(--muted); padding-bottom: 4px; }

.app-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.preview-tabs {
  display: flex;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.preview-tabs button {
  padding: 6px 14px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font: 650 0.87rem/1.2 var(--sans);
}

.preview-tabs button:hover { color: var(--ink); background: #eeece5; }
.preview-tabs button[aria-selected="true"] { color: var(--ink); background: var(--lavender); }

.preview-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 525px;
}

.preview-panel + .preview-panel { border-top: 1px solid var(--line); }
.preview-tabs:not([hidden]) ~ .preview-panel { border-top: 0; }
.preview-panel:focus-visible { outline-offset: -5px; }

.preview-copy {
  display: grid;
  align-content: center;
  gap: 17px;
  padding: clamp(27px, 6.25vw, 90px);
}

.preview-copy h3 {
  max-width: 380px;
  font-size: clamp(2.75rem, 4.35vw, 4.55rem);
  letter-spacing: -0.045em;
  text-wrap: initial;
}

.preview-copy p { max-width: 33ch; color: var(--muted); }

.screen-stage {
  --stage: #e5dcfa;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 30px 22px;
  background: radial-gradient(ellipse at 50% 40%, #fff9, transparent 70%), var(--stage);
}

.screen-stage-voice { --stage: #dcd7ec; }

.screen-stage img {
  width: min(100%, 227px);
  border: 6px solid #17151b;
  border-radius: 28px;
  background: #100d15;
  box-shadow: 0 16px 40px rgb(43 30 65 / 26%);
}

.help-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(47px, 6.5vw, 88px);
}

.help-strip h2 { font-size: clamp(2.95rem, 4.6vw, 4.5rem); }
.help-strip p { margin-top: 13px; color: var(--muted); }

.button-outline { background: transparent; color: var(--ink); flex: none; }
.button-outline:hover { color: white; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { min-height: 84px; }

.document-head {
  padding-block: clamp(42px, 7vw, 84px) clamp(28px, 4vw, 50px);
  border-bottom: 1px solid var(--line);
}

.document-head h1 { font-size: clamp(3.65rem, 7vw, 6.5rem); }
.document-head p { margin-top: 15px; color: var(--muted); font-size: 1.08rem; }

.document-grid {
  display: grid;
  grid-template-columns: minmax(175px, 0.33fr) minmax(0, 1fr);
  gap: clamp(35px, 7vw, 95px);
  max-width: 970px;
  margin-inline: auto;
  padding-block: clamp(30px, 5vw, 66px) clamp(48px, 7vw, 96px);
}

.document-nav { align-self: start; position: sticky; top: 24px; }

.document-nav a {
  display: block;
  padding: 10px 0;
  min-height: 44px;
  font-size: 0.89rem;
  color: var(--muted);
}

.document-content h2 {
  font-size: clamp(2.25rem, 3.5vw, 3.35rem);
  letter-spacing: -0.035em;
  margin-bottom: 15px;
  text-wrap: initial;
}

.document-content p, .document-content ul { color: var(--muted); }
.document-content p + p { margin-top: 13px; }

.document-content > section + section {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 28px;
}

.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  position: relative;
  display: block;
  list-style: none;
  min-height: 48px;
  padding: 15px 32px 15px 0;
  font-weight: 650;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: 4px; content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 17px 0; }

@media (max-width: 1030px) {
  .shell { width: calc(100% - 72px); }
  .hero { gap: 28px; }
  .hero h1 { font-size: clamp(3.6rem, 7.35vw, 5.4rem); }
}

@media (max-width: 740px) {
  .shell { width: calc(100% - 40px); }
  .header-row, .footer-row { min-height: 66px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 32px 39px; }
  .hero-copy { padding: 4px 0 0; }
  .hero h1 { font-size: clamp(3.9rem, 11.7vw, 5.8rem); margin-block: 18px 24px; }
  .hero .button { margin-top: 22px; }
  .hero-photo { aspect-ratio: 1.23; }
  .photo-caption { padding-block: 16px; }
  .photo-caption > :last-child { font-size: clamp(1.3rem, 5vw, 2.1rem); }
  .section-head, .preview-panel, .document-grid { grid-template-columns: 1fr; }
  .wide-break { display: none; }
  .preview-panel { min-height: 0; }
  .preview-copy { padding: 30px 23px; }
  .preview-copy h3 { max-width: 13ch; }
  .screen-stage { padding-block: 25px; }
  .help-strip { flex-wrap: wrap; }
  .document-nav { position: static; display: flex; flex-wrap: wrap; gap: 0 18px; }
}

@media (max-width: 365px) {
  .shell { width: calc(100% - 30px); }
  .header-row { gap: 9px; }
  .brand { gap: 6px; font-size: 1.19rem; }
  .brand img { width: 32px; height: 32px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 0.81rem; }
  .hero h1 { font-size: 3.45rem; }
  .preview-tabs { gap: 1px; padding-inline: 7px; }
  .preview-tabs button { padding-inline: 9px; font-size: 0.8rem; }
}
