/* Niki POS website. Colours are the brand's: Kopi, the app's default palette (docs/themes.md; backend/cmd/themegen prints them). No scripts: menus are <details>. */

:root {
  --primary: #79553D;
  --on-primary: #FFFFFF;
  --primary-container: #FBDBC7;
  --on-primary-container: #2B1505;
  --secondary-container: #ECE0D6;
  --accent: #F5ECE6;
  --tertiary: #306969;
  --tertiary-container: #C1EDEC;
  --error: #B3261E;
  --error-container: #F9DEDC;
  --background: #FAF9F8;
  --surface: #FFFFFF;
  --surface-low: #F6F3F1;
  --text: #1E1B19;
  --text-muted: #5C5048;
  --outline: #D1C3BB;
  --border: #EBE0D9;
  --band: #2B1505;
  --on-band: #FBDBC7;
  --on-band-muted: #E6BDA2;
  --bezel: #1E1B19;
  --shadow: 0 1px 2px rgb(43 21 5 / 0.06), 0 8px 24px rgb(43 21 5 / 0.08);
  --shadow-lg: 0 2px 6px rgb(43 21 5 / 0.08), 0 24px 48px rgb(43 21 5 / 0.14);
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #E6BDA2;
    --on-primary: #47270F;
    --primary-container: #603E26;
    --on-primary-container: #FBDBC7;
    --secondary-container: #514439;
    --accent: #31251B;
    --tertiary: #99D3D3;
    --tertiary-container: #135151;
    --error: #F2B8B5;
    --error-container: #601410;
    --background: #161311;
    --surface: #1E1B19;
    --surface-low: #1B1816;
    --text: #E6E1DF;
    --text-muted: #C3B6AD;
    --outline: #50443D;
    --border: #362C25;
    --band: #31251B;
    --on-band: #FBDBC7;
    --on-band-muted: #E6BDA2;
    --bezel: #0B0908;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 24px 48px rgb(0 0 0 / 0.45);
  }
}

/* Plus Jakarta Sans, the app's and the dashboard's typeface (fonts/OFL.txt). */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/static/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/static/fonts/plus-jakarta-sans-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Thai", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); }
img { max-width: 100%; height: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

main { flex: 1; }
main.wrap { max-width: 880px; padding-top: 24px; padding-bottom: 48px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0.5em 0; }
h2 { font-size: 1.3rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 0.4em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 50; background: var(--primary); color: var(--on-primary); padding: 8px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* Header */

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--background) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { border-radius: 10px; }
.nav { display: none; align-items: center; gap: 4px; margin-inline-start: 16px; }
.nav a, .signin { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .signin:hover { background: var(--accent); }
.nav a[aria-current] { color: var(--primary); background: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.signin { display: none; }

.lang { position: relative; display: none; }
.lang summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--outline); border-radius: 999px; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.lang summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.lang .lang-name { display: none; }
.lang .lang-code { text-transform: uppercase; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; min-width: 200px; z-index: 30; box-shadow: var(--shadow-lg); }
.lang li a { display: block; padding: 8px 14px; color: var(--text); text-decoration: none; border-radius: 10px; }
.lang li a:hover, .lang li a:focus { background: var(--accent); }
.lang li a[aria-current] { font-weight: 700; color: var(--primary); }

.menu summary { cursor: pointer; list-style: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; }
.menu summary:hover, .menu[open] summary { background: var(--accent); }
.menu summary .icon { width: 24px; height: 24px; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 64px); overflow-y: auto; padding: 8px 16px 20px; background: var(--background); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.menu-panel nav { display: grid; }
.menu-panel nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 14px 8px; border-bottom: 1px solid var(--border); }
.menu-panel nav a[aria-current] { color: var(--primary); }
.menu-langs-label { display: flex; align-items: center; gap: 8px; margin: 16px 8px 8px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.menu-langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 8px; list-style: none; }
.menu-langs li { margin: 0; }
.menu-langs a { display: block; padding: 6px 14px; border: 1px solid var(--outline); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.92rem; }
.menu-langs a[aria-current] { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); font-weight: 700; }

