/* Little Red Oven Pizza, the hotel offer page.
   A pitch read top to bottom: headline beside an oven arch photo, the offer as a kitchen order ticket, then fit check,
   setup, the monthly rule, a margin calculator, steps, story, questions, contact. One bright theme on purpose. */
:root {
  --paper: #ffffff;
  --flour: #f6f1ec;
  --ink: #2a1f1b;
  --ink-2: #64554e;
  --line: #e6ddd5;
  --tomato: #d3301e;
  --tomato-deep: #a9230f;
  --ember: #f6931e;
  --crust: #f2cf9c;
  --dough: #fbeedd;
  --cheese: #fff3d1;
  --basil: #2d7a4b;
  --f-display: "Kanit", "Noto Sans Thai", "Thonburi", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Thai", "Noto Sans Thai", "Thonburi", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="th"] body { line-height: 1.75; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.3; }
html[lang="th"] h1 { line-height: 1.28; }
html[lang="th"] h2 { line-height: 1.32; }
p { margin: 0; }
a { color: inherit; }
.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 58ch; }
.eyebrow {
  font-family: var(--f-display); font-weight: 500; font-size: .8125rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--tomato);
}
html[lang="th"] .eyebrow { letter-spacing: .02em; font-size: .9rem; }
.wrap {
  max-width: 1140px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: 72px; }
