/* Section-specific layouts below the hero */

/* ---------- Features: tabs by place ---------- */
.features { background: var(--surface); }
.places { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.places-tabs { display: grid; gap: 4px; position: sticky; top: 96px; }
.place-tab {
  display: grid; gap: 2px; text-align: left; width: 100%;
  padding: 14px 18px; border: 0; border-radius: var(--r-control);
  background: transparent; cursor: pointer; position: relative;
  transition: background-color .2s;
}
.place-tab::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: transparent; transition: background-color .2s; }
.place-tab:hover { background: var(--paper); }
.place-tab[aria-selected="true"] { background: var(--leaf-100); }
.place-tab[aria-selected="true"]::before { background: var(--leaf-700); }
.place-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3); }
.place-who { font-size: var(--fs-0); color: var(--muted); }

.place-panel-title { font-size: var(--fs-4); font-weight: 650; line-height: 1.25; max-width: 30ch; margin-bottom: var(--s-6); text-wrap: balance; }
.place-panel-name { display: none; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-6); margin: 0; }
.feature { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.feature dt { font-weight: 700; margin-bottom: 4px; }
.feature dd { margin: 0; color: var(--ink-2); font-size: var(--fs-1); line-height: 1.55; }

/* Without JS every panel shows, each with its heading */
.places:not(.is-ready) .places-tabs { display: none; }
.places:not(.is-ready) { grid-template-columns: 1fr; }
.places:not(.is-ready) .place-panel { margin-bottom: var(--s-7); }
.places:not(.is-ready) .place-panel-name { display: block; font-size: var(--fs-0); font-family: var(--font-body); color: var(--leaf-600); margin-bottom: 6px; }
.places.is-ready .place-panel[hidden] { display: none; }
.places.is-ready .place-panel { animation: panel-in .35s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .places, .places.is-ready { grid-template-columns: 1fr; }
  .places-tabs { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .places-tabs::-webkit-scrollbar { display: none; }
  .place-tab { flex: none; width: auto; padding: 10px 16px; border: 1.5px solid var(--line); }
  .place-tab::before { display: none; }
  .place-tab[aria-selected="true"] { border-color: var(--leaf-700); }
  .place-name { font-size: var(--fs-2); }
  .place-who { display: none; }
  .feature-list { grid-template-columns: 1fr; }
}

/* ---------- Flow: order to payment ---------- */
.flow-track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); position: relative; counter-reset: none; }
.flow-track::before { /* the rail */
  content: ""; position: absolute; left: 22px; top: 22px; height: 2px; background: var(--line);
  width: calc(((100% - 3 * var(--s-4)) / 4 + var(--s-4)) * 3);
}
.flow-track::after { /* the progress on the rail */
  content: ""; position: absolute; left: 22px; top: 22px; height: 2px; background: var(--leaf-600);
  width: calc(((100% - 3 * var(--s-4)) / 4 + var(--s-4)) * 3 * var(--progress, 0)); transition: width .8s var(--ease-out);
}
.flow-step { position: relative; z-index: 1; padding-right: var(--s-3); }
.flow-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line); font-family: var(--font-display); font-weight: 750; font-size: var(--fs-3);
  transition: background-color .4s, border-color .4s, color .4s, transform .4s var(--ease-spring);
}
.flow-chip {
  display: inline-block; margin: var(--s-4) 0 var(--s-3); padding: 3px 10px; border-radius: var(--r-chip);
  background: var(--surface); border: 1px solid var(--line); font-family: var(--font-receipt); font-size: 12px; font-weight: 600; color: var(--ink-2);
  transition: background-color .4s, color .4s, border-color .4s;
}
.flow-title { font-size: var(--fs-3); font-weight: 700; margin-bottom: 6px; }
.flow-step p { color: var(--ink-2); font-size: var(--fs-1); margin: 0; }
.flow-step.is-done .flow-num { background: var(--leaf-700); border-color: var(--leaf-700); color: #fff; }
.flow-step.is-current .flow-num { transform: scale(1.12); }
.flow-step[data-step="1"].is-done .flow-chip { background: var(--state-running-bg); border-color: transparent; color: var(--state-running); }
.flow-step[data-step="2"].is-done .flow-chip { background: var(--state-billed-bg); border-color: transparent; color: #8A5A00; }
.flow-step[data-step="3"].is-done .flow-chip { background: var(--state-free-bg); border-color: transparent; color: #0F6B3E; }
.flow-step[data-step="0"].is-done .flow-chip { background: var(--leaf-100); border-color: transparent; color: var(--leaf-800); }

@media (max-width: 860px) {
  .flow-track { grid-template-columns: 1fr; gap: var(--s-6); }
  .flow-track::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .flow-track::before, .flow-track::after { max-width: 2px; }
  .flow-track::after { left: 21px; top: 22px; width: 2px; height: calc((100% - 44px) * var(--progress, 0)); transition: height .8s var(--ease-out); }
  .flow-step { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s-4); }
  .flow-num { grid-row: span 3; }
  .flow-chip { margin: 0 0 6px; justify-self: start; }
}

/* ---------- Shared small definition list ---------- */
.mini-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); margin: var(--s-6) 0 var(--s-5); }
.mini-list dt { font-weight: 700; margin-bottom: 2px; }
.mini-list dd { margin: 0; font-size: var(--fs-1); color: var(--ink-2); line-height: 1.55; }
@media (max-width: 560px) { .mini-list { grid-template-columns: 1fr; } }