@media (max-width: 419px) { .top-cta { display: none; } }
@media (min-width: 720px) { .lang { display: block; } .lang .lang-name { display: inline; } .lang .lang-code { display: none; } }
/* The links fit from 1200px in every language (Tamil, French and Indonesian need about 1150); narrower, the menu has them. */
@media (min-width: 1200px) {
  .nav, .signin { display: flex; }
  .menu { display: none; }
}

/* Buttons and forms */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: filter .15s, transform .15s;
}
.button:hover { filter: brightness(1.08); }
.button:active { transform: translateY(1px); }
.button-lg { padding: 15px 28px; font-size: 1.05rem; }
.button-sm { padding: 8px 16px; font-size: 0.9rem; white-space: nowrap; }
.button-tonal { background: var(--secondary-container); color: var(--text); }
.button-danger { background: var(--error); color: #fff; }
@media (prefers-color-scheme: dark) { .button-danger { color: #3a0907; } }

.link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; text-decoration: underline; cursor: pointer; }

form { display: grid; gap: 12px; max-width: 460px; }
form.resend { margin-top: 16px; }
label { font-weight: 600; }
form .note { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
input[type=email], input[type=tel], input:not([type]) {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
a:focus-visible, summary:focus-visible, input:focus-visible, .button:focus-visible, .link:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 0.35em; width: 18px; height: 18px; flex: none; }

.card { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; padding: 8px 24px 24px; margin: 24px 0; }

.notice { padding: 12px 16px; border-radius: 8px; background: var(--secondary-container); }
.notice-ok { background: var(--primary-container); color: var(--on-primary-container); }
.notice-error { background: var(--error-container); }

.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 36em; }
.note { color: var(--text-muted); font-size: 0.95rem; }

/* Marketing pages: home, pricing and the business types */

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--primary-container); color: var(--on-primary-container); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.eyebrow .icon { width: 1.1em; height: 1.1em; }

.hero { position: relative; padding: 32px 0 48px; background: radial-gradient(1200px 520px at 85% -10%, var(--primary-container), transparent 60%), radial-gradient(800px 400px at -10% 110%, var(--accent), transparent 60%); overflow: hidden; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 14em; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin: 0 0 24px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.hero-center { text-align: center; padding-bottom: 24px; }
.hero-center h1, .hero-center .lead { margin-left: auto; margin-right: auto; }

.promises { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 0.95rem; }
.promises li { display: flex; align-items: center; gap: 6px; }
.promises .icon { color: var(--primary); }

.hero-art { position: relative; display: flex; justify-content: center; padding: 0 0 24px; }
.phone { width: min(280px, 72vw); padding: 8px; border-radius: 40px; background: var(--bezel); box-shadow: var(--shadow-lg); }
.phone img { display: block; width: 100%; border-radius: 32px; }
.hero-art .phone { transform: rotate(2deg); }
.paper { position: absolute; left: calc(50% - min(280px, 72vw) / 2 - 56px); bottom: 0; width: min(170px, 38vw); border-radius: 4px; box-shadow: var(--shadow-lg); transform: rotate(-6deg); background: #fff; }

@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-art .phone { width: 300px; }
  .paper { left: 0; width: 190px; bottom: 24px; }
}
@media (max-width: 480px) { .paper { left: 4px; } }

.facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.facts-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0 auto; padding-top: 8px; padding-bottom: 8px; list-style: none; }
.facts-row li { display: flex; flex-direction: column; padding: 14px 8px; }
.facts-row strong { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.facts-row span { color: var(--text-muted); font-size: 0.92rem; line-height: 1.4; }
@media (min-width: 800px) { .facts-row { grid-template-columns: repeat(4, 1fr); } .facts-row li { padding: 18px 16px; border-inline-start: 1px solid var(--border); } .facts-row li:first-child { border-inline-start: 0; } }

.section { padding: 56px 0; }
.section-tight { padding-top: 8px; }
.section-alt { background: var(--surface-low); }
.section-head { max-width: 44em; margin: 0 auto 32px; text-align: center; }
.section-head h2, .section > .wrap > h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } .section-head { margin-bottom: 48px; } }

