/* Tassel site: the app's navy cover on top, paper pages below, gold only for the action and the tassel (DESIGN.md). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, iframe { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
h2 { font-size: var(--text-display-s); max-width: 20ch; }
h3 { font-size: var(--text-md); letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
.wrap, .top, .hero, main > section, .foot { max-width: 1200px; margin-inline: auto; padding-inline: var(--space-lg); }

/* Cover: the app window's hero, full width */
.cover { background: var(--grad-dark); color: var(--on-dark); overflow: hidden; }
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-lg); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--font-display); }
.top-links { display: flex; gap: var(--space-lg); font-size: var(--text-sm); flex-wrap: nowrap; white-space: nowrap; }
.top-links a { text-decoration: none; color: var(--on-dark-2); padding: 12px 0; transition: color var(--dur-micro); }
.top-links a:hover { color: var(--on-dark); }
.page .top-links a, .page .mark { color: var(--ink); }
.page .top-links a { color: var(--ink-2); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-2xl); align-items: center;
  padding-block: var(--space-xl) var(--space-3xl);
}
.eyebrow { color: var(--gold); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.06em; margin-bottom: var(--space-md); }
.hero h1 { font-size: var(--text-display); max-width: 12ch; }
.gold { color: var(--gold); }
.lead { margin-top: var(--space-lg); font-size: var(--text-md); line-height: 1.5; color: var(--on-dark-2); max-width: 44ch; }
.ctas { display: flex; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-xl); flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out), background var(--dur-micro), box-shadow var(--dur-short) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-main { background: var(--gold); color: oklch(24% 0.05 70); box-shadow: 0 10px 30px -12px oklch(77% 0.139 80 / 0.7); }
.btn-main:hover { background: oklch(82% 0.13 82); box-shadow: 0 14px 34px -12px oklch(77% 0.139 80 / 0.85); }
.link-cta { color: var(--on-dark); font-weight: 600; text-underline-offset: 4px; }
.soon-note { color: var(--on-dark-2); font-size: var(--text-sm); }
.fine { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--on-dark-2); }

/* The signature: three browser windows, one bookmark landing in all of them */
.stack { position: relative; margin: 0; height: 470px; }
.win {
  position: absolute; width: 84%; border-radius: 12px; overflow: hidden; background: #fff; color: var(--ink);
  box-shadow: 0 30px 60px -20px oklch(12% 0.05 260 / 0.65), 0 0 0 1px oklch(100% 0 0 / 0.08);
}
.w3 { top: 0; right: 0; opacity: 0.82; }
.w2 { top: 72px; right: 8%; opacity: 0.92; }
.w1 { top: 144px; right: 16%; overflow: visible; }
.w1 .win-body { padding-bottom: 54px; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--wash); border-radius: 12px 12px 0 0; }
.win-bar em { flex: 1; height: 16px; margin: 0 8px 0 10px; border-radius: 8px; background: #fff; opacity: 0.8; }
.win-bar span { order: -1; padding: 3px 14px; border-radius: 8px 8px 0 0; background: #fff; font-size: 0.8rem; font-weight: 600; align-self: flex-end; }
.bmbar { display: flex; gap: 4px; margin: 0; padding: 7px 10px; list-style: none; border-bottom: 1px solid var(--rule); overflow: hidden; white-space: nowrap; background: #fff; }
.bm { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 4px 9px; border-radius: 6px; font-size: 0.78rem; color: var(--ink-2); }
.fd { width: 12px; height: 9px; border-radius: 2px; background: var(--muted); opacity: 0.55; }
.bm.new { background: oklch(93% 0.06 85); color: oklch(30% 0.06 70); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--gold); }
.bm.new .fd { background: var(--gold); opacity: 1; }
.bm.in { animation: land var(--dur-long) var(--ease-out) both; }
.bm.out { animation: leave var(--dur-short) var(--ease-in) both; }
@keyframes land { from { opacity: 0; transform: translateY(-14px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: scale(0.8); } }
.win-body { display: grid; gap: 10px; padding: 18px 16px 26px; background: #fff; border-radius: 0 0 12px 12px; }
.win-body b { height: 10px; border-radius: 5px; background: var(--wash); }
.win-body b:nth-child(1) { width: 70%; } .win-body b:nth-child(2) { width: 90%; } .win-body b:nth-child(3) { width: 55%; }
.tassel { position: absolute; right: 28px; top: -6px; width: 34px; height: auto; overflow: visible; }
.t-band { fill: var(--ribbon); stroke: oklch(80% 0.02 85); stroke-width: 1; }
.t-swing { transform-origin: 20px 49px; }
.t-swing circle { fill: var(--gold); }
.t-cord, .t-fringe { stroke: var(--gold); stroke-width: 3.4; stroke-linecap: round; fill: none; }
.stack.synced .t-swing { animation: sway 1.6s var(--ease-out) both; }
@keyframes sway { 0% { transform: rotate(0); } 25% { transform: rotate(12deg); } 55% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
.stack-status {
  position: absolute; left: 0; bottom: 0; padding: 8px 14px; border-radius: var(--radius-pill); font-size: var(--text-sm);
  background: oklch(20% 0.06 260 / 0.7); color: var(--on-dark); opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.stack-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: oklch(72% 0.17 150); }
.stack.synced .stack-status { opacity: 1; transform: none; }

/* Sections */
main > section { padding-block: var(--space-3xl); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.pain { max-width: 860px !important; }
.pain h2 { max-width: 22ch; }
.pain p { margin-top: var(--space-lg); font-size: var(--text-md); color: var(--ink-2); max-width: 58ch; }

.demo { display: grid; gap: var(--space-lg); }
.demo-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-xl); flex-wrap: wrap; }
.demo-head p { color: var(--muted); max-width: 40ch; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin-inline: -4px; }
.tabs button {
  flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule); border-radius: var(--radius-pill);
  background: #fff; color: var(--ink-2); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background var(--dur-micro), color var(--dur-micro), border-color var(--dur-micro);
}
.tabs button:hover { border-color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.appwin { border-radius: 14px; overflow: hidden; background: var(--wash); box-shadow: 0 40px 80px -40px oklch(25% 0.08 258 / 0.45), 0 0 0 1px var(--rule); }
.appwin-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--wash); }
.appwin-bar span { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
#app { display: block; width: 100%; height: 760px; border: 0; background: var(--paper); transition: opacity var(--dur-short); }
#app.loading { opacity: 0.4; }

.safe h2 { max-width: 16ch; }
.safe-list { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; gap: 0; }
.safe-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-lg); padding: var(--space-xl) 0; border-top: 1px solid var(--rule); }
.safe-list li:last-child { border-bottom: 1px solid var(--rule); }
.safe-list svg { width: 44px; height: 44px; fill: none; stroke: var(--dark); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.safe-list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-lg); align-items: baseline; }
.safe-list h3 { font-size: var(--text-lg); }
.safe-list p { color: var(--ink-2); }

