/* Deep Focus landing page, v3. Colors are the app's own (Theme.swift). */
:root {
  --bg: #141210;
  --ink: #efe9dd;
  --muted: rgba(239, 233, 221, .64);
  --faint: rgba(239, 233, 221, .56);
  --line: rgba(239, 233, 221, .12);
  --lamp: #edddc0;
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

kbd {
  display: inline-block; min-width: 1.5em; padding: 0 .3em; margin: 0 .08em;
  font: 500 .82em/1.5 var(--sans); text-align: center;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  background: rgba(239, 233, 221, .06); color: var(--ink);
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 22px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 16px; }
.brand img { border-radius: 6px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top .nav-cta { color: var(--ink); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }

/* Hero copy */
.hero { max-width: 1160px; margin: 0 auto; padding: 72px 28px 48px; }
.label {
  margin: 0 0 22px; font: 400 12px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
h1, h2, .big { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }
h1 {
  margin: 0; max-width: 15ch;
  font-size: clamp(46px, 7.4vw, 104px); line-height: .98;
}
.lede { max-width: 36em; margin: 30px 0 0; font-size: 19px; color: var(--muted); }
.lede kbd { color: var(--ink); }

/* Signup */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; margin-top: 34px; }
.signup input {
  flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 16px;
  font: 400 16px var(--sans); color: var(--ink);
  background: rgba(239, 233, 221, .05); border: 1px solid var(--line); border-radius: 10px;
}
.signup input::placeholder { color: var(--faint); }
.signup input:focus { outline: none; border-color: var(--lamp); }
.signup button {
  height: 50px; padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer;
  font: 500 16px var(--sans); color: var(--bg); background: var(--lamp);
}
.signup button:hover { background: #f6ead2; }
.signup button:disabled { opacity: .6; cursor: default; }
.form-msg { flex-basis: 100%; margin: 0; min-height: 0; font-size: 14px; color: #f0b7a4; }
.form-msg:empty { display: none; }
.thanks { margin: 0; font-size: 16px; color: var(--muted); }
.thanks strong { color: var(--ink); font-weight: 500; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--faint); }

/* The stage: a small Mac screen. Sizes inside are in container units so it scales. */
.stage-wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.stage {
  position: relative; container-type: inline-size; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: 12px;
  background: #2a2420 url(assets/stage-coast.webp) center / cover;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0, 0, 0, .55);
  font-family: var(--sans); color: #1d1d1f;
}
@media (max-width: 720px) { .stage { background-image: url(assets/stage-coast-720.webp); border-radius: 8px; } }
.stage-wrap figcaption { margin: 14px 0 0; font: 400 12px/1.5 var(--mono); color: var(--faint); letter-spacing: .02em; }

.menubar {
  position: absolute; inset: 0 0 auto; height: 2.4cqw; z-index: 3;
  display: flex; align-items: center; gap: 1.6cqw; padding: 0 1.4cqw;
  font-size: 1.05cqw; color: #fff; background: rgba(20, 18, 16, .38);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.menubar .apple { width: .9cqw; height: 1.05cqw; border-radius: 40% 40% 50% 50%; background: #fff; }
.menubar .right { margin-left: auto; display: flex; align-items: center; gap: 1.4cqw; }
.menubar .right img { width: 1.3cqw; height: 1.3cqw; border-radius: 3px; }

.win {
  position: absolute; z-index: 1; overflow: hidden;
  background: #f6f5f3; border-radius: .9cqw;
  box-shadow: 0 0 0 .07cqw rgba(0, 0, 0, .25), 0 1.6cqw 4cqw rgba(0, 0, 0, .35);
  font-size: 1.1cqw;
}
.tb { display: flex; align-items: center; gap: .55cqw; height: 2.6cqw; padding: 0 1cqw; background: #ecebe8; border-bottom: .07cqw solid #d8d6d2; }
.tb i { width: .85cqw; height: .85cqw; border-radius: 50%; background: #ff5f57; }
.tb i:nth-child(2) { background: #febc2e; }
.tb i:nth-child(3) { background: #28c840; }
.tb span { flex: 1; text-align: center; margin-right: 3.5cqw; color: #6b6965; font-size: 1cqw; }

.mail { left: 4%; top: 12%; width: 32%; height: 52%; }
.mail ul { list-style: none; margin: 0; padding: 0; }
.mail li { display: grid; gap: .1cqw; padding: .9cqw 1.2cqw; border-bottom: .07cqw solid #e3e1dd; }
.mail li b { font-weight: 500; }
.mail li span { color: #77736d; }
.chat { right: 3%; top: 44%; width: 24%; height: 36%; background: #fbfbfa; }
.chat p { margin: 1cqw 1.2cqw; }
.chat b { font-weight: 500; margin-right: .4cqw; }

.doc { left: 30%; top: 17%; width: 42%; height: 68%; z-index: 2; background: #fffdf8; }
.doc .page { padding: 3cqw 3.6cqw; font-family: var(--serif); font-size: 1.55cqw; line-height: 1.55; color: #2a2622; }
.doc h4 { margin: 0 0 1.2cqw; font-weight: 500; font-size: 2.3cqw; }
.doc p { margin: 0 0 1cqw; }
.typing span { display: inline; }
.caret { display: inline-block; width: .12cqw; height: 1.6cqw; margin-left: .1cqw; vertical-align: -.25cqw; background: #2a2622; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.toasts { position: absolute; z-index: 4; right: 1.4cqw; top: 3.4cqw; display: grid; gap: .8cqw; width: 24cqw; }
.toast {
  display: grid; gap: .1cqw; padding: .9cqw 1.2cqw; border-radius: 1.1cqw;
  font-size: 1.05cqw; background: rgba(246, 245, 243, .9);
  box-shadow: 0 .6cqw 2cqw rgba(0, 0, 0, .25);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transform: translateX(110%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.toast b { font-weight: 500; }
.toast span { color: #57534e; }
.toast.in { opacity: 1; transform: none; }

/* Walls: solid charcoal with a soft leading edge, as in WallsWindow.swift. */
.walls { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.wall { position: absolute; background: #141210; will-change: transform; }
.wall i { position: absolute; display: block; will-change: transform; }
.wall[data-side=top]    i { left: 0; right: 0; top: 100%; height: var(--f); transform-origin: 50% 0;    background: linear-gradient(to bottom, var(--feather)); }
.wall[data-side=bottom] i { left: 0; right: 0; bottom: 100%; height: var(--f); transform-origin: 50% 100%; background: linear-gradient(to top, var(--feather)); }
.wall[data-side=left]   i { top: 0; bottom: 0; left: 100%; width: var(--f); transform-origin: 0 50%;    background: linear-gradient(to right, var(--feather)); }
.wall[data-side=right]  i { top: 0; bottom: 0; right: 100%; width: var(--f); transform-origin: 100% 50%; background: linear-gradient(to left, var(--feather)); }
.stage {
  --f: 13cqw;
  --feather: rgba(20,18,16,1) 0%, rgba(20,18,16,.74) 20%, rgba(20,18,16,.42) 42%, rgba(20,18,16,.18) 64%, rgba(20,18,16,.05) 84%, rgba(20,18,16,0) 100%;
}

.bubble {
  position: absolute; z-index: 6; left: 50%; bottom: 2.4cqw;
  padding: .8cqw 1.15cqw; border-radius: 999px; white-space: nowrap;
  font: 400 1.05cqw var(--sans); color: var(--ink);
  background: #141210; box-shadow: 0 0 0 .07cqw rgba(239, 233, 221, .14), 0 .8cqw 2.4cqw rgba(0, 0, 0, .4);
  opacity: 0; transform: translate(-50%, .6cqw);
  transition: opacity .4s, transform .4s;
}
.bubble.in { opacity: 1; transform: translate(-50%, 0); }

/* Sections */
.fact, .details, .price, .faq { max-width: 1160px; margin: 0 auto; padding: 120px 28px 0; }
.big { margin: 0; font-size: clamp(64px, 11vw, 150px); line-height: .9; color: var(--lamp); }
.fact blockquote { max-width: 34em; margin: 28px 0 0; }
.fact blockquote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.4; }
.fact blockquote footer { margin-top: 14px; font: 400 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact .after { max-width: 30em; margin: 40px 0 0; font-size: 19px; }

h2 { margin: 0 0 32px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; }
.details dl { margin: 0; border-top: 1px solid var(--line); }
.details dl > div { display: grid; grid-template-columns: minmax(160px, 1fr) 2.2fr; gap: 12px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.details dt { font-weight: 500; }
.details dd { margin: 0; max-width: 36em; color: var(--muted); }

.price > p { max-width: 32em; margin: 0; font-size: 19px; color: var(--muted); }
.price .signup { margin-top: 28px; }

.faq details { border-top: 1px solid var(--line); max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; max-width: 36em; color: var(--muted); }

.foot {
  max-width: 1160px; margin: 140px auto 0; padding: 28px 28px 48px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between;
  font-size: 14px; color: var(--faint);
}
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .top { padding: 16px 20px; }
  .top nav { gap: 16px; }
  .hero { padding: 40px 20px 36px; }
  .lede, .fact .after, .price > p { font-size: 17px; }
  .stage-wrap { padding: 0 12px; }
  .stage-wrap figcaption { padding: 0 8px; }
  .fact, .details, .price, .faq { padding: 88px 20px 0; }
  .details dl > div { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .foot { margin-top: 100px; padding: 24px 20px 40px; }
  .signup button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .bubble { transition: none; }
  .caret { animation: none; }
}