.more-link { text-align: center; margin: 32px 0 0; font-weight: 700; }
.more-link a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }

/* Business types */

.types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.type-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.type-card:hover { border-color: var(--outline); box-shadow: var(--shadow); transform: translateY(-2px); }
.type-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--primary-container); color: var(--on-primary-container); }
.type-icon .icon { width: 26px; height: 26px; }
.type-icon-lg { width: 64px; height: 64px; border-radius: 18px; }
.type-icon-lg .icon { width: 34px; height: 34px; }
.type-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.type-text strong { font-size: 1.02rem; }
.type-text span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; }
.type-arrow { color: var(--text-muted); }

/* On the home page, all ten as tiles: two across on phones, five on wide screens. */
.types-tiles { grid-template-columns: repeat(2, 1fr); }
.types-tiles .type-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
.types-tiles .type-arrow { display: none; }
@media (min-width: 1000px) { .types-tiles { grid-template-columns: repeat(5, 1fr); } }

/* Features */

.feature-row { display: grid; gap: 28px; align-items: center; padding: 24px 0; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot .phone { width: min(260px, 70vw); }
.feature-copy h3 { font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: -0.02em; margin: 12px 0 10px; }
.feature-copy > p { color: var(--text-muted); font-size: 1.05rem; margin: 0 0 16px; }
.feature-copy .note { font-size: 0.92rem; padding: 10px 14px; background: var(--accent); border-radius: 12px; }
.feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary); color: var(--on-primary); }
.feature-icon .icon { width: 26px; height: 26px; }
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 64px; padding: 40px 0; }
  .feature-row-flip .feature-shot { order: 2; }
  .feature-shot .phone { width: 290px; }
}

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--primary); margin-top: 0.15em; }

.mini-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.mini-features li { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.mini-features .icon { width: 28px; height: 28px; color: var(--primary); }
.mini-features h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.mini-features p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.offline { background: var(--band); color: var(--on-band); }
.offline .eyebrow { background: color-mix(in srgb, var(--on-band) 16%, transparent); color: var(--on-band); }
.offline h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 14px; }
.offline .lead { color: var(--on-band-muted); }
.offline .ticks .icon { color: var(--on-band); }
.offline-grid { display: grid; gap: 40px; align-items: center; }
.offline .phone { background: #000; }
@media (min-width: 860px) { .offline-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }

.tablet { max-width: 900px; margin: 0 auto 32px; padding: 10px; border-radius: 28px; background: var(--bezel); box-shadow: var(--shadow-lg); }
.tablet img { display: block; width: 100%; border-radius: 20px; }
.hardware { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hardware li, .pro-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.hardware .icon, .pro-list .icon { width: 26px; height: 26px; color: var(--primary); }
.hardware span, .pro-list span { display: flex; flex-direction: column; color: var(--text-muted); font-size: 0.93rem; line-height: 1.45; }
.hardware strong, .pro-list strong { color: var(--text); font-size: 1rem; margin-bottom: 2px; }

.pro-grid { display: grid; gap: 32px; align-items: center; }
.pro-grid h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.pro-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .pro-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.faq-wrap { max-width: 800px; }
.faq-wrap > h2 { text-align: center; margin-bottom: 28px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--text-muted); }

.cta-band { background: var(--primary); color: var(--on-primary); padding: 56px 0; }
.cta-inner { display: grid; gap: 24px; align-items: center; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 8px; }
.cta-band p { margin: 0; opacity: 0.9; font-size: 1.08rem; }
.cta-band .button { background: var(--on-primary); color: var(--primary); }
.cta-band .cta-note { margin-top: 12px; font-size: 0.92rem; opacity: 0.85; }
@media (min-width: 860px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } .cta-actions { text-align: end; } .cta-band { padding: 72px 0; } }

/* Pricing */