.how {
  max-width: none !important; margin: 0; background: var(--grad-dark); color: var(--on-dark);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center;
  padding-inline: max(var(--space-lg), calc(50vw - 600px + var(--space-lg))) !important;
}
.how p { margin-top: var(--space-lg); color: var(--on-dark-2); max-width: 48ch; }
.flow { display: grid; justify-items: center; gap: var(--space-md); }
.flow-browsers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.flow-browsers li { padding: 8px 16px; border-radius: var(--radius-pill); background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--dark-3); font-weight: 600; font-size: var(--text-sm); }
.flow-line { position: relative; width: 2px; height: 86px; background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 16px); background-size: 2px 16px; animation: flow 900ms linear infinite; }
.flow-line span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: var(--text-sm); color: var(--tint); }
@keyframes flow { to { background-position: 0 16px; } }
@media (prefers-reduced-motion: reduce) { .flow-line { animation: none; } }
.flow-app { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: var(--radius); background: var(--on-dark); color: var(--ink); }
.flow-app b { display: block; font-family: var(--font-display); font-size: var(--text-md); }
.flow-app code { font-size: var(--text-sm); color: var(--muted); }
.flow-safari { font-size: var(--text-sm); color: var(--on-dark-2); }

.plans { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-lg); margin-top: var(--space-2xl); align-items: stretch; }
.plan { padding: var(--space-xl); border-radius: var(--radius); }
.plan-free { border: 1px solid var(--rule); }
.plan-unl { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.plan-unl::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, oklch(77% 0.139 80 / 0.35), transparent 70%); }
.amount { margin: var(--space-sm) 0 var(--space-md); font: 800 var(--text-2xl)/1 var(--font-display); }
.plan-unl .amount { color: var(--gold); }
.amount small { font: 500 var(--text-base)/1 var(--font-body); color: var(--on-dark-2); }
.plan-free p:last-child { color: var(--ink-2); }
.plan-unl p:last-child { color: var(--on-dark-2); max-width: 46ch; }

.faq { max-width: 860px !important; }
.faq h2 { margin-bottom: var(--space-xl); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: var(--space-lg) 0; font-weight: 700; font-size: var(--text-md); list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.7rem/1 var(--font-display); color: var(--brand-deep); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-lg); color: var(--ink-2); max-width: 66ch; }

.band { text-align: center; display: grid; justify-items: center; }
.band h2 { max-width: 18ch; }
.band .ctas { justify-content: center; }
.band .soon-note, .band .fine { color: var(--muted); }

/* Inner pages */
.doc { max-width: 860px; margin: 0 auto; padding: var(--space-xl) var(--space-lg) var(--space-3xl); }
.doc h1 { font-size: var(--text-display-s); max-width: 18ch; }
.doc .lead { color: var(--ink-2); }
.doc p { margin-top: var(--space-md); max-width: 68ch; }
.doc-h2 { margin-top: var(--space-2xl); font-size: var(--text-xl); }
.doc-cta { margin-top: var(--space-xl) !important; }
.ext-list { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; }
.ext-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); padding: var(--space-lg) 0; border-top: 1px solid var(--rule); }
.ext-list li:last-child { border-bottom: 1px solid var(--rule); }
.ext-list h2 { font-size: var(--text-lg); }
.ext-list p { margin-top: 4px; color: var(--muted); font-size: var(--text-sm); }
.badge-soon { flex: 0 0 auto; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--wash); color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-md) var(--space-xl); padding-block: var(--space-xl); border-top: 1px solid var(--rule); font-size: var(--text-sm); color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.foot a { color: var(--ink-2); text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }
.sig { width: 100%; }

@media (max-width: 960px) {
  .hero, .how { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: var(--space-xl); }
  .stack { height: 360px; }
  .safe-list div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .top { padding-inline: var(--space-md); }
  .top-links { gap: var(--space-md); }
  .top-links a:not([hreflang]):not(:first-child) { display: none; }
  .stack { height: 300px; margin-bottom: 56px; }
  .stack-status { bottom: -50px; font-size: 0.78rem; white-space: nowrap; }
  .lead { font-size: 1.15rem; }
  .win { width: 92%; }
  .w2 { top: 54px; right: 4%; } .w1 { top: 108px; right: 8%; }
  .safe-list li { grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-md); }
  .safe-list svg { width: 34px; height: 34px; }
  .ext-list li { flex-wrap: wrap; }
  #app { height: 900px; }
}
@media (max-width: 400px) {
  .btn { padding: 0 18px; }
}
