/* The landing page. Colours, type and the top bar come from style.css. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
section { scroll-margin-top: 84px; }
.head { max-width: 760px; }
.head h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -0.04em; margin-top: 14px; }
.head .sub { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 600px; }

/* Things rise into place as they are scrolled to. Without scripts, or with Reduce Motion, they are simply there. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Opening ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(46px, 6.3vw, 84px); line-height: 0.98; letter-spacing: -0.045em; margin: 18px 0 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; height: 54px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--surface); font: 500 17px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; box-shadow: 0 14px 28px -12px rgba(47, 90, 71, 0.55); transition: transform 0.25s var(--ease), background 0.25s; }
.btn:hover { background: var(--accent-deep); color: var(--surface); transform: translateY(-2px); }
.stores { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.store { display: flex; flex-direction: column; justify-content: center; height: 54px; padding: 0 20px; border-radius: 14px; background: var(--stone-light); color: var(--ink); font: 500 17px/1.1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.store small { font: 400 10.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
a.store { background: var(--ink); color: var(--surface); box-shadow: none; transition: transform 0.25s var(--ease); }
a.store small { color: rgba(253, 251, 247, 0.7); }
a.store:hover { color: var(--surface); transform: translateY(-2px); }

.js .hero-copy > * { animation: rise 0.9s var(--ease) backwards; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.18s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.28s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Today's outfit: the picture, then its three pieces and the stylist's line. */
.today { max-width: 640px; width: 100%; justify-self: end; }
.stage-box { position: relative; }
.stage { width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.stage:active { cursor: grabbing; }
.stage .e { stroke: #23221f; stroke-opacity: 0.22; stroke-width: 1.5; stroke-linejoin: round; }
.piece { transition: transform 0.6s var(--ease), opacity 0.32s ease; }
.piece.enter { opacity: 0; transform: translateX(calc(var(--dir, 1) * 96px)) scale(0.62); transition: none; }
.piece.out { opacity: 0; transform: translateX(calc(var(--dir, 1) * -96px)) scale(0.62); }
#slot-shoes .piece.enter { transform: translateX(calc(var(--dir, 1) * 40px)); }
#slot-shoes .piece.out { transform: translateX(calc(var(--dir, 1) * -40px)); }

/* How it arrives: the horizon is drawn, the sun comes up behind it, and the figure is dressed. */
.boot .horizon { stroke-dasharray: 1; animation: draw 0.9s 0.1s cubic-bezier(0.6, 0, 0.2, 1) backwards; }
.boot .sun { animation: sunrise 1.5s 0.45s var(--ease) backwards; }
.boot .figure { animation: fade 0.6s 0.7s ease backwards; }
.boot #slot-top .piece { animation: from-left 0.8s 1.05s var(--ease) backwards; }
.boot #slot-bottom .piece { animation: from-right 0.8s 1.25s var(--ease) backwards; }
.boot #slot-shoes .piece { animation: from-below 0.6s 1.5s var(--ease) backwards; }
.boot .cal { animation: fade 0.5s 1.0s ease backwards; }
.boot .spark { animation: pop 0.6s 1.9s cubic-bezier(0.3, 1.6, 0.5, 1) backwards; }
.spark { transform-box: fill-box; transform-origin: center; }
.spark.again { animation: pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sun.again .rim { animation: dawn 0.9s var(--ease); }
.cal text { transition: opacity 0.25s; }
.cal.turn text { opacity: 0; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes sunrise { from { transform: translateY(150px); } }
@keyframes dawn { from { transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes from-left { from { opacity: 0; transform: translateX(-130px) scale(0.6); } }
@keyframes from-right { from { opacity: 0; transform: translateX(130px) scale(0.6); } }
@keyframes from-below { from { opacity: 0; transform: translateY(26px); } }
@keyframes pop { from { opacity: 0; transform: scale(0) rotate(-40deg); } }

.pause { position: absolute; right: 3%; bottom: 9%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--hair); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.pause:hover { color: var(--ink); }
.pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pause .i-play { display: none; fill: currentColor; }
.pause[aria-pressed="true"] .i-play { display: block; }
.pause[aria-pressed="true"] .i-pause { display: none; }

.look { background: var(--surface); border-radius: 20px; box-shadow: 0 0 0 1px var(--hair), 0 24px 48px -32px rgba(35, 34, 31, 0.28); margin-top: 18px; overflow: hidden; }
.pieces { list-style: none; margin: 0; padding: 6px; }
.pieces button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: none; color: var(--ink); font: 500 16px/1.2 var(--body); text-align: left; cursor: pointer; transition: background 0.2s; }
.pieces button:hover { background: var(--sage); }
.pieces .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(35, 34, 31, 0.18); flex: none; transition: background 0.4s; }
.pieces .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pieces .kind { font: 400 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pieces .swap { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform 0.4s var(--ease); }
.pieces button:hover .swap { transform: rotate(180deg); }
.pieces .name, .pieces .kind, .verdict > * { transition: opacity 0.2s; }
.changing .name, .changing .kind, .verdict.changing > * { opacity: 0; }
.verdict { display: flex; align-items: baseline; gap: 12px; padding: 14px 20px 16px; border-top: 1px solid var(--hair); min-height: 76px; font-size: 15.5px; line-height: 1.45; }
.tier { flex: none; font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 9px; border-radius: 7px; background: var(--accent); color: var(--surface); position: relative; top: -1px; }
.tier[data-tier="Good"] { background: var(--sage); color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--sage-line); }
.tier[data-tier="Weak"] { background: var(--warm-bg); color: var(--warm); }
.try { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- How it works ---------- */
.how { padding-top: clamp(56px, 8vw, 112px); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(24px, 4vw, 48px); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 28px 28px; border-left: 2px solid var(--line); transition: border-color 0.5s; }
.step.on { border-left-color: var(--accent); }
.step .n, .step h3 { transition: color 0.5s; }
.step:not(.on) .n, .step:not(.on) h3 { color: var(--muted); }
.step .n { font: 500 12px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.step h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.035em; margin: 14px 0 14px; }
.step > p:last-of-type { font-size: 18px; color: var(--muted); max-width: 26em; }
.sticky { position: sticky; top: calc(50vh - min(38vh, 330px)); align-self: start; display: grid; place-items: center; padding: 20px 0; }
.halo { position: absolute; width: min(118%, 520px); aspect-ratio: 2 / 1; left: 50%; bottom: 14%; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: var(--sage); }
.phone { position: relative; margin: 0; width: min(100%, 306px); height: auto; aspect-ratio: 590 / 1280; max-height: 76vh; border: 9px solid var(--ink); border-radius: 44px; background: var(--bg); overflow: hidden; box-shadow: 0 40px 70px -40px rgba(35, 34, 31, 0.5); }
.sticky .phone { width: auto; height: min(76vh, 660px); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sticky .phone img { opacity: 0; transform: translateY(14px) scale(1.02); transition: opacity 0.5s ease, transform 0.8s var(--ease); }
.sticky .phone img.on { opacity: 1; transform: none; }
/* The captures carry the owner's own clock and signal; this stands in for them. */
.phone::before { content: "9:41"; position: absolute; z-index: 2; inset: 0 0 auto 0; height: 6.4%; padding: 3.4% 0 0 11%; background: linear-gradient(var(--bg) 82%, rgba(245, 242, 236, 0)); font: 600 13px/1 var(--display); color: var(--ink); }
.phone::after { content: ""; position: absolute; z-index: 3; top: 1.5%; left: 50%; width: 30%; height: 3%; transform: translateX(-50%); border-radius: 99px; background: var(--ink); }
.phone.inline { display: none; }

/* ---------- Once your clothes are in ---------- */
.more { padding-top: clamp(72px, 10vw, 140px); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 4vw, 52px); }
.card { background: var(--surface); border-radius: 24px; box-shadow: 0 0 0 1px var(--hair); padding: 14px 14px 30px; }
.card h3 { font-size: 26px; line-height: 1.1; margin: 26px 16px 10px; }
.card > p { margin: 0 16px; color: var(--muted); max-width: 30em; }
.art { height: 200px; border-radius: 14px; background: radial-gradient(120% 120% at 50% 30%, var(--stone-light), var(--stone)); display: grid; place-items: center; padding: 20px; overflow: hidden; }
.grid30, .insight, .week { place-items: stretch; }
.grid30 { grid-template-columns: repeat(10, 22px); grid-auto-rows: 22px; gap: 7px; place-content: center; }
.grid30 i { border-radius: 6px; background: rgba(35, 34, 31, 0.08); transition: background 0.5s ease, transform 0.5s var(--ease); transition-delay: calc(var(--i) * 28ms + 200ms); }
.js .card:not(.in) .grid30 i { background: rgba(35, 34, 31, 0.08) !important; transform: scale(0.6); }
.insight { grid-template-columns: minmax(0, 340px); gap: 18px; place-content: center; }
.bar5 { display: flex; height: 26px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(35, 34, 31, 0.1); background: var(--surface); }
.bar5 i { background: var(--c); flex: var(--w) 0 0; transition: flex-grow 1.1s var(--ease) 0.2s; }
.js .card:not(.in) .bar5 i { flex-grow: 0.0001; }
.insight dl { margin: 0; display: grid; gap: 7px; }
.insight dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.insight dt { font: 400 11.5px/1.6 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.insight dd { margin: 0; font-weight: 500; }
.week { grid-template-columns: repeat(5, minmax(0, 62px)); gap: 9px; place-content: center; }
.week div { background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--hair); padding: 10px 0 12px; display: grid; justify-items: center; gap: 6px; transition: transform 0.7s var(--ease), opacity 0.5s; }
.week div:nth-child(2) { transition-delay: 0.08s; } .week div:nth-child(3) { transition-delay: 0.16s; } .week div:nth-child(4) { transition-delay: 0.24s; } .week div:nth-child(5) { transition-delay: 0.32s; }
.js .card:not(.in) .week div { transform: translateY(26px); opacity: 0; }
.week b { font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.week i { width: 26px; height: 16px; border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(35, 34, 31, 0.14); }
.week i:last-child { width: 18px; height: 8px; border-radius: 4px; }
.both svg { height: 100%; width: auto; }
.both .e { stroke: #23221f; stroke-opacity: 0.22; stroke-width: 1.5; stroke-linejoin: round; }

/* ---------- Your photos ---------- */
.yours { background: var(--accent); color: var(--surface); margin-top: clamp(72px, 10vw, 140px); padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.yours::before { content: ""; position: absolute; right: -8%; bottom: -1px; width: min(70vw, 760px); aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; box-shadow: 0 0 0 1.5px rgba(253, 251, 247, 0.18), 0 0 0 64px var(--accent), 0 0 0 65.5px rgba(253, 251, 247, 0.1); }
.yours .wrap { position: relative; }
.yours .tag { color: #BFDCCB; }
.yours h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.045em; margin-top: 14px; max-width: 12em; }
.promises { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.promises li { border-top: 1px solid rgba(253, 251, 247, 0.28); padding-top: 20px; }
.promises h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 10px; }
.promises p { color: rgba(253, 251, 247, 0.82); font-size: 16.5px; }
.yours-link { margin-top: 40px; }
.yours-link a { color: var(--surface); font: 500 17px/1 var(--display); }
.yours-link a:hover { color: #9CC4AE; }
.yours :focus-visible { outline-color: var(--surface); }

/* ---------- Free and Plus ---------- */
.plans { padding-top: clamp(72px, 10vw, 140px); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 4vw, 52px); }
.plan { background: var(--surface); border-radius: 24px; box-shadow: 0 0 0 1px var(--hair); padding: 28px 28px 30px; }
.plan.plus { background: var(--sage); box-shadow: 0 0 0 1.5px var(--accent); }
.plan h3 { font: 500 12px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.plan .big { font: 500 64px/1 var(--display); letter-spacing: -0.05em; margin: 22px 0 22px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan .big span { font: 500 16px/1.25 var(--body); letter-spacing: 0; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plan li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; }
.plan li:last-child { border-bottom: 0; padding-bottom: 0; }
.fine { margin-top: 20px; font-size: 14.5px; color: var(--muted); }

/* ---------- Help ---------- */
.help { padding-top: clamp(72px, 10vw, 140px); }
.help .head h2 { font-size: clamp(30px, 3.8vw, 46px); }
.answers { margin: clamp(28px, 4vw, 48px) 0 0; border-top: 1px solid var(--line); }
.answers div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.answers dt { font: 500 20px/1.25 var(--display); letter-spacing: -0.02em; }
.answers dd { margin: 0; color: var(--muted); }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .today { justify-self: center; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky { display: none; }
  .step { min-height: 0; border-left-color: var(--accent); padding: 8px 0 8px 22px; margin-bottom: 44px; }
  .step:last-child { margin-bottom: 0; }
  .step:not(.on) .n { color: var(--accent); }
  .step:not(.on) h3 { color: var(--ink); }
  .phone.inline { display: block; width: min(78%, 280px); max-height: none; margin-top: 28px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .answers div { grid-template-columns: minmax(0, 1fr); }
  .grid30 { grid-template-columns: repeat(10, 19px); grid-auto-rows: 19px; gap: 6px; }
}
@media (max-width: 420px) {
  .stores { width: 100%; }
  .stores li { flex: 1; }
  .btn { width: 100%; justify-content: center; }
  .verdict { flex-direction: column; gap: 8px; min-height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .pause { display: none; }
}