.plans { display: grid; gap: 20px; max-width: 920px; }
.plan { position: relative; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.plan h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.4rem; }
.plan-pro { border: 2px solid var(--primary); }
.plan-badge { position: absolute; top: -14px; inset-inline-end: 24px; margin: 0; padding: 4px 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 0.85rem; }
.plan-price { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.plan-price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.plan-price span { color: var(--text-muted); font-weight: 600; }
.plan-for { color: var(--text-muted); margin: 0 0 20px; min-height: 3.2em; }
.plan .ticks { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.plan-year { margin: -4px 0 8px; color: var(--text-muted); font-weight: 600; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; margin: 0 auto; } }

.compare { max-width: 860px; margin: 0 auto; background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); font-size: 0.97rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--surface-low); font-size: 1rem; }
.compare tbody th { font-weight: 500; }
.compare td, .compare thead th + th { text-align: center; width: 6.5em; }
.compare td .icon { color: var(--primary); width: 22px; height: 22px; }
.compare td.no { color: var(--outline); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

.two-col { display: grid; gap: 16px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.card-plain { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.card-plain > .icon { width: 30px; height: 30px; color: var(--primary); }
.card-plain h2 { margin: 12px 0 8px; font-size: 1.3rem; }
.card-plain p { margin: 0; color: var(--text-muted); }

/* A business type's page */

.crumb { margin: 0 0 12px; font-size: 0.95rem; color: var(--text-muted); }
.crumb a { text-decoration: none; font-weight: 600; }
.biz-card { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.biz-card-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.biz-card-name { margin: 0; font-weight: 800; font-size: 1.2rem; }
.biz-card-sub { margin: 2px 0 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.4; }
.biz-card .ticks { gap: 14px; }

.included { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.included li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; line-height: 1.4; }
.included .icon { width: 24px; height: 24px; color: var(--primary); }

/* A business type's tutorial: its features, the workflow step by step, and a study case. */

.biz-features { margin-top: 0; }
.included-title { text-align: center; margin: 48px 0 16px; font-size: 1.15rem; }

.steps { counter-reset: step; list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; gap: 16px; }
.step { position: relative; display: grid; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin: 0; }
.step-copy { position: relative; padding-inline-start: 56px; }
.step-num { position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.step-num::before { counter-increment: step; content: counter(step); }
.step h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--text-muted); }
/* A step's screen on the tablet, with the phone in front of it. */
.devices { position: relative; padding: 0 6% 28px 0; }
.tablet-frame { padding: 6px; border-radius: 18px; background: var(--bezel); box-shadow: var(--shadow-lg); }
.tablet-frame img { display: block; width: 100%; border-radius: 13px; }
.devices .phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 24%; padding: 4px; border-radius: 18px; }
.devices .phone img { border-radius: 14px; }
@media (min-width: 860px) {
  .step-with-shot { grid-template-columns: 1fr 1.3fr; gap: 40px; padding: 28px; }
}

.case { max-width: 1040px; margin: 0 auto; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.case-head { padding: 32px 28px 24px; background: radial-gradient(700px 300px at 100% 0%, var(--primary-container), transparent 70%), var(--surface-low); border-bottom: 1px solid var(--border); }
.case-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.case-meta { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-muted); font-weight: 600; }
.case-meta .icon { color: var(--primary); }
.case-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--text-muted); font-style: italic; }
.case-grid { display: grid; gap: 32px; padding: 28px; }
.case h3 { font-size: 1.05rem; margin: 0 0 10px; }
.case-side > p { margin: 0 0 24px; color: var(--text-muted); }
.case-side .ticks { margin-bottom: 24px; }
.case-paper { display: block; width: min(220px, 70%); margin: 8px auto 0; background: #fff; padding: 10px 8px 14px; border-radius: 4px; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.timeline { list-style: none; margin: 0 0 24px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 31px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; margin: 0 0 18px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline-time { position: relative; z-index: 1; align-self: start; justify-self: center; padding: 3px 8px; border-radius: 999px; background: var(--primary-container); color: var(--on-primary-container); font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; }
.case-result { padding: 18px 20px; border-radius: 16px; background: var(--accent); }
.case-result p { margin: 0; }
@media (min-width: 860px) {
  .case-head { padding: 40px 40px 28px; }
  .case-grid { grid-template-columns: 0.85fr 1.15fr; gap: 48px; padding: 36px 40px 40px; }
}

/* The books page (/id/books): expenses, profit and loss, omzet and tax. */

.hero-devices { max-width: 560px; justify-self: center; width: 100%; }
.feature-shot.devices { display: block; }

.pnl-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .pnl-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; } }
.pnl-card { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.pnl-title { margin: 0 0 16px; font-weight: 800; }
.pnl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pnl-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; padding: 10px 0; margin: 0; border-bottom: 1px dashed var(--border); }
.pnl-row:last-child { border-bottom: 0; }
.pnl-row span { color: var(--text-muted); }
.pnl-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pnl-row.minus strong { color: var(--text-muted); font-weight: 600; }
.pnl-row.total span, .pnl-row.net span { color: var(--text); font-weight: 700; }
.pnl-row.net { margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: var(--primary-container); color: var(--on-primary-container); border: 0; }
.pnl-row.net span, .pnl-row.net strong { color: var(--on-primary-container); font-size: 1.08rem; }
.bar { grid-column: 1 / -1; display: block; height: 8px; border-radius: 999px; background: var(--primary); }
.pnl-row.minus .bar { background: var(--outline); }
.pnl-row.net .bar { background: var(--on-primary-container); }
.bar-100 { width: 100%; } .bar-60 { width: 60%; } .bar-35 { width: 35%; } .bar-20 { width: 20%; } .bar-12 { width: 12%; } .bar-5 { width: 5%; } .bar-3 { width: 3%; }
.terms { margin: 0; display: grid; gap: 14px; }
.terms > div { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.terms dt { font-weight: 800; margin-bottom: 4px; }
.terms dd { margin: 0; color: var(--text-muted); }

.cat-box { max-width: 1100px; margin: 32px auto 0; padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.cat-box h3 { margin: 0 0 6px; }
.cat-box > p { color: var(--text-muted); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--outline); font-size: 0.93rem; font-weight: 600; }
.cat-box .cat-cos { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--accent); color: var(--text); }

