/* Alokko — site public.
   Palm green carries the page, the chef-hat orange of the logo marks what you
   can act on, plantain gold is kept for the "kept offline" stamp. */
:root {
  --palm: #12372a;
  --palm-2: #1b4a39;
  --palm-3: #2a6150;
  --hat: #e8590c;
  --hat-ink: #ffffff;
  --plantain: #f2b705;
  --laterite: #a63a26;
  --paper: #f3f5f0;
  --sheet: #ffffff;
  --ink: #142019;
  --muted: #56645c;
  --line: #d6ddd5;
  --receipt: #fffdf6;
  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --print: 'Courier Prime', 'Courier New', monospace;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1914;
    --sheet: #15241d;
    --ink: #e7ede8;
    --muted: #9eaca4;
    --line: #2a3b32;
    --hat: #ff7a33;
    --hat-ink: #1a0d05;
    --laterite: #f08f78;
  }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--plantain); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 0.98; font-stretch: 85%; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.05; }
h3 { font-size: 1.2rem; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 36em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 42em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: 700 1rem/1.2 var(--body); }
.btn-go { background: var(--hat); color: var(--hat-ink); }
.btn-go:hover { filter: brightness(1.07); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.top { background: var(--palm); color: #edf3ee; position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.55rem/1 var(--display); letter-spacing: -0.04em; color: #fff; }
.brand svg { width: 34px; height: 34px; flex: none; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: #cfdcd3; font-size: 0.98rem; }
.top nav a:hover { color: #fff; background: var(--palm-2); }
.top nav a[aria-current='page'] { color: #fff; box-shadow: inset 0 -3px 0 var(--plantain); border-radius: 0; }
.top nav .btn-go { color: #fff; padding: 10px 16px; margin-left: 8px; background: #e8590c; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid #4d7262; color: #fff; border-radius: 8px; padding: 8px 12px; font: 700 0.95rem var(--body); }
@media (max-width: 920px) {
  .menu-toggle { display: inline-block; }
  .top .wrap { flex-wrap: wrap; }
  .top nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 0 0 16px; margin: 0; }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px; }
  .top nav a[aria-current='page'] { box-shadow: inset 4px 0 0 var(--plantain); }
  .top nav .btn-go { margin: 8px 0 0; justify-content: center; }
}

/* Hero: the receipt that keeps printing */
.hero { background: var(--palm); color: #f0f5f1; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-top: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lead { color: #c3d3c8; margin-top: 24px; }
.hero .actions { margin-top: 36px; }
.hero .btn-line { color: #fff; }
.hero-copy { padding-bottom: clamp(48px, 8vw, 96px); }
.hero-facts { margin: 40px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; color: #c3d3c8; font-size: 0.98rem; }
.hero-facts li { display: flex; gap: 8px; align-items: center; }
.hero-facts li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--plantain); }

.printer { position: relative; align-self: start; padding-bottom: 48px; display: flex; flex-direction: column; align-items: center; }
.printer-head { width: min(100%, 380px); height: 30px; border-radius: 0 0 14px 14px; background: #0b241b; box-shadow: inset 0 -8px 0 #07170f; position: relative; z-index: 2; }
.printer-head::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 6px; height: 3px; border-radius: 2px; background: #000; }
.receipt { width: min(92%, 340px); margin-top: -6px; background: var(--receipt); color: #1d211f; font: 15px/1.45 var(--print); padding: 26px 24px 34px; position: relative;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) 0 0 / 18px 100% repeat-x;
  animation: print 2.6s cubic-bezier(.3,.7,.3,1) .3s both; transform-origin: top; }
.receipt .r-head { text-align: center; border-bottom: 1px dashed #9aa19c; padding-bottom: 12px; margin-bottom: 12px; }
.receipt .r-head b { font-size: 1.15rem; letter-spacing: 0.04em; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .r-total { border-top: 1px dashed #9aa19c; margin-top: 12px; padding-top: 10px; font-weight: 700; font-size: 1.05rem; }
.receipt .r-net { margin-top: 16px; display: flex; gap: 8px; align-items: center; color: #8a2f1f; font-weight: 700; }
.receipt .r-net::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stamp { position: absolute; right: max(0px, calc(50% - 215px)); bottom: 22px; transform: rotate(-9deg); border: 3px solid #b88a00; color: #8a6600; background: rgba(242, 183, 5, 0.18); font: 800 0.95rem/1.3 var(--display); padding: 8px 12px; border-radius: 6px; text-align: center; animation: stamp .35s ease-out 2.8s both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-30px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .printer { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .receipt, .stamp { animation: none; } }

/* Sections */
.band { padding: clamp(64px, 9vw, 112px) 0; }
.band-sheet { background: var(--sheet); border-block: 1px solid var(--line); }
.band-palm { background: var(--palm); color: #edf3ee; }
.band-palm .lead, .band-palm p { color: #c3d3c8; }
.band-palm h2, .band-palm h3 { color: #fff; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 44em; }

/* Feature rows: text beside a small working scene */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature .txt { display: grid; gap: 14px; }
.feature .txt p { color: var(--muted); }
.feature ul { margin: 4px 0 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 6px; }
.feature.flip .scene { order: -1; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature.flip .scene { order: 0; } }

.scene { background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: 20px; font-size: 0.92rem; }
.band-sheet .scene { background: var(--paper); }
.scene-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 14px; gap: 10px; }
.chip { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); white-space: nowrap; }
.chip.ok { background: color-mix(in srgb, #2f8a5b 18%, transparent); color: #24704a; }
.chip.warn { background: color-mix(in srgb, var(--plantain) 28%, transparent); color: #7a5b00; }
.chip.bad { background: color-mix(in srgb, var(--laterite) 16%, transparent); color: var(--laterite); }
@media (prefers-color-scheme: dark) { .chip.ok { color: #7fd3a6; } .chip.warn { color: #f5cf5a; } }

.tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tables div { border-radius: 10px; padding: 10px 8px; text-align: center; font-weight: 700; border: 2px solid var(--line); }
.tables small { display: block; font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.tables .busy { background: color-mix(in srgb, var(--hat) 14%, transparent); border-color: var(--hat); }
.tables .wait { background: color-mix(in srgb, var(--plantain) 22%, transparent); border-color: #c99800; }

.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tickets div { background: var(--receipt); color: #1d211f; border-radius: 6px; padding: 10px; font: 0.82rem/1.45 var(--print); border-top: 5px solid var(--hat); }
.tickets div.ready { border-top-color: #2f8a5b; }
.tickets b { display: block; margin-bottom: 4px; }
@media (max-width: 480px) { .tickets { grid-template-columns: 1fr 1fr; } .tickets div:last-child { display: none; } }

.pay { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pay span { border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.pay span.on { border-color: var(--hat); }
.split { margin-top: 12px; display: grid; gap: 6px; }
.split div, .lines div { display: flex; justify-content: space-between; gap: 10px; }
.lines { display: grid; gap: 8px; }
.lines div { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lines div:last-child { border-bottom: 0; padding-bottom: 0; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 6px; }
.bars i { flex: 1; background: var(--palm-3); border-radius: 4px 4px 0 0; }
.bars i:last-child { background: var(--hat); }
@media (prefers-color-scheme: dark) { .bars i { background: #4f8a74; } }

/* Simple grids of plain statements (not cards) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 48px; }
.facts > div { display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--hat); padding-top: 18px; }
.band-palm .facts > div { border-top-color: var(--plantain); }
.facts p { color: var(--muted); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; gap: 28px; } }

/* A real sequence: what happens when the connection drops */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.band-palm .steps li { border-top-color: #2f5a49; }
.steps li::before { content: counter(s); font: 800 2.4rem/1 var(--display); color: var(--hat); }
.band-palm .steps li::before { color: var(--plantain); }
.steps li div { display: grid; gap: 8px; max-width: 40em; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--palm); border-radius: 18px; overflow: hidden; background: var(--sheet); }
@media (prefers-color-scheme: dark) { .plans { border-color: var(--line); } }
.plan { padding: 30px 28px 32px; display: grid; gap: 18px; align-content: start; border-left: 1px solid var(--line); }
.plan:first-child { border-left: 0; }
.plan.pick { background: var(--palm); color: #edf3ee; }
.plan.pick .muted, .plan.pick li { color: #c3d3c8; }
.plan .price { font: 800 clamp(2rem, 3.6vw, 2.6rem)/1 var(--display); letter-spacing: -0.03em; }
.plan .price small { font: 400 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.plan.pick .price small { color: #c3d3c8; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.plan li::before { content: '✓'; color: var(--hat); font-weight: 800; margin-right: 10px; }
.plan.pick li::before { color: var(--plantain); }
.plan .btn { justify-content: center; }
.muted { color: var(--muted); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan { border-left: 0; border-top: 1px solid var(--line); } .plan:first-child { border-top: 0; } }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
table.compare th, table.compare td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th:not(:first-child), table.compare td:not(:first-child) { text-align: center; }
table.compare thead th { font-family: var(--display); font-size: 1.05rem; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 50em; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font: 700 1.12rem/1.35 var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; color: var(--hat); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 22px; color: var(--muted); display: grid; gap: 10px; max-width: 42em; }
.faq h2 { margin: 48px 0 8px; font-size: 1.5rem; }
.faq h2:first-child { margin-top: 0; }

/* Page header for inner pages */
.page-head { background: var(--palm); color: #edf3ee; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.page-head .lead { color: #c3d3c8; margin-top: 18px; }

/* Prose pages (legal) */
.prose { max-width: 44em; display: grid; gap: 16px; }
.prose h2 { font-size: 1.45rem; margin-top: 28px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form.card-form { background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 700; font-size: 0.98rem; }
label .hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input, select, textarea { font: 1rem/1.4 var(--body); padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--hat); outline: none; }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.notice.ok { background: color-mix(in srgb, #2f8a5b 16%, transparent); color: #1f6040; }
.notice.bad { background: color-mix(in srgb, var(--laterite) 14%, transparent); color: var(--laterite); }
@media (prefers-color-scheme: dark) { .notice.ok { color: #8fdcb2; } }
.aside { display: grid; gap: 22px; }
.aside div { display: grid; gap: 4px; }
.aside a { font-weight: 700; }

/* Closing call */
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
@media (max-width: 760px) { .closing .wrap { grid-template-columns: 1fr; } }

/* Footer */
footer.foot { background: #0b241b; color: #b4c5ba; padding: 56px 0 32px; font-size: 0.96rem; }
footer.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer.foot h2 { font: 700 1rem var(--display); color: #fff; margin-bottom: 12px; letter-spacing: 0; }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.foot a { text-decoration: none; }
footer.foot a:hover { color: #fff; text-decoration: underline; }
footer.foot .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid #1d3d30; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.foot .brand { margin-bottom: 14px; }
@media (max-width: 820px) { footer.foot .cols { grid-template-columns: 1fr 1fr; } footer.foot .cols > div:first-child { grid-column: 1 / -1; } }
