/* stranda.io. World: notes are bright beads; Stranda ties them into one rope (site/DESIGN.md).
   Stranda mint is the one loud colour; beads carry four kind colours. Fonts are served from
   this site (Gabarito for display, Onest for text, SIL OFL); nothing loads from a third party. */
@font-face { font-family: 'Gabarito'; font-weight: 400 900; font-display: swap; src: url(fonts/gabarito-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gabarito'; font-weight: 400 900; font-display: swap; src: url(fonts/gabarito-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 100 900; font-display: swap; src: url(fonts/onest-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 100 900; font-display: swap; src: url(fonts/onest-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #f3f8f5;          /* mint-white */
  --ground-2: #e8f2ec;
  --card: #fbfdfc;
  --ink: #0f2219;             /* deep green ink */
  --text: #2c3b34;
  --muted: #56675f;           /* 5.2:1 or better on every ground */
  --rule: #d8e4dd;
  --rule-strong: #b9cbc1;
  --mint: #3ddc97;            /* Stranda mint: rope, marks, focus */
  --mint-pale: #c9f6e2;       /* the headline's marker band */
  --accent: #0a8f61;          /* mint deepened for text: 3.8:1 on the ground, 3.5:1 on the marker band */
  --focus: #0a8f61;           /* focus ring: 3.8:1 on the ground (mint alone is 1.65:1) */
  --link: #087a52;            /* 5:1 for small text */
  --k-person: #ff7a6b;        /* bead kinds */
  --k-project: #12b07a;
  --k-idea: #ffb547;
  --k-book: #4c9be8;
  --error: #b8392a;
  --cta: #0f2219;
  --cta-ink: #f3f8f5;
  --bezel: #0f1d16;
  --mark: #d6efe2;
  --shadow: 0 22px 44px -24px rgba(15, 34, 25, .34), 0 6px 14px -8px rgba(15, 34, 25, .14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --display: 'Gabarito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --sans: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b1511; --ground-2: #0f1d17; --card: #13231c; --ink: #e8f4ee; --text: #c8d8d0; --muted: #93a79d;
    --rule: #1f3329; --rule-strong: #2f4a3d; --mint-pale: #12402d; --accent: #4fe3a3; --focus: #3ddc97; --link: #4fe3a3;
    --error: #ff8f7c; --cta: #3ddc97; --cta-ink: #06331f; --bezel: #22352c; --mark: #142a20;
    --shadow: 0 22px 44px -24px rgba(0, 0, 0, .75), 0 6px 14px -8px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b1511; --ground-2: #0f1d17; --card: #13231c; --ink: #e8f4ee; --text: #c8d8d0; --muted: #93a79d;
  --rule: #1f3329; --rule-strong: #2f4a3d; --mint-pale: #12402d; --accent: #4fe3a3; --focus: #3ddc97; --link: #4fe3a3;
  --error: #ff8f7c; --cta: #3ddc97; --cta-ink: #06331f; --bezel: #22352c; --mark: #142a20;
  --shadow: 0 22px 44px -24px rgba(0, 0, 0, .75), 0 6px 14px -8px rgba(0, 0, 0, .5); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; accent-color: var(--accent); scrollbar-color: var(--rule-strong) var(--ground); scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .22em; text-decoration-thickness: 1px; }
::selection { background: var(--mint-pale); color: var(--ink); }
input { caret-color: var(--accent); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 32em; }
.lede strong { color: var(--ink); font-weight: 600; }
.section { padding-block: clamp(88px, 11vw, 150px); }
.why { padding-top: clamp(56px, 7vw, 96px); }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease, opacity 200ms ease; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.soft { background: var(--mint-pale); color: var(--ink); }
.btn svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover svg { transform: translateX(3px); } .btn.soft:hover { background: var(--mint); color: #0f2219; } }
.early { display: flex; flex-direction: column; gap: 8px; width: min(480px, 100%); }
.field-label { font-size: .875rem; font-weight: 500; color: var(--muted); padding-left: 18px; }
.join { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--rule); transition: box-shadow 200ms ease; }
.join:focus-within { box-shadow: var(--shadow), inset 0 0 0 2px var(--focus); }
.join input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 1rem/1 var(--sans); padding: 0 6px 0 16px; outline: none; }
.join input::placeholder { color: var(--muted); opacity: 1; }
.helper { font-size: .875rem; color: var(--muted); padding-left: 18px; }
.msg { padding-left: 18px; font-weight: 600; color: var(--ink); transition: opacity 260ms var(--ease-out), translate 260ms var(--ease-out); }
.msg:empty { display: none; }
.msg[data-kind="error"] { color: var(--error); }
@starting-style { .msg { opacity: 0; translate: 0 4px; } }
.done .join, .done .field-label { display: none; }
.done .msg { font: 700 1.25rem/1.3 var(--display); padding-left: 0; }

/* nav */
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); }
.brand span { font: 800 1.65rem/1 var(--display); color: var(--ink); letter-spacing: -.035em; padding-bottom: 3px; }
.links { display: flex; align-items: center; gap: 28px; }
.nav a.link { color: var(--muted); text-decoration: none; font-size: .9688rem; transition: color 200ms ease; }
.nav a.login { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-strong); }
@media (hover: hover) and (pointer: fine) { .nav a.link:hover { color: var(--ink); } .nav a.login:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }

/* hero */
.hero { position: relative; overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; min-height: min(640px, calc(100svh - 76px)); padding-block: 12px 32px; }
.hero h1 { font-size: clamp(2.9rem, 5.2vw, 4.8rem); line-height: .98; font-weight: 800; letter-spacing: -.04em; }
.hero h1 .tie { color: var(--accent); background: linear-gradient(transparent 60%, var(--mint-pale) 60%, var(--mint-pale) 92%, transparent 92%); padding-inline: .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .copy { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }

/* the playground */
.play { position: relative; height: clamp(460px, 44vw, 590px); margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--max) - 2 * var(--gutter)) / 2)); }
.play canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.toss { position: absolute; left: 4%; top: 78%; width: min(440px, 88%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--rule); z-index: 3; }
.toss:focus-within { box-shadow: var(--shadow), inset 0 0 0 2px var(--focus); }
.toss input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 .9688rem/1 var(--sans); padding: 0 6px 0 16px; outline: none; }
.toss input::placeholder { color: var(--muted); opacity: 1; }
.toss .btn { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.demo-note { position: absolute; left: calc(4% + 18px); top: calc(78% + 62px); font-size: .8125rem; color: var(--muted); }
.bubble { position: absolute; z-index: 4; max-width: 260px; padding: 12px 14px; border-radius: 16px; background: var(--card); color: var(--text); font-size: .9375rem; line-height: 1.4; box-shadow: var(--shadow); pointer-events: none; opacity: 0; scale: .96; transition: opacity 180ms var(--ease-out), scale 180ms var(--ease-out); }
.bubble.on { opacity: 1; scale: 1; }
.bubble b { display: flex; align-items: center; gap: 6px; font: 700 .8125rem/1.3 var(--display); color: var(--ink); margin-bottom: 2px; }
.bubble b::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--k); }
.bubble small { display: block; margin-top: 6px; color: var(--muted); font-size: .8125rem; }

/* stop filing: the folder system, dropped in a heap */
.why .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.why h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -.045em; line-height: .95; }
.why .lede { max-width: 30em; color: var(--text); }
.heap { position: relative; width: min(980px, 100%); height: 140px; margin-top: 40px; border-bottom: 2px solid var(--rule); }
.heap span { position: absolute; left: min(var(--x), calc(100% - 170px)); bottom: calc(-1 * var(--y, 0px)); rotate: var(--r); display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule-strong), 0 10px 18px -12px rgba(15, 34, 25, .3); color: var(--muted); font-size: .9688rem; white-space: nowrap; transform-origin: 50% 100%; }
.heap span::before { content: ''; width: 16px; height: 12px; border-radius: 2px 4px 3px 3px; background: var(--rule-strong); clip-path: polygon(0 0, 42% 0, 52% 22%, 100% 22%, 100% 100%, 0 100%); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .heap span { animation: drop linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
  }
}
@keyframes drop { from { translate: 0 -28px; rotate: 0deg; } 70% { rotate: calc(var(--r) * 1.15); } }

/* how it works: one phone, four steps on a rope */
.how h2 { max-width: 13em; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(24px, 4vw, 48px); }
.steps { position: relative; padding-left: 72px; }
.vrope { position: absolute; left: 6px; top: 0; width: 36px; height: 100%; }
.step { position: relative; min-height: min(78vh, 660px); display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-block: 40px; }
.step h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--muted); transition: color 240ms ease; }
.step.on h3 { color: var(--ink); }
.step p { max-width: 30em; font-size: 1.125rem; }
.sbead { position: absolute; left: -64px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--k) 50%, white), var(--k) 55%, color-mix(in srgb, var(--k) 72%, black)); box-shadow: 0 10px 18px -8px rgba(15, 34, 25, .5); scale: .72; transition: scale 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.step.on .sbead { scale: 1.08; box-shadow: 0 0 0 7px color-mix(in srgb, var(--k) 22%, transparent), 0 10px 18px -8px rgba(15, 34, 25, .5); }
.ways { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ways li { padding: 6px 13px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); font-size: .875rem; color: var(--ink); }
.qs { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 4px; }
.q { padding: 10px 16px; border-radius: 18px 18px 18px 6px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; }
.q:nth-child(2) { margin-left: 28px; }
.stage { display: flex; justify-content: center; }
.phone { --w: 300px; width: var(--w); max-width: 100%; margin: 0; padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .165); background: var(--bezel); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.phone img { width: 100%; height: auto; aspect-ratio: 786 / 1704; border-radius: calc(var(--w) * .138); }
.phone.sticky { position: sticky; top: max(24px, calc(50vh - 340px)); align-self: start; display: grid; }
.phone.sticky picture { grid-area: 1 / 1; opacity: 0; filter: blur(2px); scale: .985; transition: opacity 280ms var(--ease-out), filter 280ms var(--ease-out), scale 280ms var(--ease-out); }
.phone.sticky picture.on { opacity: 1; filter: none; scale: 1; }
.phone.inline { display: none; }