.band { background: var(--flour); }
.stack { display: flex; flex-direction: column; gap: 16px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 1rem/1 var(--f-display); text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-main { background: var(--tomato); color: #fff; }
.btn-main:hover { background: var(--tomato-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { border-color: var(--tomato); color: var(--tomato); }
.btn-sm { padding: 10px 16px; font-size: .9375rem; }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.logo {
  display: block; flex: none; background: var(--ink);
  border-radius: 44px 44px 8px 8px; padding: 6px 12px 3px; line-height: 0;
}
.logo img { width: 78px; height: auto; display: block; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { font: 500 .9375rem/1 var(--f-display); color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--tomato); }
.head-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a {
  font: 500 .875rem/1 var(--f-display); color: var(--ink-2); text-decoration: none;
  border-radius: 999px; padding: 7px 11px;
}
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 460px) { .head-end .btn { display: none; } }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; min-width: 0; padding-bottom: 24px; }
.arch {
  width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; display: block;
  border-radius: 50% 50% 22px 22px / 34% 34% 22px 22px;
  background: var(--ink);
}
.hero-art .arch { object-position: 42% 50%; }
.ticket {
  position: absolute; left: -44px; bottom: 0; width: min(330px, 92%);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(42, 31, 27, .35);
  padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px;
}
.ticket-row { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.ticket-row:first-of-type { border-top: 0; padding-top: 0; }
.ticket-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ticket-label { font: 500 1rem/1.2 var(--f-display); }
.price { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.now { font-size: 1.75rem; font-weight: 600; line-height: 1; }
.now.free { color: var(--basil); }
.unit { font-size: .875rem; color: var(--ink-2); font-weight: 400; }
.ticket-sub { font-size: .875rem; color: var(--ink-2); line-height: 1.45; }
.ticket .btn { margin-top: 4px; }

/* Barred price with a drawn strike */
.was { position: relative; text-decoration: none; color: var(--ink-2); font-size: 1rem; font-weight: 400; }
.was svg { position: absolute; left: -6%; top: 0; width: 112%; height: 100%; overflow: visible; pointer-events: none; }
.was path {
  fill: none; stroke: var(--tomato); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0; animation: strike .55s ease-out .5s both;
}
@keyframes strike { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Why pizza */
.why-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ico { width: 44px; height: 44px; color: var(--tomato); }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.why-item p, .item p { color: var(--ink-2); }

/* Fit check */
.fit-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.fit-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fit-list label {
  display: flex; align-items: flex-start; gap: 14px; cursor: pointer;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  transition: border-color .15s, background .15s;
}
.fit-list label:hover { border-color: var(--crust); }
.fit-list input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--tomato); cursor: pointer; }
.fit-list span { color: var(--ink-2); }
.fit-list input:checked + span { color: var(--ink); }
.fit-list label:has(input:checked) { border-color: var(--tomato); background: #fff8f6; }
.fit-result {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 28px 24px; border-radius: 20px; background: var(--flour);
}
.pie { width: min(220px, 70%); height: auto; overflow: visible; }
.pie .crust { fill: var(--crust); }
.pie .slice { fill: var(--dough); stroke: var(--paper); stroke-width: 3; transition: fill .25s; }
.pie .slice.on { fill: var(--tomato); }
.pie .cheese { fill: var(--cheese); }
.pie .leaf { fill: var(--basil); }
.pie .top { opacity: 0; transition: opacity .25s; }
.pie .top.on { opacity: 1; }
.fit-count { font: 600 1.6rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.fit-msg { color: var(--ink-2); max-width: 34ch; min-height: 3.2em; }

/* Setup */
.setup-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.photo { width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 22px; background: var(--ink); }
.setup-grid .photo { object-position: 62% 50%; }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 32px; }
.item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.aside-line {
  margin-top: 28px; padding: 14px 16px; border: 1.5px dashed var(--crust); border-radius: 12px;
  color: var(--ink-2); font-size: .9375rem;
}
.aside-line b { color: var(--ink); font-weight: 600; }

/* Monthly rule */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.basket { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.basket-us { border: 1.5px solid var(--ink); border-radius: 16px; padding: 16px; }
.basket-title { font: 500 .8125rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
html[lang="th"] .basket-title { letter-spacing: .02em; font-size: .9rem; }
.jars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jar {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 14px 8px; border-radius: 12px; background: var(--dough); font: 500 .9375rem/1.2 var(--f-display);
}
.jar i { display: block; width: 26px; height: 26px; border-radius: 50%; }
.jar:nth-child(1) i { background: var(--crust); }
.jar:nth-child(2) i { background: var(--cheese); box-shadow: inset 0 0 0 2px var(--crust); }
.jar:nth-child(3) i { background: var(--tomato); }
.basket-them { border: 1.5px dashed var(--crust); border-radius: 16px; padding: 14px 16px; color: var(--ink-2); font-size: .9375rem; }
.basket-them b { color: var(--ink); font: 500 1rem/1.3 var(--f-display); display: block; margin-bottom: 2px; }
.rules { display: flex; flex-direction: column; gap: 14px; }
.rule { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.rule-when { display: flex; align-items: center; gap: 10px; font: 500 1.0625rem/1.3 var(--f-display); }
.rule-when .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rule-yes .dot { background: var(--basil); }
.rule-no .dot { background: var(--ember); }
.rule-then { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.rule-then .what { color: var(--ink-2); }
.rules .ticket-sub { padding-inline: 4px; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.fields { margin-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label { font-weight: 500; }
.field output { font: 600 1.15rem/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { width: 100%; accent-color: var(--tomato); margin: 0; }
.results { background: var(--paper); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--line); }
.res { display: flex; flex-direction: column; gap: 4px; }
.res-label { color: var(--ink-2); font-size: .9375rem; }
.res-num { font: 600 clamp(2rem, 4vw, 2.75rem)/1.05 var(--f-display); font-variant-numeric: tabular-nums; }
.res-num small { font-size: .45em; font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.res-sub { font-size: .9375rem; color: var(--ink-2); }
.res + .res { padding-top: 22px; border-top: 1.5px dashed var(--line); }
.fine { font-size: .8125rem; color: var(--ink-2); }

/* Steps */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; }
.step-n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--ink); font: 600 1.1rem/1 var(--f-display); position: relative; z-index: 1;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 52px; right: -20px; border-top: 1.5px dashed var(--crust);
}
.step p { color: var(--ink-2); }

/* Story */
.story-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.story-copy { gap: 20px; }
.story-grid .arch { aspect-ratio: 4 / 4.4; object-position: 78% 50%; }
.stat { display: flex; align-items: baseline; gap: 14px; padding-top: 22px; border-top: 1.5px dashed var(--crust); }
.stat-num { font: 600 3.25rem/1 var(--f-display); color: var(--tomato); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-2); max-width: 24ch; }

/* Questions */
.faq { max-width: 780px; }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font: 500 1.0625rem/1.4 var(--f-display);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--tomato); border-bottom: 2px solid var(--tomato); transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details > div { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-banner { margin-top: 24px; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-banner.ok { background: #e7f3ec; color: var(--basil); }
.form-banner.err { background: #fbe9e6; color: var(--tomato-deep); }
form {
  background: var(--paper); border-radius: 20px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px;
}
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f.full, form altcha-widget { grid-column: 1 / -1; }
.f label { font-size: .875rem; font-weight: 500; }
.f input {
  font: 400 1rem/1.3 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.f input:focus { outline: none; border-color: var(--tomato); }
.form-end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.direct-h { margin-top: 6px; }
.direct { margin-top: 28px; display: flex; flex-direction: column; }
.direct-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.direct-row:first-child { border-top: 1px solid var(--line); }
.direct-k { width: 84px; flex: none; font: 500 .8125rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
html[lang="th"] .direct-k { letter-spacing: .02em; font-size: .9rem; }
.direct-v { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.direct-v a { text-decoration: none; }
.direct-v a:hover { color: var(--tomato); }
.copy {
  flex: none; font: 500 .8125rem/1 var(--f-body); color: var(--ink-2); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer;
}
.copy:hover { border-color: var(--ink-2); color: var(--ink); }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; font-size: .875rem; color: var(--ink-2); }

/* Narrow screens */
@media (max-width: 900px) {
  .hero-grid, .fit-grid, .setup-grid, .offer-grid, .calc-grid, .story-grid, .contact-grid, .why-head { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; padding-bottom: 0; }
  .ticket { position: relative; left: auto; bottom: auto; width: auto; margin: -72px 16px 0; }
  .fit-result { position: static; }
  .setup-grid .photo { aspect-ratio: 16 / 10; }
  .story-grid .arch { max-width: 460px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .items, .steps, form { grid-template-columns: 1fr; }
  .jars { gap: 6px; }
  .jar { font-size: .8125rem; padding: 12px 4px; }
  .ticket { margin: -56px 8px 0; }
  .hero-art .arch { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .was path { animation: none; }
  .pie .slice, .pie .top { transition: none; }
}
