/* pagewash.org. Same palette and type as the extension: cool washed white, ink, coral, wine. */
@font-face { font-family: 'SG'; src: url('/assets/fonts/sg-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'SG'; src: url('/assets/fonts/sg-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --rinse: #F5F7FA;
  --sheet: #FFFFFF;
  --ink: #17181F;
  --slate: #5B6170;
  --line: #DFE3EA;
  --coral: #F2475E;
  --coral-deep: #D63851;
  --wine: #3A1119;
  --wine-2: #4A1A24;
  --wine-line: rgba(247, 220, 224, .18);
  --wine-text: #F2D9DD;
  --font: 'SG', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --s15: .9375rem; --s17: 1.0625rem; --s21: 1.3125rem; --s28: 1.75rem; --s40: 2.5rem; --s64: 4rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--rinse); color: var(--ink); font: 400 var(--s17)/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.nb { white-space: nowrap; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.small { font-size: var(--s15); color: var(--slate); }
section { padding-block: 104px; scroll-margin-top: 68px; }
section h2 { font-size: clamp(2rem, 4vw, var(--s40)); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; max-width: 22ch; }
.dark { background: var(--wine); color: var(--wine-text); }
.dark h2, .dark h3, .dark strong { color: #fff; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 250, .94); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--s21); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.sections { display: flex; gap: 26px; margin-left: auto; font-size: var(--s15); }
.sections a { color: var(--slate); text-decoration: none; position: relative; padding-block: 6px; }
.sections a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.sections a:hover { color: var(--ink); }
.sections a:hover::after { transform: scaleX(1); }
.langs { display: flex; gap: 4px; font: 600 13px/1 var(--mono); }
.langs a, .langs span { padding: 7px 8px; border-radius: 6px; color: var(--slate); text-decoration: none; }
.langs span { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.langs a:hover { color: var(--ink); background: var(--sheet); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  font: 600 var(--s17)/1.2 var(--font); text-decoration: none; text-align: center;
  background: var(--coral-deep); color: #fff; padding: 16px 24px; border-radius: 12px;
  box-shadow: 0 3px 0 #9E2238, 0 8px 18px rgba(214, 56, 81, .22);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #9E2238, 0 12px 24px rgba(214, 56, 81, .26); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 #9E2238, 0 2px 6px rgba(214, 56, 81, .2); }
.btn-soon { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: default; }
.btn-soon:hover, .btn-soon:active { transform: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .desktop-only { display: none; }
  .touch-only { display: inline-flex; }
  p.touch-only { display: block; }
}

/* ---------- hero ---------- */
.hero { padding-block: 48px 96px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, var(--s64)); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; padding-top: 24px; }
.mark { position: relative; white-space: nowrap; display: inline-block; }
.mark-wave { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .22em; overflow: visible; }
.mark-wave path { fill: none; stroke: var(--coral); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.js .mark-wave path { stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.3, .7, .3, 1) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { margin-top: 24px; font-size: var(--s21); line-height: 1.45; color: var(--slate); max-width: 34ch; }
.cta { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.facts { margin-top: 30px; border-top: 1px solid var(--line); }
.facts li { padding-block: 11px; border-bottom: 1px solid var(--line); font-size: var(--s15); display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ''; width: 14px; height: 6px; border-left: 2.5px solid var(--coral-deep); border-bottom: 2.5px solid var(--coral-deep); transform: rotate(-45deg) translateY(-2px); flex: none; }

/* demo: real before/after screenshots, the wave is the boundary */
.demo { margin: 0; }
.win { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 rgba(23, 24, 31, .04), 0 28px 64px -28px rgba(23, 24, 31, .32); }
.win-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: #EEF1F5; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: #CDD3DC; display: block; }
.url { flex: 1; min-width: 0; background: var(--sheet); border-radius: 8px; padding: 6px 12px; font: 13px/1.3 var(--font); color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-switch { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px; cursor: pointer; font: 600 13px/1 var(--font); color: var(--ink); }
.pw-switch svg { width: 20px; height: 20px; }
.sw { width: 34px; height: 20px; border-radius: 99px; background: #C9CFD8; position: relative; transition: background-color .2s ease; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.3, .7, .4, 1); }
.pw-switch[aria-checked='true'] .sw { background: var(--coral-deep); }
.pw-switch[aria-checked='true'] .sw::after { transform: translateX(14px); }
.stage { position: relative; aspect-ratio: 1400 / 896; overflow: hidden; touch-action: none; cursor: ns-resize; user-select: none; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; }
.washed { position: absolute; left: 0; right: 0; top: 0; height: 46%; overflow: hidden; } /* without JS: a still split, like the store screenshot */
.washed .shot { height: auto; aspect-ratio: 1400 / 896; }
.wave-line { position: absolute; left: 0; right: 0; top: 46%; height: 30px; margin-top: -15px; pointer-events: none; }
.js .wave-line { top: 0; }
.handle, .hint { display: none; }
.js .handle, .js .hint { display: block; }
.stage-wave { width: 100%; height: 100%; }
.stage-wave path { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.handle { position: absolute; right: 14px; top: -7px; width: 44px; height: 44px; border-radius: 50%; background: var(--coral); box-shadow: 0 4px 14px rgba(242, 71, 94, .45), inset 0 0 0 3px #fff; }
.handle::after { content: ''; position: absolute; left: 50%; top: 45%; width: 10px; height: 10px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.hint { position: absolute; right: 66px; top: 0; background: var(--ink); color: #fff; font: 600 13px/1 var(--font); padding: 8px 10px; border-radius: 8px; white-space: nowrap; transition: opacity .2s ease; }
.hint.is-gone { opacity: 0; }
.stage:has(.range:focus-visible) .handle { outline: 3px solid var(--coral-deep); outline-offset: 3px; }
.range { position: absolute; right: 14px; top: 0; bottom: 0; width: 44px; margin: 0; opacity: 0; cursor: ns-resize; writing-mode: vertical-lr; direction: ltr; display: none; }
.js .range { display: block; }
.no-js-after { display: none; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 0; border-top: 1px solid var(--line); }
.tally div { padding: 14px 16px 0 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.tally dt { font-size: var(--s15); color: var(--slate); line-height: 1.35; }
.tally dd { margin: 0; font-size: var(--s40); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--coral-deep); font-variant-numeric: tabular-nums; }
.tally dd.is-dim { color: #B6BCC7; }
.note { margin-top: 16px; font-size: 13.5px; color: var(--slate); max-width: 62ch; }

/* ---------- who ---------- */
.roles { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--wine-line); }
.roles li { padding-top: 22px; }
.roles h3 { font-size: var(--s21); letter-spacing: -0.01em; line-height: 1.2; }
.roles p { margin-top: 10px; font-size: var(--s15); max-width: 32ch; }
.sub-h { margin-top: 72px; font-size: var(--s28); letter-spacing: -0.02em; }
.benefits { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.benefits li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--wine-line); }
.benefits span { font-size: var(--s15); }

/* ---------- how ---------- */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; counter-increment: step; }
.steps h3 { font-size: var(--s21); margin-top: 22px; letter-spacing: -0.01em; }
.steps h3::before { content: counter(step) '. '; color: var(--coral-deep); }
.steps p { margin-top: 8px; color: var(--slate); max-width: 34ch; }
.ill { height: 112px; display: flex; align-items: center; }
.ill-btn { display: inline-block; background: var(--coral-deep); color: #fff; font-weight: 600; padding: 12px 18px; border-radius: 10px; box-shadow: 0 3px 0 #9E2238; }
.js .is-visible .ill-btn { animation: press 2.8s ease-in-out 1s infinite; }
@keyframes press { 0%, 70%, 100% { transform: none; box-shadow: 0 3px 0 #9E2238; } 76%, 84% { transform: translateY(3px); box-shadow: 0 0 0 #9E2238; } }
.ill-page { position: relative; width: 150px; height: 96px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); overflow: hidden; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.ill-page i { display: block; height: 7px; border-radius: 4px; background: #E3E6EC; }
.ill-page i:nth-child(2) { width: 80%; } .ill-page i:nth-child(3) { width: 60%; }
.ill-pop { position: absolute; left: 22px; right: 22px; top: 22px; height: 44px; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.ill-wave { position: absolute; left: 0; width: 150px; height: 10px; top: -10px; }
.ill-wave path { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .is-visible .ill-wave { animation: sweep 3.2s ease-in-out 1s infinite; }
.js .is-visible .ill-pop { animation: vanish 3.2s ease-in-out 1s infinite; }
@keyframes sweep { 0% { transform: translateY(0); } 45%, 100% { transform: translateY(110px); } }
@keyframes vanish { 0%, 18% { opacity: 1; } 32%, 88% { opacity: 0; } 100% { opacity: 1; } }
.ill-row { display: inline-flex; align-items: center; gap: 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ill-host { font: 600 13px var(--font); }
.ill-sw { width: 38px; height: 22px; border-radius: 99px; background: var(--coral-deep); position: relative; }
.ill-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translateX(16px); }
.js .is-visible .ill-sw { animation: swbg 3s ease-in-out 1s infinite; }
.js .is-visible .ill-sw::after { animation: swknob 3s ease-in-out 1s infinite; }
@keyframes swbg { 0%, 40% { background: var(--coral-deep); } 50%, 90% { background: #C9CFD8; } 100% { background: var(--coral-deep); } }
@keyframes swknob { 0%, 40% { transform: translateX(16px); } 50%, 90% { transform: none; } 100% { transform: translateX(16px); } }

/* ---------- tour: the picture stays, the text scrolls ---------- */
.tour-in { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
.tour-fig { position: sticky; top: 104px; align-self: start; display: none; }
.js .tour-fig { display: grid; }
.tour-shot { grid-area: 1 / 1; border: 0; padding: 0; background: none; cursor: zoom-in; opacity: 0; transition: opacity .35s ease; display: flex; justify-content: center; align-items: start; }
.tour-shot.is-active { opacity: 1; }
.tour-shot img { border-radius: 12px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); max-height: 72vh; width: auto; }
.tour-list { counter-reset: none; }
.tour-item { padding-block: 0 26vh; border-top: 1px solid var(--wine-line); padding-top: 24px; opacity: .5; transition: opacity .3s ease; }
.tour-item:last-child { padding-bottom: 8vh; }
.tour-item.is-active, .no-js .tour-item { opacity: 1; }
.tour-item h3 { font-size: var(--s28); letter-spacing: -0.02em; line-height: 1.15; }
.tour-item p { margin-top: 12px; max-width: 42ch; }
.tour-inline { display: block; margin-top: 18px; border: 0; padding: 0; background: none; cursor: zoom-in; }
.tour-inline img { border-radius: 10px; max-height: 420px; width: auto; }
.js .tour-inline { display: none; }
.lightbox { border: 0; padding: 0; background: none; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(23, 18, 22, .78); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; }
.lightbox form { display: flex; justify-content: flex-end; }
.lb-close { margin-bottom: 10px; border: 0; background: #fff; color: var(--ink); font: 600 var(--s15) var(--font); padding: 8px 14px; border-radius: 8px; cursor: pointer; }

/* ---------- terms ---------- */
.nums { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.nums li { padding-top: 24px; }
.num { display: block; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--coral-deep); font-variant-numeric: tabular-nums; }
.num-label { display: block; margin-top: 12px; color: var(--slate); max-width: 28ch; }
.fine { margin-top: 40px; font-size: var(--s15); color: var(--slate); max-width: 70ch; }

/* ---------- privacy ---------- */
.privacy-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.points { margin-top: 28px; border-top: 1px solid var(--wine-line); }
.points li { padding-block: 14px; border-bottom: 1px solid var(--wine-line); }
.text-link { display: inline-block; margin-top: 24px; color: #fff; font-weight: 600; }
.flow { margin: 0; display: grid; gap: 0; justify-items: stretch; }
.node { border: 1px solid var(--wine-line); border-radius: 12px; padding: 16px 18px; background: var(--wine-2); }
.node strong { display: block; font-size: var(--s17); }
.node span { font-size: var(--s15); }
.node ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.node li { font: 13px/1 var(--mono); padding: 8px 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #fff; }
.node-browser { background: #fff; color: var(--ink); border-color: #fff; }
.node-browser strong { color: var(--ink); }
.node-browser li { background: var(--rinse); color: var(--ink); }
.node-none { border-style: dashed; background: none; opacity: .75; }
.node-none span { text-decoration: none; }
.link { position: relative; height: 44px; margin-left: 36px; border-left: 2px solid var(--wine-line); }
.link-in { border-left-color: var(--coral); }
.link-in .dot { position: absolute; left: -6px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.js .is-visible .link-in .dot { animation: travel 2.4s ease-in-out infinite; }
@keyframes travel { 0% { transform: translateY(-4px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(38px); opacity: 0; } }
.link-out { border-left-style: dashed; }
.link-out::before, .link-out::after { content: ''; position: absolute; left: -10px; top: 21px; width: 18px; height: 2.5px; border-radius: 2px; background: var(--coral); transform: rotate(45deg); }
.link-out::after { transform: rotate(-45deg); }

/* ---------- final + footer ---------- */
.final-in { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.final p { color: var(--slate); font-size: var(--s21); }
.foot { background: var(--wine); color: var(--wine-text); padding-block: 36px; font-size: var(--s15); }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot .brand { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: #fff; }

/* ---------- privacy policy page ---------- */
.policy { padding-block: 56px 96px; }
.narrow { max-width: 760px; }
.policy h1 { font-size: clamp(2rem, 4vw, var(--s40)); letter-spacing: -0.025em; }
.policy .small { margin-top: 10px; }
.policy h2 { margin-top: 40px; font-size: var(--s21); }
.policy p, .policy li { margin-top: 12px; max-width: 68ch; }
.policy ul { list-style: disc; padding-left: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in, .tour-in, .privacy-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .roles li { padding-bottom: 22px; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .js .tour-fig { display: none; }
  .js .tour-inline { display: block; }
  .tour-item { padding-bottom: 40px; opacity: 1; }
}
@media (max-width: 640px) {
  section { padding-block: 72px; }
  .sections { display: none; }
  .langs { margin-left: auto; }
  .roles, .steps, .nums { grid-template-columns: minmax(0, 1fr); }
  .steps li, .nums li { padding-bottom: 28px; }
  .benefits li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tally dd { font-size: var(--s28); }
  .hint { right: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .mark-wave path { stroke-dashoffset: 0; }
}
