/* Mindshelf public pages: the same editorial system as the app. Bodoni Moda upright at its normal weight with a
   hairline stroke, Butter only as the top block, Petrol, Powder and Dusty rose below, paper background, light only. */
:root {
  --butter: #f3e6a8; --petrol: #0f4c5c; --powder: #c9dbea; --navy: #13294b; --rose: #d9a3a3;
  --ink: #141414; --ink-2: #4a4744; --ink-3: #7a756f; --paper: #faf8f5; --line: #d9d3c9;
  --display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --serif: "Newsreader", Georgia, serif;
  --label: "Archivo Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
em, i { font-style: normal; }
a { color: inherit; text-decoration-color: var(--petrol); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }
/* Full width at every size: only running text keeps a measure. */
:root { --gut: max(clamp(16px, 4vw, 64px), env(safe-area-inset-left, 0px)); }
.wrap { width: 100%; padding-inline: var(--gut); }
.read { max-width: 700px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; margin: 0; text-wrap: balance; -webkit-text-stroke: .35px currentColor; }
h1 { font-size: clamp(46px, 8.6vw, 168px); line-height: .92; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.02; }
h3 { font-size: 26px; line-height: 1.15; -webkit-text-stroke: .2px currentColor; }
p { margin: 0; }
.label { font: 700 12px var(--label); letter-spacing: .16em; text-transform: uppercase; }
.lede { font: 400 clamp(20px, 2.3vw, 24px)/1.5 var(--serif); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.demo-bar { background: var(--rose); color: var(--petrol); text-align: center; font: 700 12px var(--label); letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; }

/* masthead */
.top { border-bottom: 1px solid var(--ink); box-shadow: inset 0 4px 0 var(--butter); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 16px 12px; }
.brand { display: flex; align-items: center; gap: 12px; font: 900 30px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; color: var(--petrol); text-decoration: none; -webkit-text-stroke: .35px currentColor; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { font: 700 13px var(--label); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); text-decoration: underline; }

/* buttons and forms */
.btn { display: inline-block; font: 700 13px var(--label); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 14px 20px; border: 1px solid var(--petrol); background: var(--petrol); color: var(--butter); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--petrol); }
.btn[disabled] { opacity: .5; cursor: default; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font: 700 12px var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.form input { font: 400 17px var(--sans); padding: 13px 14px; border: 1px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; text-transform: none; letter-spacing: 0; }
.form .msg { min-height: 1.4em; font-size: 15px; }
.form .msg.err { color: #9b2c2c; }
.small { font-size: 14px; }

/* hero: the Butter block, top of page only */
.cover { background: var(--butter); margin-inline: calc(var(--gut) * -1); padding: clamp(28px, 5vw, 72px) var(--gut); display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.cover .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.cover .lede { color: var(--ink); margin-top: 26px; max-width: 40ch; }
.signup { background: var(--paper); border: 1px solid var(--ink); padding: 24px; }
.signup h3 { margin-bottom: 6px; }

section { padding-block: clamp(48px, 7vw, 84px); }
section + section { border-top: 1px solid var(--line); }

/* three-up colour cards: Petrol, Powder, Dusty rose with Butter lettering inside */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.tint { padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tint.petrol { background: var(--petrol); color: var(--butter); }
.tint.powder { background: var(--powder); color: var(--navy); }
.tint.rose { background: var(--rose); color: var(--petrol); }
.tint p { font: 400 18px/1.5 var(--serif); }

/* the shelf of units */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 30px; }
.unit { padding: 16px 18px 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.unit:nth-child(3n+1) { background: var(--petrol); color: var(--butter); }
.unit:nth-child(3n+2) { background: var(--powder); color: var(--navy); }
.unit:nth-child(3n) { background: var(--rose); color: var(--petrol); }
.unit b { font: 400 28px/1 var(--display); -webkit-text-stroke: .3px currentColor; }
.unit span.t { font: 400 15px/1.35 var(--serif); }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 20px 20px 20px 0; }
.steps li::before { content: counter(s); display: block; font: 400 44px/1 var(--display); color: var(--petrol); margin-bottom: 10px; }
.steps b { display: block; font: 400 22px/1.2 var(--display); margin-bottom: 6px; }
.steps span { color: var(--ink-2); font-size: 15px; }

/* price */
.price { border: 1px solid var(--ink); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: #fff; }
.price .big { font: 400 clamp(64px, 10vw, 120px)/.9 var(--display); color: var(--petrol); -webkit-text-stroke: .4px currentColor; }
.price ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--ink-2); }
.price li { margin-bottom: 6px; }

/* faq */
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 400 22px/1.3 var(--display); list-style: none; -webkit-text-stroke: .2px currentColor; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--petrol); }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--ink-2); max-width: 68ch; }

.panel { max-width: 460px; margin: clamp(32px, 7vw, 72px) auto; border: 1px solid var(--ink); background: #fff; padding: clamp(22px, 4vw, 36px); }
.panel h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 12px; }
.legal h2 { font-size: 30px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }

footer { border-top: 1px solid var(--ink); padding-block: 26px 48px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* movement */
.ticker { margin-inline: calc(var(--gut) * -1); background: var(--petrol); color: var(--butter); overflow: hidden; border-block: 1px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: 400 clamp(22px, 2.6vw, 34px)/1 var(--display); padding: 16px 0; white-space: nowrap; -webkit-text-stroke: .3px currentColor; }
.ticker span::after { content: "\2726"; font-size: .5em; vertical-align: middle; margin-inline: .9em; color: var(--rose); -webkit-text-stroke: 0; }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.cover h1 { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.cover .lede { animation: rise .9s .15s cubic-bezier(.2,.7,.2,1) both; }
.cover .signup { animation: rise .9s .3s cubic-bezier(.2,.7,.2,1) both; }
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.unit, .tint { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.unit:hover, .tint:hover { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .cover, .price { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
}

/* Sign-up sent: a big, unmissable "check your inbox" moment. */
.sent { border: 1px solid var(--ink); padding: clamp(28px, 5vw, 56px); max-width: min(640px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 0 0 10px var(--butter); }
.sent::backdrop { background: rgba(20, 20, 20, .55); }
.sent h2 { font: 400 clamp(40px, 7vw, 72px)/1 var(--display); margin: 0 0 18px; text-wrap: balance; }
.sent .lede { color: var(--ink); margin: 0 0 12px; }
.sent strong { overflow-wrap: anywhere; }
.sent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
