/* MEANS: AI Image Creation 101 landing page.
   Layout: one 1240px column; white carries the page, hairlines divide sections,
   Mist is the only fill (active nav, tags, primary buttons, highlights). */
:root {
  --white: #FFFFFF;
  --ink: #0E1014;
  --ink-2: #3A3D44;
  --ink-3: #555962;
  --stone: #6B707A;
  --muted: #8A8E96;
  --faint: #B5B8BE;
  --mist: #DCE6F5;
  --sky: #A9C0E3;
  --tint: #EEF3FA;
  --fog: #F2F4F7;
  --track: #E6E9EE;
  --line: rgba(14,16,20,.1);
  --line-2: rgba(14,16,20,.18);
  --danger: #A3352B;

  --serif: 'Noto Serif Display', 'Times New Roman', Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
figure { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- brand elements ---------- */
.em { font-style: italic; text-decoration: underline; text-decoration-color: var(--mist);
  text-decoration-thickness: .42em; text-underline-offset: -.34em; text-decoration-skip-ink: none; }
.mark { display: inline-flex; align-items: center; gap: .125em; font: 400 24px/1 var(--serif); color: var(--ink); }
.mark-a { display: inline-flex; align-items: center; justify-content: center; font-size: .708em; width: 1.47em; height: 1.47em;
  margin: 0 -.06em; border-radius: 50%; background: var(--mist); font-style: italic; }
.mark-a > span { display: block; transform: translate(.06em, -.03em); }
.marker { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.marker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); flex: none; }
.label { font: 500 10px/1.3 var(--sans); letter-spacing: .12em; color: var(--stone); text-transform: uppercase; }
.cap { display: flex; justify-content: space-between; gap: 12px; }
.tag { display: inline-flex; align-items: center; padding: 7px 12px; background: var(--mist); border-radius: 100px; font: 500 12.5px/1 var(--sans); color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 16px; height: 54px; padding: 0 26px; border: 0; border-radius: 100px;
  background: var(--mist); color: var(--ink); font: 500 14.5px/1 var(--sans); cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--sky); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-done { background: var(--sky); }
.link-u { display: inline-flex; align-items: center; height: 54px; padding: 0 26px; font: 500 14.5px/1 var(--sans); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .2s; }
.link-u:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- navigation ---------- */
.nav-space { height: calc(var(--nav-h) + 1px); }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(14,16,20,.07); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: clamp(2px, .8vw, 12px); }
.nav-links a { padding: 11px 18px; border-radius: 100px; font: 400 14px/1 var(--sans); color: var(--ink-2);
  background: rgba(220,230,245,0); transition: background .3s, color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--tint); }
.nav-links a.active { color: var(--ink); background: var(--mist); }
.nav-in > .mark { margin-right: auto; }
.lang { flex: none; display: inline-flex; gap: 2px; padding: 3px; border-radius: 100px; background: var(--fog); }
.lang button { height: 32px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 100px; background: transparent; cursor: pointer;
  color: var(--stone); font: 500 12px/1 var(--sans); letter-spacing: .08em; transition: background .2s, color .2s, box-shadow .2s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(14,16,20,.12); }
@media (max-width: 1100px) and (min-width: 901px) { .nav-links a { padding: 11px 13px; } }
.i18n-pending body { visibility: hidden; }
.menu-btn { display: none; height: 42px; padding: 0 18px; border: 0; border-radius: 100px; background: var(--mist); font: 500 13.5px/1 var(--sans); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 10px var(--gutter) 18px; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(14,16,20,.07); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 18px; font-size: 15px; }
}

