/* Nusa Sutra Digital — shared site styles */
:root {
  --ink: #131411;
  --paper: #f3f1e9;
  --paper-2: #ebe9df;
  --lime: #ccf45b;
  --blue: #5268ff;
  --muted: #52544c;
  --line: rgba(19, 20, 17, 0.15);
  --gutter: max(16px, 4.5vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  min-height: 76px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff; background: rgba(19, 20, 17, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark b { display: block; font-size: 14px; letter-spacing: .17em; text-transform: uppercase; line-height: 1; }
.wordmark small { display: block; margin-top: 6px; font-size: 8px; letter-spacing: .2em; text-transform: uppercase; opacity: .55; line-height: 1; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; color: var(--lime); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-color: var(--lime); }
.site-nav a.nav-cta { padding: 10px 16px; background: #fff; color: var(--ink); border: 0; }
.site-nav a.nav-cta:hover { background: var(--lime); }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.25); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 7px; }
.menu-button span:not(.sr-only) { width: 17px; height: 1px; background: #fff; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 120px var(--gutter) 110px;
  color: #fff;
  background: radial-gradient(circle at 75% 25%, rgba(82,104,255,.18), transparent 32%), linear-gradient(115deg, #171814, #0f100e 70%);
}
.hero-inner { max-width: 900px; position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: clamp(44px, 7vw, 92px); line-height: .98; letter-spacing: -.05em; font-weight: 500; }
.hero h1 em { color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-style: normal; font-weight: 400; }
.hero-intro { max-width: 640px; margin: 30px 0 0; color: rgba(255,255,255,.84); font-size: 19px; line-height: 1.65; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.hero::after { content: ""; position: absolute; width: 450px; height: 450px; right: -160px; bottom: -220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.05); box-shadow: 0 0 0 100px rgba(255,255,255,.018), 0 0 0 200px rgba(255,255,255,.012); }

.eyebrow { margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.hero .eyebrow::before, .dark .eyebrow::before { background: var(--lime); }

.button { min-height: 52px; display: inline-flex; align-items: center; gap: 24px; padding: 0 22px; font-size: 14px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button-primary { background: var(--lime); color: var(--ink); }
.button-primary:hover { background: #fff; transform: translateY(-2px); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: var(--blue); transform: translateY(-2px); }
.text-link { padding: 12px 0; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.hero .text-link { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .text-link:hover { border-color: var(--lime); }

.facts { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.facts li { padding: 18px 18px 0 0; }
.facts b { display: block; color: var(--lime); font-size: 15px; }
.facts span { display: block; margin-top: 4px; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.45; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 110px var(--gutter); }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: #fff; }
.section-heading { display: grid; grid-template-columns: .7fr 1.5fr 1fr; gap: 5vw; align-items: end; margin-bottom: 56px; }
.section-heading .eyebrow { align-self: start; margin-top: 8px; }
.section-heading h2, .section h2.big { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.section-heading > p:last-child { margin: 0; max-width: 380px; color: var(--muted); }
.dark .section-heading > p:last-child { color: rgba(255,255,255,.7); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 32px; background: #fff; border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--blue); }
.card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.card .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.card .tags span { padding: 5px 10px; background: var(--paper); font-size: 12px; font-weight: 600; }
.card a.card-link { display: inline-block; margin-top: 16px; color: var(--blue); font-weight: 700; text-decoration: none; }
.dark .card { background: #1c1d19; border-color: rgba(255,255,255,.1); }
.dark .card p { color: rgba(255,255,255,.72); }

.note { margin: 28px 0 0; max-width: 820px; color: var(--muted); font-size: 15px; }
.note a { color: var(--blue); }

/* numbered list rows */
.rows { border-top: 1px solid var(--line); }
.row { padding: 34px 0; display: grid; grid-template-columns: 80px 1fr; gap: 3vw; border-bottom: 1px solid var(--line); }
.row-num { color: var(--blue); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.row h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.02em; font-weight: 600; }
.row p { margin: 0; max-width: 760px; color: var(--muted); }
.row .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.row .tags span { padding: 5px 10px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; }

/* access table */
.table { border-top: 1px solid var(--line); }
.table-row { padding: 18px 0; display: grid; grid-template-columns: minmax(180px, .6fr) 1.6fr; gap: 4vw; border-bottom: 1px solid var(--line); }
.table-row > span { color: var(--muted); }
.table-head { padding: 12px 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }

.plain-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plain-list li { position: relative; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--line); font-size: 17px; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 30px; width: 14px; height: 2px; background: var(--blue); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.stats div { padding: 26px 20px 0 0; }
.stats b { display: block; color: var(--lime); font-size: clamp(36px, 4vw, 54px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.stats span { display: block; margin-top: 10px; color: rgba(255,255,255,.7); font-size: 14px; }

/* founder */
.founder-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 6vw; align-items: center; }
.founder-hero img { width: 100%; max-width: 380px; justify-self: end; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid rgba(255,255,255,.12); }
.founder-quote p { margin: 0 0 16px; color: rgba(255,255,255,.84); font-size: 18px; line-height: 1.7; }

/* savings calculator */
.savings { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border: 1px solid var(--line); background: #fff; }
.savings-inputs { padding: 36px; display: flex; flex-direction: column; gap: 26px; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; }
.field label small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.field output { font-weight: 800; color: var(--blue); white-space: nowrap; }
.field input[type=range] { width: 100%; margin-top: 10px; accent-color: var(--blue); }
.savings-result { padding: 36px; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.savings-result .label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.6); }
.savings-total { margin: 8px 0 4px; color: var(--lime); font-size: clamp(38px, 4.4vw, 58px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.savings-result .sub { margin: 0 0 22px; color: rgba(255,255,255,.55); font-size: 13px; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.breakdown span { color: rgba(255,255,255,.7); }
.savings-result .button { margin-top: auto; align-self: flex-start; }
details.sources { margin-top: 22px; }
details.sources summary { cursor: pointer; font-weight: 700; }
details.sources p { color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; }
details.sources table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
details.sources th, details.sources td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
details.sources th { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.legal h1 { margin: 0; font-size: clamp(36px, 5vw, 54px); letter-spacing: -.04em; font-weight: 500; line-height: 1.05; }
.legal .updated { margin: 10px 0 32px; color: var(--muted); font-size: 14px; }
.legal h2 { margin: 40px 0 10px; font-size: 22px; letter-spacing: -.02em; }
.legal p, .legal li { color: #2b2c27; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); }
.lang-switch { display: inline-flex; gap: 6px; margin-top: 18px; }
.lang-switch a { padding: 6px 12px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal hr { margin: 64px 0; border: 0; border-top: 1px solid var(--line); }

/* contact */
.contact { padding: 110px var(--gutter) 90px; background: var(--lime); }
.contact .eyebrow::before { background: var(--ink); }
.contact-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.contact h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; flex: 1 1 320px; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.wa-button { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 24px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; transition: transform .2s ease; }
.wa-button:hover { transform: translateY(-3px); }
.wa-button svg { width: 24px; height: 24px; flex: 0 0 auto; }
.contact-meta { margin: 36px 0 0; color: rgba(19,20,17,.65); font-size: 15px; }

/* footer */
.site-footer { padding: 40px var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--ink); color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { grid-column: 1 / -1; margin: 0; color: rgba(255,255,255,.45); font-size: 12px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .section-heading { grid-template-columns: .7fr 1.8fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .savings { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-button { display: flex; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; padding: 12px var(--gutter) 22px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #141512; border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav a.nav-cta { margin-top: 14px; text-align: center; }
  .facts, .stats { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .founder-hero { grid-template-columns: 1fr; }
  .founder-hero img { justify-self: start; max-width: 280px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .hero { padding: 84px var(--gutter) 76px; }
  .hero-intro { font-size: 16px; }
  .section, .contact { padding-top: 80px; padding-bottom: 80px; }
  .section-heading { display: block; margin-bottom: 40px; }
  .section-heading > p:last-child { margin-top: 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .table-row { grid-template-columns: 1fr; gap: 4px; }
  .table-head { display: none; }
  .savings-inputs, .savings-result { padding: 24px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── Demo journey ───────────────────────────────────────── */
.journey { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.jstep { padding: 44px 0; display: grid; grid-template-columns: 1fr minmax(280px, 400px); gap: 6vw; align-items: center; border-bottom: 1px solid var(--line); }
.jtext h3 { margin: 12px 0 10px; font-size: 26px; letter-spacing: -.02em; font-weight: 600; }
.jtext p { margin: 0; max-width: 560px; color: var(--muted); }
.role { display: inline-block; padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.role-customer { background: var(--lime); }
.role-office { background: #c9d0ff; }
.role-plant { background: #ffd8a8; }
.role-driver { background: #b9ecd0; }
.role-site { background: #e4d4ff; }

.mock { padding: 18px; background: var(--ink); color: #fff; border-radius: 14px; box-shadow: 0 24px 50px -28px rgba(19,20,17,.55); font-size: 14px; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.mock-row span { color: rgba(255,255,255,.6); }
.mock-row b { font-weight: 600; text-align: right; }
.pill { padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.pill-amber { background: #ffcf70; }
.pill-green { background: var(--lime); }
.pill-blue { background: #aab6ff; }
.loads { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.loads span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; font-size: 12px; }
.wa { margin-top: 10px; padding: 10px 12px; background: #1f3b2c; border-radius: 10px 10px 10px 2px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.9); }
.wa b { display: block; margin-bottom: 3px; color: #8be3a9; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.mock-photo { margin-top: 10px; height: 74px; border-radius: 8px; display: flex; align-items: flex-end; background: repeating-linear-gradient(135deg, #2a2b27 0 10px, #24251f 10px 20px); }
.mock-photo span { padding: 6px 9px; font-size: 11px; color: rgba(255,255,255,.75); }
.mock-photo.stamped span { width: 100%; background: rgba(0,0,0,.6); border-radius: 0 0 8px 8px; font-family: ui-monospace, Consolas, monospace; }
.map { position: relative; height: 96px; margin-bottom: 8px; border-radius: 8px; overflow: hidden; background: linear-gradient(0deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 100% 16px, linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 16px 100%, #1d1e1a; }
.map-route { position: absolute; left: 12%; right: 14%; top: 55%; height: 3px; background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 16px); transform: rotate(-12deg); }
.map-truck { position: absolute; left: 42%; top: 42%; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(204,244,91,.2); }
.map-site { position: absolute; right: 12%; top: 26%; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; }
.receipt { background: #fbfaf5; color: var(--ink); }
.receipt .mock-row span { color: var(--muted); }
.receipt-head { padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--ink); font-weight: 800; letter-spacing: .14em; font-size: 13px; }
.sign-line { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 24px; color: #2a3a8f; }
.chop { padding: 8px 10px; border: 2px solid #c0392b; border-radius: 50%; color: #c0392b; font-size: 11px; font-weight: 800; letter-spacing: .1em; transform: rotate(-12deg); }
.progress { height: 8px; margin: 12px 0 6px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--lime); }

@media (max-width: 860px) {
  .jstep { grid-template-columns: 1fr; gap: 22px; padding: 34px 0; }
}

/* ── Home ───────────────────────────────────────────────── */
.home-hero { padding-top: 96px; padding-bottom: 96px; }
.home-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 6vw; align-items: center; }
.home-hero h1 { font-size: clamp(42px, 5.6vw, 80px); }
.phone { justify-self: center; width: 300px; padding: 12px; border-radius: 40px; background: #050505; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 6px rgba(255,255,255,.03); }
.phone-screen { padding: 20px 16px 16px; border-radius: 30px; background: var(--ink); font-size: 14px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.phone .map { height: 120px; }
.phone-btn { margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--lime); color: var(--ink); text-align: center; font-weight: 800; }

.compare { border-top: 1px solid var(--line); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; }
.compare-head { padding: 12px 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.compare-head span:last-child { color: var(--blue); }
.compare-row { padding: 22px 0; border-top: 1px solid var(--line); }
.compare-row p { margin: 0; font-size: 17px; }
.compare-row p:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(19,20,17,.25); }
.compare-row b { color: var(--ink); }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps3 > div { padding: 28px 0 0; border-top: 2px solid var(--lime); }
.steps3 span { color: var(--lime); font-weight: 800; font-size: 13px; letter-spacing: .12em; }
.steps3 h3 { margin: 10px 0 8px; font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.steps3 p { margin: 0; color: rgba(255,255,255,.72); }
a.on-dark { color: var(--lime); font-weight: 700; }

a.card-link-block { display: block; color: inherit; text-decoration: none; }
a.card-link-block .card-link { display: inline-block; margin-top: 16px; color: var(--blue); font-weight: 700; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6vw; align-items: start; }
.about p { margin: 0 0 16px; color: #2b2c27; font-size: 17px; }
.about a { color: var(--blue); }

@media (max-width: 960px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .phone { justify-self: start; }
}
@media (max-width: 720px) {
  .home-hero { padding-top: 64px; padding-bottom: 64px; }
  .phone { width: 100%; max-width: 320px; justify-self: center; }
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 8px; }
  .compare-row p { font-size: 15.5px; }
  .steps3 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 10px; }
  .about p { font-size: 15.5px; }
}
