/* Sertin landing page. C1 brand: Ai, Byakuroku, Shironeri, Sumi, Inter.
   Structure: sticky nav with one action, headline, product shot, benefits, three steps, questions, closing action. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/inter-latin-wght-normal.woff2") format("woff2-variations"); }
:root {
  --ai: #0D5661; --ai-deep: #093F47; --mint: #A8D8B9; --paper: #FCFAF2; --raised: #FFFFFF; --sumi: #1C1C1C;
  --quiet: #4A5553; --line: rgba(28, 28, 28, 0.14); --warn: #8A3B12; --warn-bg: #FBE6D6; --wait: #5A4A00; --wait-bg: #F6EBB4;
  --font: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gap: clamp(72px, 10vw, 136px);
  /* Motion: the same feedback duration and curve as the product (packages/ui/src/styles.css). */
  --feedback: 120ms; --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: #74867F transparent; }
::selection { background: var(--mint); color: var(--sumi); }
body { margin: 0; background: var(--paper); color: var(--sumi); font: 400 18px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ai); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ai); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); padding: 10px 14px; border: 2px solid var(--ai); border-radius: 8px; z-index: 30; }
.skip:focus { top: 12px; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 660; text-wrap: balance; }

/* Navigation: main links and one action, always in reach. */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.top__links { display: flex; gap: 28px; margin-inline: auto; }
.top__links a { color: var(--sumi); text-decoration: none; font-size: 16px; font-weight: 520; padding: 10px 2px; }
.link { display: inline-block; padding-block: 10px; font-weight: 560; font-size: 17px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--ai); color: var(--paper); font-weight: 620; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background-color var(--feedback) var(--ease), scale var(--feedback) var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { scale: 0.97; background: var(--ai-deep); }
.btn--large { min-height: 56px; padding: 0 32px; font-size: 18px; }
.btn--light { background: var(--paper); color: var(--ai); }
.btn--light:active { background: #fff; }
/* Hover only where a real pointer hovers, so a tap on a phone leaves nothing stuck. */
@media (hover: hover) and (pointer: fine) {
  .top__links a:hover { color: var(--ai); text-decoration: underline; }
  .btn:hover { background: var(--ai-deep); }
  .btn--light:hover { background: #fff; }
}
.btn--light:focus-visible { outline-color: var(--mint); }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Headline, what it is, the next step, then the product itself. */
.hero { padding-top: clamp(48px, 7vw, 96px); text-align: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 680; text-wrap: balance; max-width: 15em; margin-inline: auto; }
.lede { margin: 24px auto 0; max-width: 36em; font-size: clamp(18px, 1.5vw, 21px); color: var(--quiet); text-wrap: pretty; }
.hero .actions { justify-content: center; margin-top: 32px; }
.shot { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 1080px; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 40px 80px -48px rgba(13, 86, 97, 0.6), 0 2px 6px rgba(28, 28, 28, 0.05); background: var(--raised); }
.shot figcaption, .plate figcaption { margin-top: 10px; font-size: 14px; color: var(--quiet); }

.facts { margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts li { display: flex; align-items: center; gap: 14px; padding: 20px; font-size: 17px; font-weight: 540; }
.facts li + li { border-left: 1px solid var(--line); }
/* C1 feature icons: decorative, the words carry the meaning. */
.facts img { flex: none; width: 32px; height: 32px; }

.built { padding-top: clamp(56px, 7vw, 96px); }
.built h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
.built__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.built__controls { display: flex; gap: 8px; flex-shrink: 0; }
.built__controls[hidden] { display: none; }
.built__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--ai); cursor: pointer; transition: background var(--feedback) var(--ease), scale var(--feedback) var(--ease); }
.built__btn:active { scale: 0.94; }
.built__btn:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .built__btn:hover { background: #F1EEE3; } }
.built__btn .i-play, .built__btn[aria-pressed="true"] .i-pause { display: none; }
.built__btn[aria-pressed="true"] .i-play { display: block; }
/* Cards visible at once: 4 on desktop (so there is always one to rotate to), 3 on tablets, 2 on phones. */
.built__track { --per: 4; --gap: 16px; margin-top: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 14px; }
.built__track::-webkit-scrollbar { display: none; }
.built__track:focus-visible { outline: 2px solid var(--ai); outline-offset: 4px; }
.built__track > li { scroll-snap-align: start; min-width: 0; }
@media (max-width: 1024px) { .built__track { --per: 3; } }
@media (max-width: 600px) { .built__track { --per: 2; --gap: 12px; } .built__btn:not([data-carousel="toggle"]) { display: none; } .built h3 { font-size: 16px; } .built p { font-size: 14px; } }
.built img { border-radius: 14px; }
.built h3 { margin-top: 14px; font-size: 17px; font-weight: 650; }
.built p { margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--quiet); }
.scale { padding-block: var(--gap) 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.scale h2 { text-wrap: balance; }
.scale p { margin-top: 14px; max-width: 32em; color: var(--quiet); }
.scale p:first-of-type { margin-top: 18px; }
.benefits { padding-block: var(--gap); }
.benefits ul { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.benefits ul { gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.benefits img, .built img, .scale img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; background: #EFEBDD; }
.benefits h3 { margin-top: 22px; font-size: clamp(21px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
.benefits p { margin-top: 10px; color: var(--quiet); max-width: 30em; }

.band { background: var(--ai); color: var(--paper); padding-block: var(--gap); }
.steps { counter-reset: step; margin-top: clamp(32px, 5vw, 64px); display: grid; gap: clamp(48px, 7vw, 96px); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.steps > li:nth-child(even) .steps__words { order: 2; }
.steps__words::before { content: counter(step); display: block; font-size: clamp(56px, 6vw, 84px); line-height: 0.9; font-weight: 300; color: var(--mint); letter-spacing: -0.05em; }
.steps h3 { margin-top: 18px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }
.steps__words p { margin-top: 12px; max-width: 30em; color: rgba(252, 250, 242, 0.88); }
.plate img { width: 100%; height: auto; border-radius: 18px; background: #EFEBDD; }
.band .plate figcaption { color: rgba(252, 250, 242, 0.7); }

/* The example step in "How it works". The one place on the page that moves, once. */
.check { background: var(--raised); color: var(--sumi); border-radius: 22px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.55); overflow: hidden; }
/* The photo for the step: one towel while the miss is caught, two towels from the retake on. The final
   stage is the markup's default, so without the script (or with reduced motion) the retake shows. */
.check__photo { position: relative; aspect-ratio: 3 / 2; background: #EFE3CF; }
.check__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s ease; }
.check__shot--first { opacity: 0; }
.check[data-stage="1"] .check__shot--first, .check[data-stage="2"] .check__shot--first { opacity: 1; }
.check[data-stage="1"] .check__shot--retake, .check[data-stage="2"] .check__shot--retake { opacity: 0; }
.check__tag { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(252, 250, 242, 0.94); color: var(--sumi); font-size: 13px; font-weight: 560; line-height: 20px; }
.check__body { padding: 24px; display: grid; gap: 14px; }
.check__where { font-size: 14px; color: var(--quiet); }
.check__title { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; margin-top: -8px; }
.rule { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #F3F6F1; }
.rule__text { font-weight: 600; font-size: 17px; }
.status { display: inline-flex; justify-self: start; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--mint); color: #0B3A2A; }
.status::after { content: "Accepted by a reviewer"; }
.check[data-stage="1"] .status, .check[data-stage="3"] .status { background: #E3E8E4; color: var(--quiet); }
.check[data-stage="1"] .status::after, .check[data-stage="3"] .status::after { content: "Checking the photo"; }
.check[data-stage="2"] .status { background: var(--warn-bg); color: var(--warn); }
.check[data-stage="2"] .status::after { content: "One towel is missing. Retake."; }
.check[data-stage="4"] .status { background: var(--wait-bg); color: var(--wait); }
.check[data-stage="4"] .status::after { content: "Sent to a reviewer"; }
.attempts { display: grid; font-size: 15px; border-top: 1px solid var(--line); }
.attempts li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); transition: opacity 0.35s ease; }
.attempts li:last-child { border-bottom: 0; padding-bottom: 0; }
.attempts li span:first-child { color: var(--quiet); }
.check[data-stage="1"] .attempts li, .check[data-stage="2"] .attempts__second, .check[data-stage="2"] .attempts__review, .check[data-stage="3"] .attempts__second, .check[data-stage="3"] .attempts__review, .check[data-stage="4"] .attempts__review { opacity: 0.18; }

.faq { padding-block: var(--gap); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: clamp(18px, 1.7vw, 21px); font-weight: 620; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--ai); border-bottom: 2px solid var(--ai); transform: rotate(45deg); margin: -4px 6px 0 0; transition: transform var(--feedback) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq details p { padding: 0 44px 22px 0; color: var(--quiet); max-width: 40em; }

.close { background: var(--ai); color: var(--paper); padding-block: var(--gap); text-align: center; }
.close h2 { max-width: 16em; margin-inline: auto; }
.close p { margin: 16px auto 0; max-width: 30em; font-size: 20px; color: rgba(252, 250, 242, 0.9); }
.close .actions { justify-content: center; margin-top: 32px; }
/* The closing scene: full-bleed, words in the empty left third of the picture, dark on the cream wall.
   No scrim is needed because the words never cross the people; the copy column stops short of them. */
.close--scene { position: relative; display: grid; align-items: center; min-height: calc(100vw * 658 / 1536); padding-block: clamp(48px, 6vw, 88px); background: #F2EDE3; color: var(--sumi); text-align: left; overflow: hidden; }
.close__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.close__in { position: relative; }
.close__copy { max-width: min(36%, 30rem); }
.close--scene h2 { margin: 0; max-width: none; font-size: clamp(28px, 3.3vw, 46px); }
.close--scene p { margin: 16px 0 0; max-width: none; font-size: clamp(17px, 1.4vw, 20px); color: var(--quiet); }
.close--scene .actions { justify-content: flex-start; margin-top: 28px; }
/* Dark scenes (Ai and Sumi in the hero library) take ivory words. The section colour is sampled from the
   scene's backdrop so the image edges and any letterboxing disappear into it. */
.close--dark { background: #0B4A55; color: var(--paper); }
.close--dark p { color: rgba(252, 250, 242, 0.88); }

.foot { padding-block: 28px; font-size: 15px; color: var(--quiet); }
.foot__in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; margin-right: auto; }
.foot a { display: inline-block; padding-block: 11px; color: var(--quiet); }

/* 404 page */
.notfound { padding-block: clamp(56px, 10vw, 128px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.notfound .lede { margin-left: 0; }
/* A phone with nothing on its screen: a quiet picture of "nothing here". Decorative. */
.notfound__scene { width: 100%; height: auto; border-radius: 18px; background: #EFEBDD; }
@media (max-width: 860px) { .notfound { grid-template-columns: minmax(0, 1fr); } .notfound__scene { max-width: 480px; } }
.notfound h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 660; }
.notfound .actions { margin-top: 28px; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .top__links { display: none; }
  .top__in { justify-content: space-between; }
  .facts ul, .benefits ul, .steps > li, .faq, .scale { grid-template-columns: minmax(0, 1fr); }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .steps > li:nth-child(even) .steps__words { order: 0; }
  .faq details p { padding-right: 0; }
  .close--scene { display: flex; flex-direction: column; min-height: 0; padding-block: 0; }
  .close__in { order: 1; padding-block: 56px 32px; }
  .close__copy { max-width: none; }
  .close__scene { order: 2; display: block; }
  .close__scene img { position: static; height: auto; aspect-ratio: 4 / 5; max-height: 560px; object-position: 50% 30%; }
  .close--dark .close__scene img { object-position: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) { html, .built__track { scroll-behavior: auto; } .built__btn { transition: none; } .attempts li, .faq summary::after, .btn, .check__shot { transition: none; } .btn:active { scale: none; } }
