/* One Question — "a card on a table". Warm walnut table, a textured paper card whose colour changes daily. */
:root {
  --table: #2b211b; --table2: #3a2c23; --cream: #f6ecd9; --muted: #cbbba3; --line: rgba(246, 236, 217, .16);
  --paper: #ff6b4a; --pink: #33150a; --mint: #1f6b55;
  --serif: 'Fraunces', Georgia, serif; --sans: 'DM Sans', system-ui, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .09' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--cream); font: 17px/1.5 var(--sans); background: var(--table); overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px clamp(16px, 4vw, 40px); position: relative; z-index: 2; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px var(--sans); letter-spacing: -.2px; }
.logo-q { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--paper); color: var(--ink, #2a0f08); font: italic 800 22px/1 var(--serif); transform: rotate(-8deg); transition: background .5s; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.langs { display: flex; gap: 2px; background: rgba(0,0,0,.25); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: none; padding: 6px 11px; border-radius: 999px; font: 700 12px var(--sans); letter-spacing: .06em; cursor: pointer; color: var(--muted); }
.langs button.on { background: var(--cream); color: var(--table); }

/* the table */
.table { position: relative; overflow-x: clip; padding: 10px clamp(16px, 4vw, 40px) 64px; display: flex; flex-direction: column; align-items: center;
  background: var(--wood), radial-gradient(120% 80% at 50% 35%, var(--table2) 0%, var(--table) 70%); background-size: 100% 300px, auto; background-repeat: repeat-y, no-repeat; }
.table::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 42%, rgba(255, 200, 120, .13), transparent 70%); }
.tag { font: italic 400 clamp(17px, 2vw, 20px) var(--serif); color: var(--muted); margin: 6px 0 22px; position: relative; text-align: center; }

.deck { position: relative; width: min(820px, 100%); perspective: 1600px; }
.ghost { position: absolute; inset: 0; border-radius: 22px; background: var(--g, #ffc93c); background-image: var(--grain); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.ghost.g1 { transform: rotate(-4.5deg) translate(-10px, 8px); --g: var(--g1c); }
.ghost.g2 { transform: rotate(3deg) translate(12px, 4px); --g: var(--g2c); }
.card { position: relative; display: grid; cursor: pointer; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); transform: rotate(-1deg); outline: none; }
.card:focus-visible .face { box-shadow: 0 0 0 4px var(--cream), 0 30px 60px rgba(0,0,0,.45); }
.card.flipped { transform: rotate(1deg) rotateY(180deg); }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; padding: clamp(22px, 4.5vw, 52px);
  background-color: var(--paper); background-image: var(--grain), linear-gradient(160deg, rgba(255,255,255,.18), rgba(0,0,0,.08)); color: var(--ink, #2a0f08);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 30px 60px rgba(0,0,0,.45), 0 6px 14px rgba(0,0,0,.25);
  min-height: clamp(380px, 52vw, 520px); display: flex; flex-direction: column; transition: background-color .5s, color .5s; }
.back { transform: rotateY(180deg); }
.card-top, .card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .16em; }
.card-foot { margin-top: auto; opacity: .7; font-weight: 500; }
.stamp { border: 2px solid currentColor; border-radius: 6px; padding: 4px 9px; transform: rotate(3deg); font: italic 700 14px var(--serif); letter-spacing: .02em; text-transform: none; }
h1 { font: 800 clamp(34px, 6.4vw, 78px)/1.02 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; letter-spacing: -.02em; margin: clamp(22px, 4vw, 40px) 0 28px; text-wrap: balance; hyphens: manual; }
h1.long { font-size: clamp(28px, 5vw, 60px); }
h1.xlong { font-size: clamp(26px, 4.2vw, 50px); }
.others { display: grid; gap: 14px; margin: 26px 0 18px; }
.others div { font: 500 clamp(17px, 2.1vw, 22px)/1.3 var(--serif); font-variation-settings: 'SOFT' 100; }
.others b { display: block; font: 700 11px var(--sans); letter-spacing: .16em; opacity: .65; margin-bottom: 2px; }
.tip { margin: auto 0 0; font: italic 400 16px/1.4 var(--serif); opacity: .8; }