.not-expense { margin-top: 16px; gap: 14px; }
.not-expense .icon { color: var(--primary); }
.card-plain .ticks span { color: var(--text-muted); }
.card-plain .ticks strong { color: var(--text); }

.tax-box { max-width: 1100px; margin: 40px auto 0; padding: 28px; border-radius: var(--radius); background: var(--surface-low); border: 1px solid var(--border); }
.tax-box h3 { margin: 0 0 12px; }
.tax-box ul { margin: 0 0 16px; padding-inline-start: 1.2em; }
.tax-box li { margin: 0.4em 0; }
.tax-example { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.tax-note { margin: 0; font-size: 0.92rem; color: var(--text-muted); font-style: italic; }

.bcase { max-width: 1100px; margin: 0 auto 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.bcase-head { display: flex; gap: 16px; align-items: center; padding: 24px 28px; background: radial-gradient(700px 300px at 100% 0%, var(--primary-container), transparent 70%), var(--surface-low); border-bottom: 1px solid var(--border); }
.bcase-head h3 { margin: 0 0 4px; font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -0.02em; }
.bcase-head .case-meta { font-size: 0.95rem; }
@media (max-width: 560px) { .bcase-head { align-items: flex-start; padding: 20px; } .bcase-head .type-icon-lg { width: 44px; height: 44px; border-radius: 12px; } .bcase-head .type-icon-lg .icon { width: 24px; height: 24px; } .bcase-head .case-meta .icon { display: none; } }
.feature-copy .more-inline { margin: 16px 0 0; font-weight: 700; }
.feature-copy .more-inline a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.bcase-compare { display: grid; gap: 0; }
.bcase-before, .bcase-after { padding: 22px 28px; }
.bcase-before { background: var(--surface); border-bottom: 1px solid var(--border); }
.bcase-after { background: var(--accent); }
.bcase-before p:last-child, .bcase-after p:last-child { margin: 0; }
.bcase-label { display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; background: var(--secondary-container); }
.bcase-after .bcase-label { background: var(--primary); color: var(--on-primary); }
@media (min-width: 860px) {
  .bcase-compare { grid-template-columns: 1fr 1fr; }
  .bcase-before { border-bottom: 0; border-inline-end: 1px solid var(--border); }
}
.bcase-grid { display: grid; gap: 28px; padding: 28px; }
@media (min-width: 860px) { .bcase-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.bcase h4 { margin: 0 0 12px; font-size: 1.05rem; }
.bcase-steps { margin: 0; padding-inline-start: 1.3em; }
.bcase-steps li { margin: 0.5em 0; padding-inline-start: 4px; }
.mini-pnl { margin: 0; font-size: 0.95rem; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.mini-pnl th, .mini-pnl td { padding: 8px 14px; border-bottom: 1px solid var(--border); }
.mini-pnl th { font-weight: 500; }
.mini-pnl td { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-pnl tr.minus th, .mini-pnl tr.minus td { color: var(--text-muted); }
.mini-pnl tr.total th, .mini-pnl tr.total td { font-weight: 700; background: var(--surface-low); }
.mini-pnl tr.net th, .mini-pnl tr.net td { font-weight: 800; background: var(--primary-container); color: var(--on-primary-container); border-bottom: 0; }
.bcase-tax { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--surface-low); font-size: 0.95rem; }
.benefits { padding: 24px 28px 28px; border-top: 1px solid var(--border); background: var(--surface-low); }
.benefits .ticks { gap: 12px; }
@media (min-width: 860px) { .benefits .ticks { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* The Pro page (/<lang>/pro): each feature with its screens, which stay out until they're captured. */

.pro-feature { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 24px 0; }
.pro-feature > * { min-width: 0; }
.pro-feature .feature-copy { width: 100%; max-width: 40em; }
.pro-feature .feature-copy h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.pro-shot { margin: 0; width: 100%; display: flex; justify-content: center; }
.pro-shot:not(.devices) .phone { width: min(260px, 70vw); }
.pro-shot.devices { display: block; max-width: 560px; padding: 0 0 28px; padding-inline-end: 6%; }
.pro-shot-tablet .tablet-frame { width: 100%; max-width: 560px; }
.pro-when { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--accent); color: var(--text-muted); font-size: 0.93rem; }
.pro-when strong { color: var(--text); }
@media (min-width: 860px) {
  .pro-feature { flex-direction: row; gap: 64px; padding: 40px 0; }
  .pro-feature > * { flex: 1 1 0; }
  .pro-feature-flip { flex-direction: row-reverse; }
  .pro-feature .feature-copy { margin-inline: auto; }
  .pro-shot:not(.devices) .phone { width: 290px; }
}

.pro-who { margin-top: 0; }
.pro-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.pro-steps li { position: relative; margin: 0; padding-inline-start: 48px; min-height: 36px; }
.pro-steps li::before { counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.pro-prices { margin-top: 32px; align-items: start; }
.pro-side { display: grid; gap: 16px; }
.pro-free .included { margin-bottom: 8px; }
.pro-cta .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.pro-cta .cta-actions .cta-note { flex-basis: 100%; }
@media (min-width: 860px) { .pro-cta .cta-actions { justify-content: flex-end; } }
.pro-cta .button-outline { background: transparent; color: var(--on-primary); box-shadow: inset 0 0 0 2px var(--on-primary); }

/* Footer */

.foot { background: var(--surface-low); border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.95rem; }
.foot-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin: 12px 0 16px; max-width: 26em; }
.foot h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin: 0 0 12px; }
.foot h2 + ul + h2 { margin-top: 24px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--text-muted); text-decoration: none; }
.foot a:hover { color: var(--primary); text-decoration: underline; }
.foot .button { color: var(--on-primary); }
.foot .button:hover { color: var(--on-primary); text-decoration: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--border); }
.foot-bottom p { margin: 0; }
.foot-langs { display: flex !important; flex-wrap: wrap; gap: 6px 16px !important; }
.foot-langs a[aria-current] { color: var(--text); font-weight: 700; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }

/* Long pages */

.page-privacy, .page-terms, .page-support, .page-article, .page-delete-account, .page-unduh { max-width: 46em; }

/* The download page (guides feature specs §8): the APK's button and its facts. */
.download-box { background: var(--surface-low); border-radius: 16px; padding: 4px 20px 12px; margin: 24px 0; }
.release-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 16px; margin: 16px 0 8px; }
.release-facts dt { color: var(--text-muted); font-size: 0.9rem; }
.release-facts dd { margin: 0; font-weight: 700; }
.release-facts .release-sha { grid-column: 1 / -1; }
.release-facts .release-sha dd { font-weight: 400; overflow-wrap: anywhere; }
.updated { color: var(--text-muted); font-size: 0.95rem; }
.summary { background: var(--surface-low); border-radius: 12px; padding: 4px 20px; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95rem; }
th, td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--outline); }
.table-scroll { overflow-x: auto; }
li { margin: 0.25em 0; }
.ticks li, .foot li, .types-grid li, .included li, .hardware li, .pro-list li, .mini-features li, .promises li, .facts-row li { margin: 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  main.wrap h1 { font-size: 1.7rem; }
  .card { padding: 4px 16px 16px; }
}