/* ---------- Rooms: folio ---------- */
.rooms { background: var(--surface); }
.folio { margin: 0; }
.folio-paper {
  background: var(--receipt); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-paper);
  padding: clamp(20px, 3vw, 32px); transform: rotate(-1.2deg); transition: transform .4s var(--ease-out);
}
.folio:hover .folio-paper { transform: rotate(0); }
.folio-head { display: flex; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4); margin-bottom: var(--s-3); border-bottom: 2px solid var(--ink); }
.folio-head div { display: grid; }
.folio-head b { font-family: var(--font-display); font-size: var(--fs-3); }
.folio-head span { font-size: var(--fs-0); color: var(--muted); }
.folio-guest { text-align: right; }
.folio-lines { width: 100%; font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
.folio-lines td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.folio-lines td:last-child { text-align: right; white-space: nowrap; padding-left: var(--s-4); }
.folio-sub td { color: var(--muted); font-size: var(--fs-0); padding: 4px 0; }
.folio-total td { font-weight: 700; border-bottom: 1px solid var(--ink); border-top: 1px solid var(--ink); }
.folio-due td { font-weight: 800; font-size: var(--fs-2); border-bottom: 0; color: var(--leaf-700); padding-top: 10px; }
.folio-words { font-size: var(--fs-0); color: var(--muted); margin: var(--s-3) 0 0; font-style: italic; }
.folio figcaption { margin-top: var(--s-5); font-size: var(--fs-0); color: var(--muted); max-width: 46ch; }

/* ---------- Online: order board ---------- */
.board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  background: var(--leaf-800); padding: 14px; border-radius: var(--r-card); box-shadow: var(--shadow-paper);
}
.board-col { background: rgba(255,255,255,.06); border-radius: var(--r-control); padding: 10px; min-height: 280px; display: flex; flex-direction: column; gap: 8px; }
.board-col h3 { font-family: var(--font-body); font-size: var(--fs-0); font-weight: 700; color: rgba(255,255,255,.85); display: flex; justify-content: space-between; letter-spacing: 0; margin-bottom: 2px; }
.board-col h3 span { background: rgba(255,255,255,.14); border-radius: 999px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.order { background: var(--surface); border-radius: var(--r-chip); padding: 9px 10px; display: grid; gap: 1px; font-size: 12px; border-left: 3px solid var(--p, var(--muted)); }
.order b { font-size: var(--fs-0); }
.order span { color: var(--muted); }
.order em { font-style: normal; font-weight: 600; color: var(--ink-2); }
.order[data-platform="zomato"] { --p: #C83A3A; }
.order[data-platform="swiggy"] { --p: #E8772E; }
.order[data-platform="magicpin"] { --p: #B03A8C; }
.order[data-platform="ondc"] { --p: #2D6BD8; }
.order[data-platform="website"] { --p: var(--leaf-600); }
.order.is-new { animation: order-in .5s var(--ease-spring); }
@keyframes order-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .board { grid-template-columns: 1fr 1fr; }
  .board-col[data-col="ready"] { display: none; }
  .board-col { min-height: 220px; }
}

/* ---------- Cloud topology ---------- */
.topology { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; }
.topo-site, .topo-cloud { border-radius: var(--r-card); padding: var(--s-6); }
.topo-site { background: var(--surface); border: 1.5px solid var(--line); }
.topo-cloud { background: var(--leaf-800); color: #fff; }
.topo-site h3, .topo-cloud h3 { font-size: var(--fs-3); margin-bottom: var(--s-4); }
.topology ul { list-style: none; display: grid; gap: var(--s-4); }
.topology li { display: grid; }
.topology li span { font-size: var(--fs-1); color: var(--muted); }
.topo-cloud li span { color: rgba(255,255,255,.7); }
.topo-link { display: grid; place-items: center; align-content: center; gap: 10px; width: 150px; padding-inline: 8px; }
.topo-line { position: relative; width: 100%; height: 2px; background-image: linear-gradient(90deg, var(--leaf-600) 50%, transparent 0); background-size: 10px 2px; }
.topo-line i { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--turmeric); box-shadow: 0 0 0 4px rgba(244,180,0,.25); animation: sync-dot 2.6s var(--ease-out) infinite; }
@keyframes sync-dot { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.topo-label { font-size: var(--fs-0); color: var(--muted); text-align: center; }
.cloud-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-7); }
.cloud-facts li { font-size: var(--fs-1); color: var(--ink-2); padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.cloud-facts b { color: var(--ink); }
@media (max-width: 900px) {
  .topology { grid-template-columns: 1fr; }
  .topo-link { width: auto; height: 90px; grid-template-columns: auto auto; gap: 14px; }
  .topo-line { width: 2px; height: 70px; background-image: linear-gradient(180deg, var(--leaf-600) 50%, transparent 0); background-size: 2px 10px; }
  .topo-line i { left: 50%; margin-left: -5px; top: 0; margin-top: 0; animation-name: sync-dot-v; }
  .cloud-facts { grid-template-columns: 1fr; gap: var(--s-5); }
}
@keyframes sync-dot-v { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }

/* ---------- Safety ---------- */
.safety { background: var(--ink); color: #fff; }
.safety-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.safety .section-title { max-width: 12ch; }
.safety-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin: 0; }
.safety-list div { border-top: 1px solid rgba(255,255,255,.18); padding-top: var(--s-4); }
.safety-list dt { font-family: var(--font-display); font-size: var(--fs-3); font-weight: 700; margin-bottom: 6px; color: var(--turmeric); }
.safety-list dd { margin: 0; color: rgba(255,255,255,.75); font-size: var(--fs-1); }
@media (max-width: 860px) { .safety-grid, .safety-list { grid-template-columns: 1fr; } }

/* ---------- Editions ---------- */
.editions { background: var(--surface); }
.table-scroll { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--r-card); }
.compare { width: 100%; min-width: 620px; font-size: var(--fs-1); }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.compare thead th { font-family: var(--font-display); font-size: var(--fs-3); font-weight: 700; background: var(--paper); border-bottom: 1.5px solid var(--line); }
.compare thead th:last-child { background: var(--leaf-800); color: #fff; }
.compare tbody th { font-weight: 600; width: 34%; }
.compare tbody td:last-child { background: #F5FAF7; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .is-no { color: var(--muted); }
.editions-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); margin-top: var(--s-6); }
.editions-foot p { margin: 0; max-width: 58ch; color: var(--ink-2); }
.editions-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .section-title { position: sticky; top: 100px; max-width: 13ch; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0; font-weight: 650; font-size: var(--fs-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--leaf-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 1v8M1 5h8' stroke='%230E3B2E' stroke-width='1.8'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer p { color: var(--ink-2); max-width: 64ch; margin: 0; padding-bottom: var(--s-5); }
.faq-item[open] .faq-answer { animation: panel-in .3s var(--ease-out); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq .section-title { position: static; max-width: none; } }

/* ---------- Download ---------- */
.download { background: var(--leaf-800); color: #fff; position: relative; overflow: hidden; }
.download::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(0deg, #000, transparent 80%);
}
.download-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.download .section-lead { color: rgba(255,255,255,.8); }
.download .fine { color: rgba(255,255,255,.6); }
.download .fine b { color: #fff; }
.trial-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--s-5); margin: var(--s-6) 0 var(--s-7); }
.trial-facts li { display: flex; gap: 10px; font-size: var(--fs-1); }
.trial-facts li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--turmeric) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' fill='none' stroke='%2313221C' stroke-width='1.8'/%3E%3C/svg%3E") center no-repeat; }
.install-title { font-size: var(--fs-3); margin-bottom: var(--s-4); }
.install-steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
.install-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: var(--s-3); font-size: var(--fs-1); color: rgba(255,255,255,.85); }
.install-steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); font-weight: 700; font-size: var(--fs-0); }
.install-steps b { color: #fff; }

.lead-card { background: var(--surface); color: var(--ink); border-radius: var(--r-card); padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow-device); position: relative; }
.lead-title { font-size: var(--fs-4); margin-bottom: var(--s-5); }
.lead-done { text-align: center; padding: var(--s-5) 0; outline: none; }
.lead-done p { color: var(--ink-2); }
.lead-done .fine { color: var(--muted); margin-top: var(--s-4); }
.lead-done .lead-title { margin: var(--s-4) 0 var(--s-3); }
.tick { width: 72px; height: 72px; margin: 0 auto; }
.tick circle { fill: none; stroke: var(--state-free); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.tick path { fill: none; stroke: var(--state-free); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.lead-done.is-shown .tick circle { animation: draw .6s var(--ease-out) forwards; }
.lead-done.is-shown .tick path { animation: draw .4s .45s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead-done.is-shown > :not(.tick) { animation: panel-in .45s .3s var(--ease-out) backwards; }

@media (max-width: 900px) { .download-grid { grid-template-columns: 1fr; } .lead-card { order: -1; } }
@media (max-width: 520px) { .trial-facts { grid-template-columns: 1fr; } }

/* ---------- Customers: stats + testimonials ---------- */
.voices { background: var(--surface); }
.stats { list-style: none; margin: 0 0 var(--s-8); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: var(--s-6) var(--s-5); display: grid; gap: var(--s-1); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); font-weight: 750;
  font-variation-settings: "wdth" 85; letter-spacing: -0.03em; line-height: 1; color: var(--leaf-800); font-variant-numeric: tabular-nums; }
.stat-num b { font-weight: inherit; }
.stat-label { color: var(--muted); font-size: var(--fs-1); }

.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.voice { margin: 0; padding: var(--s-6); border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: var(--s-5); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.voice:hover { transform: translateY(-4px); box-shadow: var(--shadow-paper); }
.voice-mark { width: 30px; height: 22px; fill: var(--turmeric); }
.voice blockquote { margin: 0; flex: 1; }
.voice blockquote p { margin: 0; font-size: var(--fs-3); line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.voice figcaption { display: flex; align-items: center; gap: var(--s-3); }
.voice figcaption b { display: block; font-weight: 650; }
.voice figcaption small { color: var(--muted); font-size: var(--fs-0); }
.voice-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--leaf-800); color: var(--turmeric); font-family: var(--font-display); font-weight: 750; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .voice-grid { grid-template-columns: 1fr; }
}