.card.out { animation: out .38s cubic-bezier(.5, 0, .9, .4) forwards; }
.card.in { animation: in .5s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes out { to { transform: translate(115%, -30px) rotate(22deg); opacity: 0; } }
@keyframes in { from { transform: translateY(40px) rotate(-6deg) scale(.94); opacity: 0; } }

.hint { font: 13px var(--sans); color: var(--muted); margin: 18px 0 8px; opacity: .8; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: rgba(0,0,0,.18); color: var(--cream); padding: 11px 16px; border-radius: 999px; font: 500 15px var(--sans); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); background: rgba(0,0,0,.3); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.main { background: var(--cream); color: var(--table); border-color: var(--cream); font-weight: 700; padding: 13px 22px; font-size: 16px; }
.toast { min-height: 1.5em; margin: 12px 0 0; font: italic 16px var(--serif); color: var(--cream); }

/* tie-in */
.tie { background: var(--cream); color: #241a14; padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.tie::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 15px; background: radial-gradient(circle at 10px -2px, transparent 11px, var(--cream) 12px) 0 0 / 20px 15px repeat-x; }
.kicker { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--mint); margin: 0 0 12px; }
h2 { font: 800 clamp(32px, 5vw, 58px)/1.02 var(--serif); font-variation-settings: 'SOFT' 100, 'WONK' 1; letter-spacing: -.02em; margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
.lead { font: 400 clamp(18px, 2vw, 21px)/1.5 var(--sans); max-width: 58ch; color: #4a3b30; margin: 0; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; background: #fffaf0; border-radius: 16px; padding: 22px 20px 20px; box-shadow: 0 2px 0 #e3d5bd; }
.steps li:nth-child(odd) { transform: rotate(-1.2deg); } .steps li:nth-child(even) { transform: rotate(1deg); }
.steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink, #2a0f08); font: italic 800 20px var(--serif); margin-bottom: 14px; }
.steps h3 { font: 700 19px/1.2 var(--serif); margin: 0 0 6px; }
.steps p { margin: 0; font-size: 15px; color: #5a4a3d; }

/* app block */
.app { background: var(--mint); color: #f2fbf6; padding: clamp(50px, 7vw, 86px) 0; }
.app-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.app h2 { color: #fff; }
.app p { color: #d5efe4; max-width: 50ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #0b0b0b; color: #fff; text-decoration: none; padding: 9px 18px 9px 14px; border-radius: 12px; border: 1px solid #555; font: 600 19px/1.05 var(--sans); min-width: 180px; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font: 500 11px var(--sans); letter-spacing: .02em; opacity: .85; }
.fine { font-size: 14px; }
.feats { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.app-id { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 700 15px var(--sans); color: #fff; }
.app-id img { width: 52px; height: 52px; border-radius: 13px; flex: none; transform: rotate(-8deg); box-shadow: 0 8px 18px rgba(0,0,0,.3); }
/* real App Store screenshots dealt like the question cards: a small fanned stack; swipe strip on phones */
.shots { position: relative; height: clamp(460px, 44vw, 600px); }
.shot { position: absolute; top: 50%; left: 50%; width: 46%; max-width: 250px; margin: 0; border-radius: 24px; overflow: hidden; background: #0a1626; box-shadow: 0 0 0 6px var(--cream), 0 26px 50px rgba(0,0,0,.4); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.shot img { display: block; width: 100%; height: auto; }
.shot:nth-child(1) { transform: translate(-108%, -47%) rotate(-7deg); }
.shot:nth-child(3) { transform: translate(8%, -47%) rotate(6deg); }
.shot:nth-child(2) { z-index: 2; transform: translate(-50%, -50%) rotate(-1.5deg); }
.shots:hover .shot:nth-child(1) { transform: translate(-116%, -48%) rotate(-9deg); }
.shots:hover .shot:nth-child(3) { transform: translate(16%, -48%) rotate(8deg); }
.feats li { background: rgba(255,255,255,.08); border-left: 3px solid #ffc93c; padding: 12px 16px; border-radius: 4px 12px 12px 4px; font-size: 15px; }

/* faq */
.faq { background: var(--cream); color: #241a14; padding: clamp(50px, 7vw, 80px) 0; }
.faq h2 { font-size: clamp(28px, 4vw, 42px); }
details { border-top: 1.5px solid #dccab0; padding: 14px 0; max-width: 760px; }
details:last-child { border-bottom: 1.5px solid #dccab0; }
summary { cursor: pointer; font: 700 18px/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 400 24px/1 var(--sans); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: #5a4a3d; margin: 10px 0 4px; max-width: 64ch; }

/* ecosystem footer */
.eco { padding: 48px 0 110px; background: var(--table); }
.eco-h { font: italic 400 22px var(--serif); margin: 0 0 18px; }
.eco-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 30px; }
.eco-list li { border-top: 1px solid var(--line); padding-top: 10px; }
.eco-list a { font-weight: 700; text-decoration: none; display: block; }
.eco-list a:hover { text-decoration: underline; }
.eco-list span { font-size: 14px; color: var(--muted); }
.eco-list .here a::after { content: ' ●'; color: var(--paper); }
.foot { font-size: 13px; color: var(--muted); opacity: .8; margin: 0; }

/* sticky cta */
.sticky { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 12px; background: #fffaf0; color: #241a14; padding: 8px 8px 8px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.4); font: 500 14px var(--sans); max-width: calc(100% - 24px); animation: up .5s ease; }
@keyframes up { from { transform: translate(-50%, 30px); opacity: 0; } }
.sticky-go { background: var(--mint); color: #fff; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.sticky-x { border: 0; background: none; font-size: 22px; line-height: 1; padding: 4px 8px; cursor: pointer; color: #6d5a4a; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .app-in { grid-template-columns: 1fr; }
  .shots { height: auto; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 14px 22px 30px; overscroll-behavior-x: contain; }
  .shots::-webkit-scrollbar { display: none; }
  .shot, .shot:nth-child(n) { position: static; transform: none; flex: 0 0 min(60vw, 240px); width: auto; max-width: none; scroll-snap-align: center; box-shadow: 0 0 0 5px var(--cream), 0 20px 36px rgba(0,0,0,.35); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(n) { transform: none; }
  .face { min-height: 340px; border-radius: 18px; }
  h1 { font-size: 36px; } h1.long { font-size: 31px; } h1.xlong { font-size: 27px; }
  .ghost { border-radius: 18px; }
  .btn { padding: 10px 13px; font-size: 14px; }
  .btn.main { width: 100%; justify-content: center; }
  .sticky { font-size: 13px; padding-left: 14px; gap: 6px; width: calc(100% - 24px); }
  .sticky > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .store { min-width: 0; flex: 1 1 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card.out, .card.in, .sticky { animation: none !important; transition: none !important; }
}