/* ---------- bottom tab bar (phones and small tablets) ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .menu-btn, .nav-links { display: none !important; }
  .tabbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
    border-top: 1px solid rgba(14,16,20,.07); box-shadow: 0 -10px 28px -20px rgba(14,16,20,.3); transition: transform .3s ease; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 2px 0;
    color: var(--stone); font: 500 10px/1.1 var(--sans); -webkit-tap-highlight-color: transparent; }
  .tabbar a:hover { color: var(--ink); }
  .tabbar .ico { width: 50px; height: 30px; border-radius: 100px; display: flex; align-items: center; justify-content: center; transition: background .25s; }
  .tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .t { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabbar a.active { color: var(--ink); }
  .tabbar a.active .ico { background: var(--mist); }
  .tabbar a:focus-visible { outline: none; }
  .tabbar a:focus-visible .ico { outline: 2px solid var(--ink); outline-offset: 1px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.typing .tabbar { transform: translateY(110%); }
}
@media print { .tabbar { display: none; } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(36px, 5vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 28px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.h2 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; }
.fig { display: flex; flex-direction: column; gap: 10px; }
.fig img { width: 100%; height: auto; border-radius: 2px; background: var(--fog); }

/* Hero */
.hero { padding-block: clamp(48px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.hero h1 { font-size: clamp(38px, 3.8vw, 56px); line-height: 1.1; letter-spacing: -.015em; }
.hero h1 .nw { white-space: nowrap; }
@media (max-width: 420px) { .hero h1 .nw { white-space: normal; } }
html[lang="vi"] .hero h1 .nw { white-space: normal; }  /* Vietnamese lines run longer; let them wrap */
.lede { max-width: 470px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 18px 12px 0 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.facts > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.facts .v { font: 500 14px/1.45 var(--sans); }

/* Philosophy */
.quote { font: 400 clamp(26px, 2.6vw, 36px)/1.3 var(--serif); }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.point { display: flex; flex-direction: column; gap: 8px; }
.point .n { font: 500 11px/1 var(--sans); color: var(--stone); }
.point strong { font: 600 15.5px/1.4 var(--sans); }
.point p { font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* Overview */
.overview { display: flex; flex-direction: column; gap: 44px; }
.overview-lede { max-width: 860px; }
.overview-lede p { font: 400 clamp(22px, 2.2vw, 30px)/1.4 var(--serif); }
.looks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.looks figure { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.looks img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--fog); }
.looks figcaption { font: 500 9.5px/1 var(--sans); letter-spacing: .1em; color: var(--stone); text-transform: uppercase; }
@media (max-width: 760px) {
  .looks { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .looks::-webkit-scrollbar { display: none; }
  .looks figure { flex: none; width: 42vw; scroll-snap-align: start; }
}
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--line); padding-top: 28px; }
.who > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.who .v { font-size: 15px; line-height: 1.6; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.hint { font-size: 13.5px; line-height: 1.5; color: var(--stone); }

/* Workflow */
.workflow { align-items: start; }
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.step { all: unset; box-sizing: border-box; cursor: pointer; padding: 18px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.step:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.step .n { font: 500 12px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.step .t { font: 400 22px/1.2 var(--serif); color: var(--muted); transition: color .2s; }
.step .s { padding: 6px 10px; border-radius: 100px; background: transparent; font: 500 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: background .2s; }
.step[aria-selected="true"] .n, .step[aria-selected="true"] .t, .step:hover .t { color: var(--ink); }
.step[aria-selected="true"] .s { background: var(--mist); }
.step-fig { position: sticky; top: calc(var(--nav-h) + 32px); display: flex; flex-direction: column; gap: 12px; }
.step-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--fog); transition: opacity .25s; }
.step-fig figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.step-fig figcaption > span:first-child { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.step-fig figcaption > span:last-child { flex: none; }
@media (max-width: 1000px) { .step-fig { position: static; } }

/* Sessions */
.sessions-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: end; }
.sessions-head > p { max-width: 380px; justify-self: end; font-size: 14px; line-height: 1.6; color: var(--stone); }
@media (max-width: 820px) { .sessions-head > p { justify-self: start; } }
.rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail::after { content: ""; flex: none; width: 1px; }
.session { flex: none; width: min(78vw, 720px); scroll-snap-align: start; scroll-margin-left: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.session img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--fog); }
.session-body { display: flex; flex-direction: column; gap: 16px; padding: 4px 0; min-width: 0; }
.session-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.session-top .count { font-size: 13px; line-height: 1; color: var(--stone); font-variant-numeric: tabular-nums; }
.session h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.session-body > p { font-size: 14.5px; line-height: 1.65; color: var(--ink-3); }
.walk { margin-top: auto; padding: 16px 18px; background: var(--mist); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.walk .label { color: var(--ink-2); font-size: 9.5px; }
.walk span:last-child { font-size: 14.5px; line-height: 1.45; }
@media (max-width: 640px) {
  .session { width: 84vw; grid-template-columns: 1fr; gap: 18px; }
  .walk { margin-top: 4px; }
}
.rail-bar { display: flex; align-items: center; gap: 20px; }
.rail-track { flex: 1; height: 2px; background: var(--track); border-radius: 2px; overflow: hidden; }
.rail-fill { height: 100%; width: 25%; background: var(--sky); border-radius: 2px; transition: width .2s; }
.rail-count { font: 500 11px/1 var(--sans); letter-spacing: .1em; color: var(--stone); font-variant-numeric: tabular-nums; }
.rail-btns { display: flex; gap: 8px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; font: 400 16px/1 var(--sans); color: var(--ink); transition: background .2s, color .2s; }
.round:hover:not(:disabled) { background: var(--sky); }
.round:disabled { color: var(--faint); cursor: default; }

/* Results */
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; background: var(--fog); border-radius: 100px; align-self: flex-start; max-width: 100%; }
.seg button { height: 40px; padding: 0 20px; border: 0; border-radius: 100px; background: transparent; color: var(--stone);
  font: 500 13.5px/1 var(--sans); cursor: pointer; transition: all .2s; }
.seg button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(14,16,20,.12); }
@media (max-width: 400px) { .seg button { padding: 0 14px; } }
.items { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.item { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: baseline; }
.item .n { font: 500 11px/1 var(--sans); color: var(--stone); }
.item .t { font: 400 18px/1.45 var(--serif); white-space: pre-line; }
.item .note { margin-top: 5px; font-size: 12.5px; line-height: 1.5; color: var(--stone); }

/* Price */
.price { position: relative; margin-inline: calc(-1 * var(--gutter)); padding: clamp(72px, 9vw, 128px) var(--gutter); overflow: hidden; background: var(--white); }
.price-bg { position: absolute; top: -30px; bottom: -30px; right: -30px; left: auto; width: calc(60% + 30px); height: calc(100% + 60px);
  object-fit: cover; object-position: 58% 40%; filter: blur(22px) saturate(.5); opacity: .6; transition: filter .15s linear; max-width: none; }
.price-fade { position: absolute; inset: 0; background: linear-gradient(90deg, #FFFFFF 0, #FFFFFF max(28%, 460px), rgba(255,255,255,.93) max(32%, 510px),
  rgba(255,255,255,.8) max(36%, 560px), rgba(255,255,255,.62) max(40%, 610px), rgba(255,255,255,.42) max(44%, 660px), rgba(255,255,255,.24) max(48%, 710px),
  rgba(255,255,255,.1) max(52%, 760px), rgba(255,255,255,.02) max(56%, 810px), rgba(255,255,255,0) max(60%, 860px)); }
.price-progress { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--sky); z-index: 2; }
.price-in { position: relative; max-width: 520px; display: flex; flex-direction: column; gap: 24px; }
.price-in > p { font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.prompt { border: 1px solid rgba(14,16,20,.12); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 14px; }
.prompt-top { display: flex; justify-content: space-between; font: 500 10px/1 var(--sans); letter-spacing: .08em; color: var(--stone); text-transform: uppercase; }
.prompt-text { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.prompt-text code { font: inherit; background: var(--mist); padding: 0 4px; border-radius: 3px; }
.gen { height: 50px; border: 1px solid var(--ink); border-radius: 100px; background: var(--ink); color: var(--white);
  font: 500 14px/1 var(--sans); letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s; }
.gen.done { background: var(--white); color: var(--ink); }
.gen:hover { opacity: .92; }
.output { margin-top: 4px; padding: 22px 0 6px; border-top: 1px dashed rgba(14,16,20,.14); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.output .label { font-size: 9.5px; }
.price-n { font: 400 clamp(32px, 3vw, 42px)/1.05 var(--serif); font-variant-numeric: tabular-nums; color: var(--faint); padding: 0 8px;
  background-image: linear-gradient(var(--mist), var(--mist)); background-repeat: no-repeat; background-position: 0 82%; background-size: 0% .42em;
  transition: background-size .6s, color .2s; }
.price-n.running { color: var(--stone); }
.price-n.done { color: var(--ink); background-size: 100% .42em; }
.price-sub { font: 500 10.5px/1.4 var(--sans); color: var(--stone); letter-spacing: .1em; text-transform: uppercase; }
.after { display: flex; flex-direction: column; gap: 14px; }
.after p { font-size: 13.5px; line-height: 1.6; color: var(--stone); }
.after .btn { align-self: flex-start; padding: 0 28px; }

/* ---------- stacked layout (tablet and phone) ----------
   Every section reads the same way: section name and headline, then the
   photo, then the rest. The text column dissolves (display: contents) so
   its pieces can sit around the photo. */
@media (max-width: 1040px) {
  .reflow { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .reflow > .m-text { display: contents; }
  .reflow > .m-text > * { order: 3; }
  .reflow .m-head { order: 1; }
  .reflow .m-fig { order: 2; }
  .reflow .step-fig { position: static; }
}
@media (max-width: 760px) {
  .price { display: flex; flex-direction: column; gap: 24px; }
  .price-in.m-text { display: contents; }
  .price-in > * { order: 3; }
  .price .m-head { order: 1; }
  .price-bg.m-fig { order: 2; position: static; width: 100%; height: auto; aspect-ratio: 5 / 3; max-width: 100%;
    border-radius: 2px; clip-path: inset(0 round 2px); }
  .price-fade { display: none; }
}

/* ---------- booking ---------- */
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } }
.book-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (min-width: 961px) { .book-side { position: sticky; top: calc(var(--nav-h) + 32px); } }
.book-side > p { font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.summary { border: 1px solid rgba(14,16,20,.12); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; }
.summary-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.summary-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.summary-row .label { padding-top: 3px; }
.summary-row .empty { color: var(--stone); }

.form { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.fs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.fs legend { padding: 0; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; font: 400 22px/1.25 var(--serif); }
.fs-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); display: inline-flex; align-items: center; justify-content: center; font: 500 12px/1 var(--sans); }
.sub { font: 500 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 100px;
  font: 500 13.5px/1.25 var(--sans); cursor: pointer; transition: background .15s, border-color .15s; }
.chip span:hover { background: var(--tint); }
.chip input:checked + span { background: var(--mist); border-color: var(--mist); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip input:disabled + span { opacity: .42; text-decoration: line-through; cursor: default; background: transparent; }

.when { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 640px) { .when { grid-template-columns: 1fr; } }
.cal { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-title { font: 400 19px/1 var(--serif); }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; font: 400 15px/1 var(--sans); }
.cal-nav:hover:not(:disabled) { background: var(--sky); }
.cal-nav:disabled { background: var(--fog); color: var(--faint); cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow { text-align: center; font: 500 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); padding: 6px 0 8px; }
.cal-day { aspect-ratio: 1; max-width: 100%; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font: 500 13.5px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.cal-day:hover:not(:disabled) { background: var(--tint); }
.cal-day:disabled { color: var(--stone); opacity: .38; cursor: default; }
.cal-day[aria-pressed="true"] { background: var(--mist); }
.slots-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.req { color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent;
  padding: 10px 0; font: 400 16px/1.4 var(--sans); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 24px;
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 6px center / 5px 5px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 1px center / 5px 5px no-repeat; }
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9A9EA6; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: var(--danger); }
.err { font-size: 13px; color: var(--danger); line-height: 1.45; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.submit-row .hint { max-width: 300px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.result { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; border: 1px solid rgba(14,16,20,.12); border-radius: 18px; padding: clamp(22px, 4vw, 36px); }
.result h3 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; }
.result p { font-size: 15px; color: var(--ink-3); max-width: 520px; }
.again { background: none; border: 0; padding: 0; cursor: pointer; font: 500 14.5px/1 var(--sans); text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid rgba(14,16,20,.08); }
.foot-in { padding-block: 36px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot .mark { font-size: 22px; }

/* ---------- content protection (public site): no selection, image dragging,
   long-press saving or printing; form fields stay selectable ---------- */
body.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.protect input, body.protect textarea, body.protect select { -webkit-user-select: text; user-select: text; }
body.protect img { -webkit-user-drag: none; user-drag: none; }
@media print { body.protect { display: none !important; } }
