/* cartwoon.com landing page.
   Direction: one motif (tasteskill, seed 24509864). The logo's two round faces, one coral and one
   teal like the characters' sweater and hoodie, are the only shape: the hero, every picture mask,
   the buttons, the tiles and the footer mark. Brand colours and type kept from the app. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #ffffff;
  --ink: #16171d;
  --muted: #5b5c66;
  --shade: #f3f3f6;
  --coral: #ff7a5c;
  --teal: #2bc4b3;
  --yellow: #ffb938;
  --on-accent: #16171d;
  --face: "Plus Jakarta Sans", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* five sizes */
  --s-display: clamp(52px, 6.6vw, 108px);
  --s-head: clamp(36px, 4vw, 64px);
  --s-mid: clamp(26px, 2.8vw, 44px);
  --s-body: 18px;
  --s-small: 15px;

  --m: clamp(18px, 3vw, 44px);
  --gap: clamp(120px, 14vw, 200px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.25, .6, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--s-body)/1.55 var(--face); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--teal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.note { font-size: var(--s-small); color: var(--muted); }

/* The one button: a pill, cut from the motif's circle. */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 700; text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.pill:active { transform: scale(.96); }
.pill-small { min-height: 44px; padding: 0 20px; font-size: var(--s-small); }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: #2b2c35; } }

/* Bar */
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--m); background: var(--ground);
}
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -.01em; }
.wordmark img { width: 36px; height: 36px; border-radius: 10px; }
.bar-links { display: flex; gap: 26px; margin-left: auto; }
.bar-links a, .lang { text-decoration: none; font-weight: 600; font-size: var(--s-small); padding: 10px 0;
  text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: .3em; transition: text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .bar-links a:hover, .lang:hover { text-decoration-color: currentColor; } }
.bar-end { display: flex; align-items: center; gap: 18px; }

/* Hero */
.hero { position: relative; min-height: calc(100svh - 72px); display: flex; align-items: center; padding: 0 var(--m); overflow: clip; }
.hero-mark { position: absolute; width: 124vh; max-width: none; height: auto; left: 76%; top: 54%; transform: translate(-50%, -50%); }
.m-a { fill: var(--coral); }
.m-b { fill: var(--teal); mix-blend-mode: multiply; }
.m-eye { fill: var(--ink); }
.m-smile { fill: none; stroke: var(--ink); stroke-width: 26; stroke-linecap: round; }
.hero-copy { position: relative; max-width: 46vw; padding-left: 4vw; }
.hero h1 { font-size: var(--s-display); font-weight: 800; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero-lead { margin-top: 26px; font-size: 20px; max-width: 30ch; } /* lead step */
.hero-act { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* Room: the disc, the picture in its own circle, the list of moments */
.room { margin-top: var(--gap); padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; column-gap: 24px; min-height: 92svh; }
.room-list { grid-column: 1 / 5; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 6vh; }
.room-head, .room-item { font-size: var(--s-mid); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.room-head { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.room-item { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--muted); text-align: left; transition: color 200ms ease; }
.room-item[aria-pressed="true"] { color: var(--ink); }
.room-item[aria-pressed="true"]::before { content: ""; display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--coral); margin-right: .3em; vertical-align: .18em; }
@media (hover: hover) and (pointer: fine) { .room-item:hover { color: var(--ink); } }
.room-stage { grid-column: 5 / 13; grid-row: 1; position: relative; height: min(84svh, 860px); }
.room-disc { position: absolute; width: min(70vh, 700px); aspect-ratio: 1; border-radius: 50%; left: 52%; top: 50%; transform: translate(-30%, -46%); background: var(--teal); transition: background-color 400ms ease; }
.room-pic { position: absolute; width: min(78vh, 780px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; left: 42%; top: 50%; transform: translate(-60%, -54%); }
.room-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: opacity 300ms ease; }
.room-pic img.is-swapping { opacity: 0; }
.room-fact { position: absolute; right: 0; bottom: 4%; max-width: 22ch; font-size: var(--s-body); }

/* Day: split field, one slider */
.day { margin-top: var(--gap); display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.day-words { background: var(--shade); padding: clamp(32px, 5vw, 80px) var(--m); display: flex; flex-direction: column; gap: 22px; }
.day-clause { font-size: var(--s-head); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; min-height: 2.1em; }
.day-body { max-width: 40ch; }
.day-ui { background: var(--coral); display: grid; place-items: center; padding: 48px 24px 120px; }
.day-track { grid-column: 1 / -1; padding: 22px var(--m) 0; }
.range { position: relative; height: 34px; display: flex; align-items: center; }
.range::before { content: ""; position: absolute; left: 0; right: 0; height: 8px; border-radius: 999px; background: var(--shade); }
.range-fill { position: absolute; left: 0; height: 8px; width: var(--p, 0%); border-radius: 999px; background: var(--ink); transition: width 200ms var(--ease-out); }
.day-track input { position: relative; width: 100%; margin: 0; appearance: none; -webkit-appearance: none; height: 34px; background: transparent; cursor: pointer; }
.day-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); border: 4px solid var(--ink); }
.day-track input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--coral); border: 4px solid var(--ink); }
.day-stops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; font-size: var(--s-small); color: var(--muted); }
.day-stops li:nth-child(2) { text-align: center; transform: translateX(-17%); }
.day-stops li:nth-child(3) { text-align: center; transform: translateX(17%); }
.day-stops li:last-child { text-align: right; }
.day-stops li.is-on { color: var(--ink); font-weight: 700; }