/* the desk */
.desk { background: var(--ground-2); }
.desk .wrap { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.desk-copy { display: flex; flex-direction: column; gap: 18px; }
.devices { position: relative; padding-right: clamp(0px, 9vw, 130px); padding-bottom: clamp(0px, 4vw, 48px); }
.browser { margin: 0; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--rule); }
.browser .bar { display: flex; justify-content: center; padding: 10px; border-bottom: 1px solid var(--rule); }
.browser .bar span { padding: 4px 14px; border-radius: 8px; background: var(--ground-2); color: var(--muted); font-size: .8125rem; }
.phone.side { --w: clamp(150px, 19vw, 250px); position: absolute; right: 0; bottom: 0; }
.caption { font-size: .875rem; color: var(--muted); }

/* privacy */
.privacy .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.privacy-copy { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 44px; }
.promises li { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 22px; border-top: 2px solid var(--mint); }
.promises li::before { content: ''; position: absolute; left: 0; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9f6e2, var(--mint) 55%, #0b7a55); box-shadow: 0 6px 10px -6px rgba(15, 34, 25, .5); }
.promises h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.promises p { color: var(--muted); font-size: 1rem; }
.phone.consent { --w: 270px; justify-self: center; rotate: 2deg; }

/* faq */
.faq .wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; font: 600 1.2rem/1.35 var(--display); color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { flex: none; color: var(--muted); transition: rotate 220ms var(--ease-out), color 200ms ease; }
.qa details[open] summary svg { rotate: 45deg; color: var(--accent); }
.qa details p { padding: 0 44px 24px 4px; color: var(--text); max-width: 40em; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover svg { color: var(--ink); } }

/* close */
.close .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.close h2 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); letter-spacing: -.045em; }
.close .early { text-align: left; }
.knot { width: min(560px, 90%); height: 120px; }
.big-mark { font: 800 clamp(5rem, 22vw, 18rem)/.8 var(--display); letter-spacing: -.06em; color: var(--mark); text-align: center; margin: 40px 0 0; user-select: none; overflow: hidden; }
.foot { padding-block: 26px 40px; font-size: .875rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--muted); text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--ink); } }

@media (max-width: 960px) {
  .hero .wrap, .privacy .wrap, .faq .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .play { height: 520px; margin-top: 8px; margin-right: calc(-1 * var(--gutter)); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .stage { display: none; }
  .steps { padding-left: 44px; display: flex; flex-direction: column; gap: 72px; }
  .vrope { left: 0; width: 26px; }
  .sbead { left: -44px; top: 0; margin-top: 4px; width: 26px; height: 26px; }
  .step { min-height: 0; padding-block: 0; }
  .step h3 { color: var(--ink); }
  .phone.inline { display: block; --w: min(280px, 100%); margin-top: 12px; align-self: center; }
  .phone.consent { rotate: 0deg; }
  .devices { padding-right: 0; padding-bottom: 0; }
  .phone.side { position: static; --w: 210px; margin: 24px auto 0; }
}
@media (max-width: 640px) {
  .nav .wrap { gap: 16px; }
  .nav a.link.hide { display: none; }
  .join { flex-direction: column; border-radius: 22px; padding: 8px; }
  .join input { min-height: 46px; padding-left: 10px; }
  .toss { left: 0; right: var(--gutter); width: auto; top: auto; bottom: 30px; }
  .demo-note { top: auto; bottom: 4px; left: 18px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .heap { height: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 4px 2px; padding-bottom: 10px; }
  .heap span { position: static; font-size: .875rem; padding: 7px 12px 7px 10px; margin-inline: -2px; }
  .qa details p { padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn svg, .bubble, .msg, .sbead, .step h3, .qa summary svg { transition: none; }
  .phone.sticky picture { transition: opacity 120ms linear; filter: none; scale: 1; }
}
