/* Evenswap — evenswap.app
   Tokens: white paper, cool grey lines, ink, one ultramarine accent. One family: Schibsted Grotesk. */
:root {
  --paper: #ffffff;
  --wash: #f4f5f7;
  --line: #e3e5ea;
  --ink: #15171c;
  --muted: #5b606b;
  --blue: #2337ff;
  --blue-wash: #eef0ff;
  --radius: 14px;
  --font: "Schibsted Grotesk", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-feature-settings: normal;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.logo img { width: 30px; height: 30px; border-radius: 8px; display: block; }
nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--font); text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: #fff; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #000; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
nav .btn { height: 38px; padding: 0 16px; font-size: 14px; color: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding: 64px 0 96px; }
.hero h1 { font-weight: 600; font-size: clamp(42px, 6.2vw, 74px); line-height: .98; letter-spacing: -0.045em; margin: 0 0 24px; max-width: 11ch; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 44ch; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Product preview: the shopper's swap screen */
.device { background: var(--wash); border-radius: 24px; padding: 28px; }
.screen { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 1px 0 rgba(21,23,28,.04), 0 24px 48px -28px rgba(21,23,28,.25); }
.req-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; }
.pill { background: var(--blue-wash); color: var(--blue); font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.when { color: var(--muted); }
.item { display: flex; gap: 14px; align-items: center; }
.thumb { width: 64px; height: 76px; border-radius: 10px; background: linear-gradient(160deg, #d9cdb7, #b8a888); flex: none; position: relative; overflow: hidden; }
.thumb::after { content: ""; position: absolute; left: 50%; top: 10px; width: 38px; height: 54px; transform: translateX(-50%); border-radius: 6px 6px 3px 3px; background: rgba(255,255,255,.18); }
.item b { display: block; font-weight: 600; }
.item span { color: var(--muted); font-size: 14px; }
.approve { margin-top: 20px; width: 100%; height: 46px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 600 15px/1 var(--font); cursor: pointer; transition: transform .15s ease, background .2s ease; }
.approve:hover { background: #000; }
.approve:active { transform: scale(.98); }
.done .approve { background: var(--wash); color: var(--muted); }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.results li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; padding: 0; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease, max-height .3s ease, padding .3s ease; }
.results li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--blue-wash) center/10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1.2' fill='none' stroke='%232337ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.done .results li { max-height: 90px; opacity: 1; transform: none; padding-top: 12px; }
.done .results li:nth-child(2) { transition-delay: .12s; }
.done .results li:nth-child(3) { transition-delay: .24s; }
.results li.kept { color: var(--ink); }
.results li.kept strong { color: var(--blue); font-weight: 600; }
.done .results { margin-top: 6px; border-top: 1px solid var(--line); }
.demo-caption { margin: 14px 4px 0; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .results li, .approve { transition: none; } }

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
section h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 14px; max-width: 20ch; }
section .sub { color: var(--muted); font-size: 18px; max-width: 54ch; margin: 0 0 44px; }

/* Calculator — the one bold moment */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.calc .input { padding: 36px; background: var(--wash); }
.calc label { font-weight: 600; display: block; margin-bottom: 6px; }
.calc .count { font-size: 64px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 14px 0 22px; }
.calc .count small { font-size: 18px; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 6px; }
.calc input[type=range] { width: 100%; accent-color: var(--blue); height: 28px; }
.calc .hint { font-size: 14px; color: var(--muted); margin-top: 10px; }
.calc .out { padding: 36px; display: grid; gap: 22px; align-content: center; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.bar-row .name { font-size: 15px; }
.bar-row .price { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: #c9ccd4; transform-origin: left center; transform: scaleX(0); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
.bar-row.us .name { font-weight: 600; }
.bar-row.us .price { color: var(--blue); font-size: 30px; }
.bar-row.us .bar i { background: var(--blue); }
.calc .fine { font-size: 13px; color: var(--muted); }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; }
.steps li { list-style: none; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { counter-increment: step; content: counter(step); display: block; font-weight: 600; color: var(--blue); margin-bottom: 18px; }
.steps h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--muted); }
ol.steps { padding: 0; margin: 0; }

/* Included list */
.included { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; padding: 0; margin: 0; }
.included li { list-style: none; padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.included li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--blue-wash) center/10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1.2' fill='none' stroke='%232337ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.included b { display: block; font-weight: 600; }
.included span { color: var(--muted); font-size: 15px; }
.soon { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.plan { padding: 32px; border-right: 1px solid var(--line); }
.plan:last-child { border-right: 0; }
.plan.main { background: var(--ink); color: #fff; }
.plan h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.plan .price { font-size: 52px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.plan .price small { font-size: 16px; font-weight: 400; letter-spacing: 0; opacity: .7; }
.plan .tag { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; }
.plan ul { padding: 0; margin: 24px 0 0; }
.plan li { list-style: none; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.plan.main li { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.plan .later { opacity: .6; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 64ch; }

/* Closing */
.closing { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing h2 { margin: 0; }

/* Documents (privacy, support, terms) */
.doc { max-width: 700px; padding: 48px 0 88px; }
.doc h1 { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; }
.doc h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 36px 0 8px; }
.doc p, .doc li { color: #31353e; }
.doc a { color: var(--blue); }

footer { border-top: 1px solid var(--line); padding: 32px 0 56px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); text-decoration: none; margin-right: 20px; }
footer a:hover { color: var(--ink); }


/* Size chips */
.sizes { display: flex; gap: 8px; }
.size { width: 46px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--ink); background: #fff; }
.size.from { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.size.out { color: #b6bac3; border-style: dashed; }
.size.to { border-color: var(--blue); background: var(--blue); color: #fff; }

/* Walkthrough */
.wt { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.wt-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: wt; }
.wt-steps li { counter-increment: wt; }
.wt-steps button { position: relative; overflow: hidden; width: 100%; text-align: left; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 2px; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; background: transparent; font: inherit; color: var(--muted); cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.wt-steps button::before { content: counter(wt); grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--wash); color: var(--muted); }
.wt-steps button:hover { color: var(--ink); }
.wt-steps button[aria-selected="true"] { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 10px 30px -22px rgba(21,23,28,.35); }
.wt-steps button[aria-selected="true"]::before { background: var(--ink); color: #fff; }
.wt-steps .who { font-size: 12px; font-weight: 600; }
.who.you { color: var(--blue); }
.who.shopper { color: #8a6a3d; }
.who.shopify { color: #2f7a4a; }
.wt-steps .t { font-size: 15px; line-height: 1.35; }
.wt-steps .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.wt.playing button[aria-selected="true"] .prog { animation: wtprog 4.2s linear forwards; }
@keyframes wtprog { to { transform: scaleX(1); } }
.wt-stage { background: var(--wash); border-radius: 24px; padding: 28px; min-height: 420px; }
.wt-panel[hidden] { display: none; }
.wt-panel { animation: wtin .35s cubic-bezier(.2,.8,.2,1); }
@keyframes wtin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wt-panel { animation: none; } .wt-steps button { transition: none; } }
.frame-label { font-size: 13px; color: var(--muted); margin: 0 4px 12px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 24px 48px -30px rgba(21,23,28,.3); max-width: 520px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mock-top b { font-size: 16px; letter-spacing: -0.01em; }
.mock-top span { color: var(--muted); }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.order-head b { display: block; }
.order-head span:not(.menu) { color: var(--muted); font-size: 14px; }
.menu { border: 1.5px solid var(--blue); color: var(--blue); background: var(--blue-wash); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.mock .q { font-size: 14px; color: var(--muted); margin: 18px 0 8px; }
.mock-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.muted { color: var(--muted); }
.fake-btn { background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row b { display: block; }
.row span:not(.fake-btn):not(.tagx) { color: var(--muted); font-size: 14px; }
.row.dim { opacity: .55; }
.tagx { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--wash); color: var(--muted); }
.email .from { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.email .from b { display: block; }
.email .from span { color: var(--muted); font-size: 14px; }
.email .eh { display: block; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 14px; }
.item.small .thumb { width: 48px; height: 56px; }
.blue { color: var(--blue) !important; font-weight: 600; }
.todo { margin: 16px 0 0; padding: 14px 14px 14px 32px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: #31353e; line-height: 1.7; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: 15px; }
.check .box { width: 18px; height: 18px; border-radius: 5px; background: var(--blue) center/10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1.2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.results-static { list-style: none; padding: 0; margin: 0; }
.results-static li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.results-static li:last-child { border-bottom: 0; }
.results-static li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--blue-wash) center/10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1.2' fill='none' stroke='%232337ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.results-static li.kept b { color: var(--blue); }
.wt-note { margin: 22px 0 0; color: var(--muted); font-size: 15px; }

/* Setup extras */
.works { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.works li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; }

/* Trust in closing */
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--muted); max-width: 60ch; }
.trust b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .wt { grid-template-columns: 1fr; gap: 20px; }
  .wt-steps { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .wt-steps li { scroll-snap-align: start; }
  .wt-stage { padding: 16px; min-height: 0; }
}

/* Pains */
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.pain { padding: 28px; border-bottom: 1px solid var(--line); }
.pain:nth-child(odd) { border-right: 1px solid var(--line); }
.pain:nth-last-child(-n+2) { border-bottom: 0; }
.pain .said { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 12px; color: var(--ink); }
.pain .fix { margin: 0; color: var(--muted); }
.pain .fix b { color: var(--blue); font-weight: 600; }
.said-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.plan .tag.light { background: var(--blue-wash); color: var(--blue); }
@media (max-width: 900px) {
  .pains { grid-template-columns: 1fr; }
  .pain:nth-child(odd) { border-right: 0; }
  .pain:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 72px; }
  .calc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .included { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  section { padding: 72px 0; }
  nav a:not(.btn) { display: none; }
}


.join { display: grid; gap: 8px; width: min(100%, 360px); }
.join label { font-weight: 600; font-size: 14px; }
.join label span { font-weight: 400; color: var(--muted); }
.join input { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: 400 16px/1 var(--font); color: var(--ink); background: var(--paper); }
.join input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.join .btn { margin-top: 6px; }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-msg { margin: 0; font-weight: 600; color: var(--blue); min-height: 1em; }
.join-msg:empty { display: none; }
.join-fine { margin: 0; font-size: 13px; color: var(--muted); }

.plan .for { margin: 0 0 18px; font-size: 14px; color: var(--muted); min-height: 2.6em; }
.plan.main .for { color: rgba(255,255,255,.7); }
.plan .per { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.plan.main .per { color: rgba(255,255,255,.7); }
.plan li b { color: var(--ink); font-weight: 600; }
.billing { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 999px; }
.bill-opt { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 500 14px/1 var(--font); color: var(--muted); cursor: pointer; }
.bill-opt[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bill-opt span { margin-left: 6px; font-size: 12px; color: var(--blue); }
.bill-opt[aria-pressed="true"] span { color: #c9cfff; }
.bill-opt:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.plan-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); max-width: 70ch; }
.plan .price s { font-size: 28px; font-weight: 500; color: var(--muted); margin-right: 8px; letter-spacing: -0.02em; }
.plan.main .price s { color: rgba(255,255,255,.5); }
.plan .per { min-height: 2.8em; line-height: 1.4; }
.plan .price { white-space: nowrap; }
