/* Duo's brand tokens (docs/BRAND.md), Pixel Dark with Pixel Light for the paper sections. */
@font-face { font-family: "Doto"; src: url("/fonts/Doto-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --surface: #0D0E0F;
  --surface-2: #17181A;
  --surface-3: #232528;
  --text: #FFF3D3;
  --text-2: #A39C88;
  --text-3: #78725F;
  --border: #2A2C2F;
  --border-strong: #64676C;
  --accent: #FF6A1A;
  --accent-text: #FFB547;
  --inverse: #FFF3D3;
  --on-inverse: #0D0E0F;
  --pad: 64px;
  --display: "Doto", ui-monospace, monospace;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

.paper, .plan-paper, .cta-card {
  --surface: #F2EDE0;
  --surface-2: #E8E2D2;
  --surface-3: #DDD6C3;
  --text: #1A1814;
  --text-2: #5E584B;
  --text-3: #7F786A;
  --border: #D2CAB6;
  --border-strong: #887F70;
  --accent-text: #B8460D;
  --inverse: #1A1814;
  --on-inverse: #F2EDE0;
  background: var(--surface);
  color: var(--text);
}

* { box-sizing: border-box; }
html { background: var(--surface); scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 14px/20px var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
main, .nav, .footer { max-width: 1440px; margin: 0 auto; }

/* Type */
.display { font: 900 76px/76px var(--display); max-width: 640px; }
.display-md { font: 900 64px/69px var(--display); }
.display-sm { font: 900 72px/72px var(--display); }
.headline { font: 900 48px/52px var(--display); }
.lead { font-size: 18px; line-height: 28px; color: var(--text-2); }
.title { font-size: 20px; line-height: 26px; font-weight: 600; }
.title-sm { font-size: 15px; line-height: 20px; font-weight: 600; }
.body { font-size: 14px; line-height: 20px; }
.small { font-size: 12px; line-height: 16px; }
.label { font: 500 11px/14px var(--mono); letter-spacing: 0.66px; text-transform: uppercase; }
.code { font: 400 12px/18px var(--mono); }
.muted { color: var(--text-3); }
.accent { color: var(--accent-text); }
.accent-dark { color: #B8460D; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.knob { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.knob-sm { width: 6px; height: 6px; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 2px; font: 500 15px/21px var(--sans); white-space: nowrap; }
.btn-sm { padding: 9px 16px; font-size: 13px; line-height: 18px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--inverse); color: var(--on-inverse); }
.btn-dark { background: #1A1814; color: #F2EDE0; }
.btn-outline { border: 1px solid var(--border-strong); color: var(--text); }
.btn-outline-dark { border: 1px solid #887F70; color: #1A1814; }
.btn:hover { opacity: 0.88; }

/* Nav */
.nav { display: flex; align-items: center; gap: 32px; padding: 26px var(--pad); }
.wordmark { display: inline-flex; align-items: center; gap: 4px; font: 900 28px/34px var(--display); color: var(--text); }
.nav-links { flex: 1; display: flex; justify-content: center; gap: 28px; font-weight: 500; font-size: 13px; line-height: 18px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { display: flex; align-items: center; gap: 64px; padding: 48px var(--pad) 72px; }
.hero-copy { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; font: 500 11px/14px var(--mono); letter-spacing: 0.66px; text-transform: uppercase; color: var(--text-2); }
.hero .lead { max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { width: 600px; height: 620px; flex: none; display: flex; flex-direction: column; padding: 24px 28px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; }
.fig-labels { display: flex; justify-content: space-between; color: var(--text-2); }
.fig-labels div { display: flex; flex-direction: column; gap: 4px; }
.fig-labels .end { align-items: flex-end; text-align: right; }
.hero-stage { flex: 1; display: flex; align-items: center; justify-content: center; }
.hero-stage img { width: 470px; }
.expressions { display: flex; justify-content: space-between; }
.expressions li { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-2); }
.expressions img { width: 96px; }

/* Credibility strip */
.strip { display: flex; margin: 0 var(--pad); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip .cell { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 30px; }
.strip .cell:first-child { padding-left: 0; }
.strip .cell + .cell { border-left: 1px solid var(--border); }
.strip .k { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.strip .cell p:last-child { font-size: 16px; line-height: 23px; max-width: 270px; }

/* Sections */
.section { padding: 112px var(--pad); display: flex; flex-direction: column; gap: 48px; }
.section.paper { max-width: none; }
.label-row { display: flex; align-items: center; gap: 14px; }
.label-row .rule { flex: 1; height: 1px; background: var(--border); }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; }
.top .headline { max-width: 680px; }
.top .lead { width: 520px; flex: none; }

.problem { display: flex; gap: 80px; align-items: flex-start; }
.problem .headline { width: 560px; flex: none; }
.compare { display: flex; gap: 48px; }
.steps { width: 300px; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 25px; }
.steps li.label { font-size: 11px; line-height: 14px; }
.steps.without { color: var(--text-3); }
.wide-figure { display: flex; flex-direction: column; gap: 56px; }
.wide-figure figcaption { display: flex; gap: 40px; }
.wide-figure figcaption .label { width: 616px; flex: none; }
.wide-figure figcaption .body { color: var(--text-2); max-width: 520px; }

.feature .columns { display: flex; align-items: center; gap: 72px; }
.feature .copy { width: 520px; flex: none; display: flex; flex-direction: column; gap: 28px; }
.feature .mac { flex: 1; min-width: 0; width: 720px; }
/* The exported memory art carries a footer line the app doesn't say; this covers it with what is true. */
.mem-fig { position: relative; container-type: inline-size; }
.mem-fig img { width: 100%; }
.mem-note { position: absolute; left: 18.6%; top: 59.5%; width: 58.5%; height: 4.3%; padding-left: 0.4%; display: flex; align-items: center; background: #E8E2D2; color: #5E584B; font-size: 0.85cqw; line-height: 1; white-space: nowrap; }
.rows > div { display: flex; align-items: center; min-height: 50px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 16px; line-height: 23px; }
.rows dt { width: 126px; flex: none; color: var(--text-3); }

/* Cards */
.grid { display: grid; gap: 32px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; align-self: start; }
.card .art { width: 100%; background: var(--surface-2); }
.card-copy { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px 28px; }
.card-copy .label { color: var(--text-3); }
.card-copy .title { margin-top: 0; }

.uses { gap: 32px; }
.use { padding: 28px; display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.use .who { display: flex; align-items: center; gap: 12px; }
.use .who img { width: 65px; }
.use .example { align-self: flex-start; display: flex; gap: 8px; padding: 8px 12px; background: var(--surface-2); color: var(--text-2); }
.use .example span { color: var(--accent-text); }

.theme img { width: 100%; }
.theme-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #27282B; }

/* Sidecar */
.sidecar { display: flex; align-items: center; gap: 72px; }
.sidecar .copy { width: 400px; flex: none; display: flex; flex-direction: column; gap: 28px; }
.sidecar .rows > div { font-size: 15px; }
.phones { flex: 1; display: flex; gap: 40px; justify-content: flex-end; }
.phones figure { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 387px; }

/* Privacy */
.privacy { display: flex; gap: 72px; align-items: flex-start; }
.privacy .copy { width: 470px; flex: none; display: flex; flex-direction: column; gap: 28px; }
.toggle { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.toggle > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; }
.toggle .on { background: var(--inverse); color: var(--on-inverse); }
.privacy-card { flex: 1; display: flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.privacy-figure { width: 300px; flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 20px; background: var(--surface-2); }
.specs { flex: 1; padding: 0 24px; }
.specs > div { display: flex; align-items: center; gap: 16px; min-height: 54px; border-bottom: 1px solid var(--border); font-size: 15px; }
.specs dt { width: 166px; flex: none; color: var(--text-3); }
.specs dd { flex: 1; }
.specs .knob.off { background: var(--border-strong); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: 36px; border: 1px solid var(--border); border-radius: 4px; }
.plan .title { display: flex; align-items: center; justify-content: space-between; }
.badge { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #0D0E0F; }
.price { display: flex; align-items: flex-end; gap: 20px; }
.price .label { padding-bottom: 6px; }
.plan .btn { margin-top: 8px; }
.features { margin-top: 0; }
.features li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--border); font-size: 15px; line-height: 21px; }
.features li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* FAQ */
.faq { display: flex; gap: 80px; align-items: flex-start; }
.faq .intro { width: 420px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.faq .intro .headline { white-space: nowrap; }
.questions { flex: 1; border-bottom: 1px solid var(--border); }
.questions details { border-top: 1px solid var(--border); }
.questions summary { display: flex; align-items: baseline; gap: 22px; padding: 22px 0; font-size: 17px; line-height: 24px; font-weight: 600; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; margin-left: auto; font: 400 20px/24px var(--sans); color: var(--text-2); }
.questions details[open] summary::after { content: "\2212"; }
.questions details p { margin: -10px 0 0 calc(14px + 22px); padding-bottom: 22px; max-width: 640px; color: var(--text-2); font-size: 15px; line-height: 21px; }

/* Final call */
.cta { padding: 16px var(--pad) 112px; }
.cta-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 64px; border-radius: 16px; }
.cta-card img { width: 402px; margin-bottom: 4px; }
.cta-card .display-md { max-width: 900px; }
.cta-card .lead { margin-top: -2px; }
.cta-card .meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.cta-card .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* Footer */
.footer { padding: 72px var(--pad) 40px; border-top: 1px solid var(--border); max-width: none; }
.footer > * { max-width: 1312px; margin-left: auto; margin-right: auto; }
.footer-top { display: flex; gap: 48px; }
.footer-brand { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { color: var(--text-2); font-size: 15px; line-height: 21px; }
.footer-links { width: 200px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 21px; font-weight: 500; }
.footer-links .label { color: var(--text-3); margin-bottom: 6px; }
.footer-links a:hover { color: var(--accent); }
.dot-wordmark { display: block; width: 100%; height: auto; margin-top: 56px; }
.dot-wordmark .on { fill: #FFF3D3; }
.dot-wordmark .off { fill: #2A2C2F; }
.footer-bottom { display: flex; align-items: center; gap: 10px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); }
.footer-bottom .rule { flex: 1; }
.footer-bottom .label { display: inline-flex; align-items: center; gap: 10px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 112px; }
.legal .label-row { margin-bottom: 40px; }
.legal h1 { font: 900 48px/52px var(--display); margin-bottom: 16px; }
.legal .updated { color: var(--text-3); margin-bottom: 40px; }
.legal h2 { font-size: 20px; line-height: 26px; font-weight: 600; margin: 48px 0 12px; }
.legal h3 { font-size: 16px; line-height: 23px; font-weight: 600; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 26px; color: var(--text-2); }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal p.updated { font-size: 11px; line-height: 14px; color: var(--text-3); }
.legal ul { margin: 8px 0 0; }
.legal li { position: relative; padding-left: 20px; margin-top: 6px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal code { font: 400 14px/20px var(--mono); color: var(--text); }

/* iPad */
@media (max-width: 1180px) {
  :root { --pad: 40px; }
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .hero { flex-direction: column; align-items: stretch; gap: 48px; }
  .display { font-size: 64px; line-height: 62px; max-width: 700px; }
  .display-md { font-size: 44px; line-height: 50px; }
  .headline { font-size: 40px; line-height: 44px; }
  .hero-figure { width: 100%; height: 552px; }
  .strip { flex-wrap: wrap; }
  .strip .cell { flex: 0 0 50%; padding-left: 0; }
  .strip .cell + .cell { border-left: 0; }
  .strip .cell:nth-child(even) { border-left: 1px solid var(--border); padding-left: 0; }
  .section { padding-top: 88px; padding-bottom: 88px; gap: 40px; }
  .top, .problem, .faq, .privacy, .sidecar { flex-direction: column; align-items: stretch; gap: 32px; }
  .top .lead, .problem .headline, .faq .intro, .privacy .copy, .sidecar .copy { width: auto; }
  .compare { gap: 32px; }
  .wide-figure figcaption { flex-direction: column; gap: 8px; }
  .wide-figure figcaption .label { width: auto; }
  .feature .columns { flex-direction: column; align-items: stretch; gap: 40px; }
  .feature.reverse .columns { flex-direction: column-reverse; }
  .feature .copy { width: auto; }
  .feature .mac { width: 100%; }
  .grid.three { grid-template-columns: 1fr; }
  .grid.uses, .grid.themes { grid-template-columns: 1fr 1fr; }
  .card .art { height: 240px; object-fit: contain; }
  .phones { justify-content: space-between; }
  .phones figure { width: auto; flex: 1; }
  .plans { grid-template-columns: 1fr; }
  .cta-card img { width: 300px; }
  .footer-top { flex-wrap: wrap; }
  .footer-brand { flex: 0 0 100%; }
}

/* iPhone */
@media (max-width: 640px) {
  :root { --pad: 20px; }
  .nav { padding-top: 24px; padding-bottom: 24px; }
  .hero { padding-top: 24px; gap: 40px; }
  .hero-copy { gap: 24px; }
  .display { font-size: 40px; line-height: 44px; }
  .display-md { font-size: 30px; line-height: 34px; }
  .display-sm { font-size: 56px; line-height: 56px; }
  .headline { font-size: 32px; line-height: 36px; }
  .lead { font-size: 16px; line-height: 26px; }
  .btn { padding: 13px 18px; }
  .hero-figure { height: auto; padding: 16px; gap: 24px; }
  .hero-stage img { width: 100%; }
  .expressions img { width: 76px; }
  .expressions .label { font-size: 9px; }
  .strip { flex-direction: column; border-bottom: 0; }
  .strip .cell, .strip .cell:nth-child(even) { flex: auto; border-left: 0; border-bottom: 1px solid var(--border); padding: 24px 0 26px; }
  .section { padding-top: 72px; padding-bottom: 72px; gap: 32px; }
  .compare { flex-direction: column; }
  .steps { width: auto; }
  .rows dt { width: 110px; }
  .rows > div { font-size: 15px; line-height: 21px; }
  .grid.uses, .grid.themes { grid-template-columns: 1fr; gap: 16px; }
  .grid.three { gap: 16px; }
  .card .art { height: auto; }
  .use { padding: 20px; }
  .phones { flex-direction: column; gap: 32px; align-items: center; }
  .phones figure { width: 100%; max-width: 330px; }
  .privacy-card { flex-direction: column; }
  .privacy-figure { width: auto; }
  .specs { padding: 0 20px; }
  .specs dt { width: 120px; }
  .plan { padding: 24px; }
  .questions summary { font-size: 16px; gap: 14px; }
  .questions details p { margin-left: calc(14px + 14px); }
  .cta { padding-bottom: 72px; }
  .cta-card { padding: 40px 20px; }
  .cta-card img { width: 100%; max-width: 300px; }
  .footer { padding-top: 56px; }
  .footer-top { gap: 28px 20px; }
  .footer-links { width: calc(50% - 10px); }
  .dot-wordmark { margin-top: 40px; }
  .legal { padding-top: 40px; }
  .legal h1 { font-size: 36px; line-height: 40px; }
}
