:root {
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dim: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.45);
  --hair: rgba(255, 255, 255, 0.18);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: #000; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: #fff; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Hero: the app's today screen ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 24px 20px;
}

.wordmark {
  display: block;
  align-self: flex-start;
  line-height: 0;
  margin-left: max(0px, calc((100% - 1040px) / 2));
}
.wordmark img { display: block; height: 40px; width: auto; }

.stage {
  flex: 1;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0 16px;
}

.curlo {
  width: 210px;
  height: 210px;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: drop 0.9s cubic-bezier(0.3, 1.45, 0.5, 1) both;
}
.curlo canvas { width: 100%; height: 100%; display: block; }

@keyframes drop {
  from { transform: translateY(-360px); }
  to { transform: translateY(0); }
}

.says {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  min-height: 5.4em;
  margin-top: 4px;
  max-width: 21em;
}
.says .unsaid { color: transparent; }

.panel {
  min-height: 330px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.panel[hidden] { display: none; }
.panel.enter { animation: pop 0.6s cubic-bezier(0.3, 1.3, 0.5, 1) both; }

@keyframes pop {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}

.hold {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.seal { width: 176px; height: 176px; margin: 22px 0 16px; }
.seal svg { position: absolute; overflow: visible; }
.seal .wax { inset: 0; width: 100%; height: 100%; }
.seal .ring { inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); transform: rotate(-90deg); }
.seal .q {
  font-family: var(--serif);
  font-size: 70px;
  font-weight: 500;
  fill: #fff;
}

.hint { font-size: 16px; color: var(--dim); margin-top: 18px; }

.twist {
  font-family: var(--serif);
  font-size: clamp(26px, 7.4vw, 32px);
  font-weight: 600;
  line-height: 1.18;
  text-align: center;
  margin: 14px 0 10px;
  min-height: 3.6em;
  display: flex;
  align-items: center;
  text-wrap: balance;
}

.done { width: 108px; height: 108px; margin-top: 26px; border: 2px solid #fff; }
.done .fill { position: absolute; inset: 0; border-radius: 50%; background: #fff; transform: scale(0); }
.done .word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  mix-blend-mode: difference;
}
/* A ring that keeps rippling outwards, so the button asks to be pressed. */
.done::before, .done::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: ripple 2.4s ease-out infinite;
}
.done::after { animation-delay: 1.2s; }
.done:active::before, .done:active::after { animation: none; }
.done + .hint { color: rgba(255, 255, 255, 0.85); margin-top: 22px; }

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.42); opacity: 0; }
}

.textlink {
  font: inherit;
  font-size: 13px;
  color: var(--faint);
  background: none;
  border: 0;
  padding: 8px;
  margin-top: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.textlink:hover { color: #fff; }

.mark { width: 150px; height: 150px; margin: 6px 0 4px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  text-decoration: none;
  line-height: 1.2;
  text-align: left;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; letter-spacing: 0.04em; color: var(--dim); }
.store strong { display: block; font-size: 19px; font-weight: 600; }
.store[aria-disabled="true"] { cursor: default; }

.more {
  font-size: 13px;
  color: var(--faint);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 8px;
}
.more:hover { color: #fff; }

/* ---------- Sections ---------- */

main { display: block; }

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 96px 24px;
  border-top: 1px solid var(--hair);
}

.section > .label { display: block; margin-bottom: 18px; }

.section h2 { font-size: clamp(32px, 5.4vw, 52px); max-width: 16em; }

.lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34em;
  margin-top: 22px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p, .areas p, .why p { color: var(--dim); font-size: 16px; }

.areas {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.areas li { background: #000; padding: 30px 26px 32px; }
.areas svg { width: 34px; height: 34px; display: block; margin-bottom: 20px; overflow: visible; }
.areas h3 { font-size: 24px; margin-bottom: 4px; }
.areas .eg {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
  color: #fff;
  margin-top: 14px;
}

.strand {
  display: flex;
  gap: 14px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.strand svg { width: 76px; height: 76px; overflow: visible; }
.strand svg.gap { opacity: 0.28; }

.why {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
.why h3 { font-size: 24px; margin-bottom: 8px; }

.quote {
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  max-width: 22em;
  margin: 0;
}
.quotes { display: grid; gap: 40px; margin-top: 48px; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--dim); margin-top: 10px; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 56px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.plan { background: #000; padding: 34px 30px 38px; }
.plan h3 { font-size: 28px; }
.plan .price { color: var(--dim); margin-top: 6px; font-size: 16px; }
.plan ul { padding: 0; margin: 24px 0 0; list-style: none; }
.plan li { padding: 11px 0; border-top: 1px solid var(--hair); font-size: 16px; }

.cta { text-align: center; }
.cta h2 { margin: 0 auto; }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .store { margin-top: 36px; }
.cta canvas { width: 170px; height: 170px; display: block; margin: 0 auto 4px; }

footer {
  border-top: 1px solid var(--hair);
  padding: 36px 24px 56px;
  font-size: 14px;
  color: var(--dim);
}
footer .in {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--dim); }
footer a:hover { color: #fff; }

/* ---------- Text pages ---------- */

.page { max-width: 680px; margin: 0 auto; padding: 22px 24px 96px; }
.page .wordmark { display: inline-block; margin: 0 0 72px; }
.page h1 { font-size: clamp(38px, 7vw, 56px); margin-bottom: 20px; }
.page h2 { font-size: 24px; margin: 48px 0 10px; }
.page p, .page li { color: rgba(255, 255, 255, 0.8); }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 1.1em; margin: 12px 0 0; }
.page li { margin-top: 8px; }
.page .lede { margin-top: 0; }
.page .aside { font-family: var(--serif); font-size: 19px; color: #fff; margin-top: 40px; }
.page .fine { font-size: 14px; color: var(--dim); margin-top: 56px; }

.lost { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 14px; }
.lost canvas { width: 200px; height: 200px; }
.lost h1 { font-size: clamp(30px, 6vw, 44px); max-width: 14em; }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .section { padding: 72px 20px; }
  .steps, .why, .plans { grid-template-columns: 1fr; }
  .areas li { padding: 24px 18px 26px; }
  .strand svg { width: 58px; height: 58px; }
  .curlo { width: 180px; height: 180px; }
  .says { font-size: 19px; }
}

@media (max-height: 700px) {
  .curlo { width: 150px; height: 150px; }
  .seal { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curlo, .panel.enter, .done::before, .done::after { animation: none; }
}