/* the product's own question card */
.qcard { width: min(440px, 100%); background: var(--ground); border-radius: 28px; padding: 22px; font-size: var(--s-small); }
.q-notif { display: flex; align-items: center; gap: 10px; background: var(--shade); border-radius: 18px; padding: 10px 12px; font-size: var(--s-small); transition: opacity 250ms ease; }
.q-notif img { border-radius: 8px; }
.q-notif time { margin-left: auto; color: var(--muted); }
.q-text { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin: 20px 4px 16px; }
.q-opts { display: grid; gap: 8px; }
.q-opts li { position: relative; display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 999px; background: var(--shade); font-weight: 600; transition: background-color 250ms ease; }
.q-who { position: absolute; width: 26px; height: 26px; border-radius: 50%; top: 13px; opacity: 0; transform: scale(.4); transition: opacity 250ms ease, transform 300ms var(--ease-out); }
.q-you { right: 34px; background: var(--coral); }
.q-them { right: 14px; background: var(--teal); mix-blend-mode: multiply; }
.q-status { margin: 14px 4px 0; font-size: var(--s-small); color: var(--muted); min-height: 1.5em; }
.qcard[data-step="0"] .q-notif { outline: 3px solid var(--ink); outline-offset: -3px; }
.qcard:not([data-step="0"]) .q-notif { opacity: .45; }
.qcard:not([data-step="0"]) [data-opt="a"] { background: #ffe1d8; }
.qcard:not([data-step="0"]) .q-you { opacity: 1; transform: none; }
.qcard[data-step="3"] .q-them { opacity: 1; transform: none; }
.qcard[data-step="3"] [data-opt="a"] { background: #d4f3ef; }

/* Wall of round tiles */
.wall { margin-top: var(--gap); padding: 0 var(--m); }
.wall-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tile { aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; overflow: hidden; text-align: center; }
.tile img { width: 46%; height: auto; }
.tile span { font-size: var(--s-small); font-weight: 700; max-width: 80%; line-height: 1.2; }
.tile-word { font-size: var(--s-mid); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; max-width: 8ch; color: var(--ground); }
.t-ink { background: var(--ink); }
.t-coral { background: var(--coral); }
.t-teal { background: var(--teal); }
.t-yellow { background: var(--yellow); }
.t-shade { background: var(--shade); }
.t-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* Comic */
.comic { margin-top: var(--gap); padding: 0 var(--m); }
.comic-words { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.comic-words h2 { grid-column: 1 / 7; font-size: var(--s-head); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.comic-words p { grid-column: 8 / 12; max-width: 40ch; }
.comic-strip { display: flex; margin-top: 64px; }
.comic-strip li { flex: 1 1 0; min-width: 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--shade); }
.comic-strip li + li { margin-left: -6%; }
.comic-strip img { width: 100%; height: 100%; object-fit: cover; }

/* Price */
.price { margin-top: var(--gap); padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.plans { grid-column: 1 / 7; display: flex; flex-direction: column; align-items: flex-start; }
.plan { background: none; border: 0; padding: 0; cursor: pointer; font-size: var(--s-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; color: var(--muted); transition: color 200ms ease; text-align: left; }
.plan[aria-selected="true"] { color: var(--ink); }
.plan[aria-selected="true"]::before { content: ""; display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: var(--coral); margin-right: .2em; vertical-align: .14em; }
@media (hover: hover) and (pointer: fine) { .plan:hover { color: var(--ink); } }
.plan-stage { grid-column: 8 / 13; padding-top: 1.2vw; }
.plan-figure { font-size: var(--s-display); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.plan-body { margin: 24px 0 16px; max-width: 38ch; }
.plan-stage > * { transition: opacity 200ms ease; }
.plan-stage.is-swapping > * { opacity: 0; }

/* FAQ */
.faq { margin-top: var(--gap); padding: 0 var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.faq-head { grid-column: 1 / 5; position: sticky; top: 96px; font-size: var(--s-head); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.faq-list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq details { background: var(--shade); border-radius: 36px; transition: background-color 200ms ease; }
.faq details[open] { background: var(--teal); }
.faq summary { list-style: none; cursor: pointer; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 28px; font-size: 20px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary { position: relative; padding-right: 64px; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--ink); transition: transform 200ms var(--ease-out); }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq details p { padding: 0 28px 24px; max-width: 56ch; font-size: var(--s-body); }
.faq details a { font-weight: 700; }

/* Invite: the sentence with a blank */
.invite { margin-top: var(--gap); padding: 0 var(--m) var(--gap); }
.invite-line { font-size: var(--s-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; max-width: 12em; }
.invite-line input { width: 6.2em; height: 1.08em; vertical-align: -.12em; border: 0; border-radius: 999px; background: var(--shade); padding: 0 .4em; font-weight: 800; letter-spacing: -.03em; }
.invite-line input::placeholder { color: var(--muted); }
.invite-line input:focus-visible { outline-offset: 2px; }
.invite-line button { height: 1.08em; vertical-align: -.12em; border: 0; border-radius: 999px; background: var(--coral); color: var(--on-accent); padding: 0 .4em; font-weight: 800; letter-spacing: -.03em; cursor: pointer; transition: transform 140ms var(--ease-out); }
.invite-line button:active { transform: scale(.97); }
.invite .note { margin-top: 22px; max-width: 52ch; }

/* Footer: the mark, built large */
.end { background: var(--shade); padding: 56px var(--m) 32px; }
.end-mark { display: block; width: 100%; height: auto; max-height: 56svh; }
.end-cols { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.end-cols ul { grid-column: 1 / 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.end-cols a { font-weight: 600; text-decoration: none; }
.end-cols ul a { display: inline-block; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .end-cols a:hover { text-decoration: underline; } }
.end-contact { grid-column: 8 / 13; }
.end-last { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; font-size: var(--s-small); color: var(--muted); }
.end-last .pill { color: var(--ground); }

/* Motion: entrances, staggered, never hiding content without script */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter { clip-path: inset(0 0 100% 0 round 50%); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft), opacity 300ms ease; }
  .js .shutter.is-in { clip-path: inset(0 round 50%); }
  .js .shutter.is-in img { transform: none; }
  .hero-mark { animation: breathe 9s var(--ease-in-out) infinite alternate; }
  .hero-mark .m-eye { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
  @keyframes breathe { from { transform: translate(-50%, -50%) rotate(-2deg); } to { transform: translate(-50%, -51.5%) rotate(2deg); } }
  @keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
  .comic-strip li img { transition: transform 600ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) { .comic-strip li:hover img { transform: scale(1.06); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transition: opacity 400ms ease; }
}

/* Tablet */
@media (max-width: 960px) {
  .wall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bar-links { display: none; }
  .bar-end { margin-left: auto; }
  .hero-copy { max-width: 62vw; padding-left: 0; }
  .room-list { grid-column: 1 / 6; }
  .room-stage { grid-column: 5 / 13; }
  .faq-head { grid-column: 1 / -1; position: static; margin-bottom: 24px; }
  .faq-list { grid-column: 1 / -1; }
}

/* Phone: its own composition */
@media (max-width: 640px) {
  :root { --gap: 120px; }
  body { font-size: 17px; }
  .bar { padding: 10px 16px; gap: 12px; }
  .bar .pill-small { display: none; }
  .wordmark { font-size: 20px; }
  .hero { min-height: calc(100svh - 64px); align-items: flex-start; padding: 0 16px; }
  .hero-copy { max-width: none; padding-top: 9svh; }
  .hero h1 { font-size: 13vw; }
  .hero-lead { font-size: 17px; margin-top: 16px; }
  .hero-act { margin-top: 22px; }
  .hero-mark { width: 140vw; left: 50%; top: auto; bottom: -38vw; transform: translate(-50%, 0); }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes breathe { from { transform: translate(-50%, 0) rotate(-2deg); } to { transform: translate(-50%, -2%) rotate(2deg); } }
  }
  .room { display: flex; flex-direction: column-reverse; align-items: stretch; min-height: 0; padding: 0; }
  .room-stage { height: auto; aspect-ratio: 1 / 1.08; }
  .room-disc { width: 78vw; left: 50%; top: 46%; transform: translate(-36%, -44%); }
  .room-pic { width: 84vw; left: 50%; top: 46%; transform: translate(-56%, -52%); }
  .room-fact { left: 16px; right: 16px; bottom: 0; max-width: none; font-size: var(--s-body); }
  .room-list { flex-direction: row; flex-wrap: wrap; gap: 2px 20px; padding: 0 16px 8px; }
  .room-head { flex-basis: 100%; }
  .room-head, .room-item { font-size: 26px; }
  .day { grid-template-columns: 1fr; }
  .day-ui { order: 1; padding: 32px 16px; }
  .day-words { order: 2; padding: 32px 16px 8px; }
  .day-track { order: 3; padding: 8px 16px 0; background: var(--shade); padding-bottom: 28px; }
  .day-clause { font-size: 9.4vw; }
  .day-stops { grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 15px; }
  .day-words .day-body { font-size: 17px; }
  .day-stops li:nth-child(n) { text-align: left; transform: none; }
  .wall { padding: 0 6px; }
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tile span { font-size: 15px; }
  .tile-word { font-size: 26px; }
  .comic { padding: 0 16px; }
  .comic-words { display: block; }
  .comic-words h2 { font-size: 9.4vw; }
  .comic-words p { margin-top: 16px; }
  .comic-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 36px; }
  .comic-strip li + li { margin-left: 0; }
  .comic-strip li:nth-child(even) { margin-left: -8%; }
  .comic-strip li:nth-child(n+3) { margin-top: -8%; }
  .price { display: block; padding: 0 16px; }
  .plan { font-size: 13vw; }
  .plan-stage { padding-top: 28px; }
  .plan-figure { font-size: 13vw; }
  .faq { display: block; padding: 0 16px; }
  .faq-head { font-size: 9.4vw; }
  .faq summary { font-size: 17px; min-height: 64px; padding: 14px 56px 14px 22px; }
  .faq details p { padding: 0 22px 20px; font-size: 17px; }
  .invite { padding: 0 16px 120px; }
  .invite-line { font-size: 11vw; }
  .invite-line input { width: 3.4em; }
  .end { padding: 40px 16px 28px; }
  .end-cols { display: block; }
  .end-cols ul { grid-template-columns: 1fr 1fr; }
  .end-contact { margin-top: 24px; }
}