/* An invite link's page (billing spec §9): the code, large and easy to copy. */
.invite-code { font-size: 2.2rem; font-weight: 800; letter-spacing: .2em; font-family: ui-monospace, monospace; margin: .5rem 0 1.25rem; user-select: all; }

/* Help articles (support spec §6.4): the list by topic, and an article's page. */
.help-topic h3 { margin-bottom: 0.2em; }
.help-list { margin: 0; padding-inline-start: 1.2em; }
.help-list li { margin: 0.35em 0; }
.help-article ol li, .help-article ul li { margin: 0.45em 0; }
.help-contact { margin-top: 32px; }

/* Right-to-left pages (Arabic): arrows that point forward turn round. */
[dir="rtl"] .more-link svg, [dir="rtl"] .type-arrow svg { transform: scaleX(-1); }

/* The country picker (layout.html), beside the language one. */
.country-flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.country-pick ul { max-height: min(70vh, 520px); overflow-y: auto; min-width: 240px; }
.country-pick .lang-code { text-transform: uppercase; }
@media (min-width: 720px) and (max-width: 1279px) { .country-pick .lang-name { display: none; } .country-pick .lang-code { display: inline; } }

/* The Panduan (guides.go): the hub's sections and a guide's page, with the app's screens. */
.page-guide { max-width: 46em; }
.guides-head { max-width: 46em; }
.guide-jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; padding: 0; list-style: none; }
.guide-jump li { margin: 0; }
.guide-jump a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--secondary-container); color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.guide-jump a:hover { background: var(--primary-container); }
.guide-section { scroll-margin-top: 88px; }
.guide-section h2 { margin-top: 1.8em; }
.guide-section-intro { margin: 0 0 12px; color: var(--text-muted); }
.guide-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .page-guides .guide-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .page-guides .guide-cards { grid-template-columns: repeat(3, 1fr); } }
.guide-cards li { margin: 0; }
.guide-card { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.guide-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.guide-card strong { color: var(--primary); font-size: 1.02rem; line-height: 1.3; }
.guide-card span { color: var(--text-muted); font-size: 0.93rem; }
.guide-meta { margin: -0.3em 0 1.2em; color: var(--text-muted); font-size: 0.93rem; }
.guide-article h3 { font-size: 1.08rem; margin: 1.3em 0 0.3em; }
.guide-shot { margin: 20px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.guide-shot .phone { width: min(260px, 70vw); }
.guide-shot .tablet-frame { width: 100%; max-width: 560px; }
.guide-shot figcaption { color: var(--text-muted); font-size: 0.9rem; text-align: center; max-width: 30em; }
.table-wrap { overflow-x: auto; margin: 12px 0 16px; }
.table-wrap table { margin: 0; min-width: 22em; }
.guide-article th { background: var(--surface-low); }
.guide-related { margin-top: 36px; }
.guide-cta, .guide-promo { margin-top: 36px; }
.guide-cta .button { margin-top: 4px; }
.guide-promo { margin-top: 16px; }
