/* Decagon Indonesia Digital — official brand colours (docs/spec-plan.md), radius soft. */
:root {
  /* brand: green #009245 (primary) #006837 #39B54A · orange #F7931E (accent) #F15A24 #FBB03B */
  --green: #009245;
  --green-dark: #006837;
  --green-light: #39B54A;
  --orange: #F7931E;
  --bg: #f6f8f5;
  --surface: #e9f0e8;
  --paper: #ffffff;
  --ink: #13241a;
  --muted: #3f5246;
  --accent: var(--green-dark); /* white on #009245 is ~4:1, below AA for body text */
  --accent-hover: #00542c;
  --accent-ink: #ffffff;
  --inv-bg: var(--green-dark);
  --inv-ink: #ffffff;
  --inv-muted: #d5eadb;
  --line: rgb(19 36 26 / 0.14);
  --radius: 14px;
  --radius-small: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: min(1200px, 100% - 2 * clamp(20px, 5vw, 56px));
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg, img { display: block; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* Focus and skip link */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--inv-ink); }
main:focus { outline: none; }
.skip {
  position: absolute; left: 12px; top: 12px; z-index: 10;
  padding: 12px 16px; background: var(--ink); color: #fff;
  border-radius: var(--radius-small); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .95rem; }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 calc(100% - 10px) / 0 2px no-repeat;
  transition: background-size .25s var(--ease);
}
.link:hover { background-size: 100% 2px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.mark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.mark span { color: var(--green-dark); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.mark img { height: 44px; width: auto; }
nav ul { display: flex; gap: 8px; }
nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; color: var(--muted); border-radius: 999px;
  transition: color .18s, background-color .18s;
}
nav a:hover { color: var(--ink); background: var(--surface); }
nav { margin-left: auto; }

/* Sections: one idea per screen */
.screen { min-height: 100svh; padding-block: clamp(72px, 10vh, 120px); display: flex; }
.screen > .wrap { align-self: center; }
.surface { background: var(--surface); }

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 600;
  line-height: 1.05; letter-spacing: -0.03em;
}
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.intro { margin-top: 16px; max-width: 52ch; color: var(--muted); font-size: 1.125rem; }

/* Hero */
.hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: 48px 64px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.eyebrow { color: var(--green-dark); font-weight: 600; letter-spacing: .02em; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; margin: 0 10px .3em 0; background: var(--orange); border-radius: 2px; }
h1 {
  margin-top: 14px;
  font-size: clamp(2.25rem, 4.6vw, 4.1rem); font-weight: 600;
  line-height: 1.04; letter-spacing: -0.036em; text-wrap: balance;
}
.lead { margin-top: 24px; max-width: 46ch; font-size: 1.2rem; color: var(--muted); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Hero visual: the three products at a glance */
.lineup {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border-top: 4px solid var(--green);
  box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 24px 60px -24px rgb(0 60 30 / .35);
}
.lineup-head { padding: 16px 24px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.lineup a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 18px 24px; text-decoration: none; border-bottom: 1px solid var(--line);
  transition: background-color .18s;
}
.lineup li:last-child a { border-bottom: 0; }
.lineup a:hover { background: var(--surface); }
.lineup strong { font-size: 1.25rem; }
.lineup span { grid-row: 2; color: var(--muted); font-size: .95rem; }
.lineup em { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-size: .85rem; font-weight: 600; color: var(--green-dark); padding: 4px 12px; border-radius: 999px; background: var(--surface); }

/* Hero entrance, once on load */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
.enter { animation: enter .7s var(--ease) both; }
.enter-late { animation-delay: .15s; }

/* Products */
.products { margin-top: clamp(40px, 6vh, 64px); display: grid; gap: clamp(48px, 8vh, 88px); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.product:nth-child(even) .product-shot { order: 2; }
.product-shot {
  border-radius: var(--radius); overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgb(0 60 30 / .45);
}
.product-shot img { width: 100%; transition: transform .4s var(--ease); }
.product:hover .product-shot img { transform: scale(1.02); }
.kategori { color: var(--green-dark); font-weight: 600; font-size: .95rem; }
.product h3 { margin-top: 6px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; }
.masalah { margin-top: 14px; color: var(--muted); }
.solusi { margin-top: 8px; font-weight: 500; }
.fitur { margin-top: 16px; display: grid; gap: 6px; }
.fitur li { position: relative; padding-left: 22px; }
.fitur li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 3px; border-radius: 2px; background: var(--orange); }
.status { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--green-dark); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green-light); }
.product .btn { margin-top: 20px; }

/* SIKOPSU: neutral mockup, menu names only, no member data */
.mock { aspect-ratio: 16 / 10; display: flex; flex-direction: column; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--green-dark); color: #fff; font-weight: 700; letter-spacing: .04em; }
.mock-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.mock-menu { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px; background: var(--bg); }
.mock-menu li {
  display: flex; align-items: flex-end; padding: 14px; border-radius: var(--radius-small);
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green-light);
  font-weight: 600; color: var(--ink);
}

/* Services */
.cards { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 28px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgb(0 60 30 / .5); }
.glyph {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 12px; background: var(--green); color: #fff;
}
.card h3 { margin-top: 28px; font-size: 1.4rem; }
.card p { margin-top: 10px; color: var(--muted); }

/* Process: brand band */
.band { background: var(--inv-bg); color: var(--inv-ink); }
.band .intro { color: var(--inv-muted); }
.steps { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 3px solid var(--orange); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 28px; font: 500 .95rem var(--mono); color: var(--inv-muted);
}
.steps p { margin-top: 8px; color: var(--inv-muted); font-size: .97rem; }

/* About: short, so it does not take a full screen */
.about { min-height: 0; }
.about-text { margin-top: 24px; max-width: 34ch; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.25; letter-spacing: -0.02em; }

/* Contact close */
.close-line { margin-top: 20px; max-width: 26ch; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.1; letter-spacing: -0.025em; }
.contact-list { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 22rem)); gap: 16px; }
.contact-list div { padding-top: 16px; border-top: 1px solid var(--line); }
.contact-list dt { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin-top: 2px; font-size: 1.15rem; }

/* Footer */
.site-footer { background: var(--ink); color: #dfe8e2; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer :focus-visible { outline-color: #fff; }

/* Tablet */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
}
@media (max-width: 860px) {
  .hero-grid, .product { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-shot { order: 0; }
  .hero { align-items: flex-start; }
  .cards { grid-template-columns: 1fr; }
}
/* Phone */
@media (max-width: 640px) {
  nav { display: none; }
  .bar { gap: 12px; }
  .site-footer .bar { flex-direction: column; align-items: flex-start; padding-block: 16px; gap: 4px; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .steps li::before { margin-bottom: 12px; }
  .contact-list { grid-template-columns: 1fr; }
  .actions .btn, .product .btn { width: 100%; white-space: normal; text-align: center; }
  .screen { min-height: 0; }
  .mock-menu { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
  .mock { aspect-ratio: auto; }
}
@media (max-width: 360px) {
  .btn-small { padding: 0 12px; font-size: .9rem; }
  .mark span { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
