/* lopobae.com. Colours are the Teras tokens (web/lib/teras.ts); logo colours stay in the logo (brand/README.md). */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --teras-background: #FBF6EA;
  --teras-card: #FFFFFF;
  --teras-text: #1F2A22;
  --teras-secondary-text: #5C5A50;
  --teras-action: #214E34;
  --teras-on-action: #FFFFFF;
  --teras-link: #1C6470;
  --teras-divider: #EDE6D3;
  /* Metrics (ui-standard §2 #13 and §3.10): the smallest target for a control or a standalone link, and the card
     radius (cardRadius, 20). */
  --teras-target-min: 48px;
  --teras-card-radius: 1.25rem;
  --logo-navy: #1F456E; --logo-teal: #52B2BF; --logo-coral: #FF6F61; --logo-forest: #214E34;
  --logo-head: #F4E9D4; --logo-tile: #FFFCF8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teras-background: #0E100D;
    --teras-card: #1A1D18;
    --teras-text: #F3EFE4;
    --teras-secondary-text: #B3AE9F;
    --teras-action: #7CC796;
    --teras-on-action: #0E100D;
    --teras-link: #7CCAD4;
    --teras-divider: #2C2F28;
  }
  /* Dark backgrounds use the monochrome logo (brand voice rules). */
  .wordmark path { fill: var(--teras-text); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--teras-background);
  color: var(--teras-text);
  font: 1.0625rem/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, footer { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }
.hero { padding: 4rem 0 2rem; text-align: center; }
.wordmark { width: min(14rem, 60vw); height: auto; }
.navy { fill: var(--logo-navy); } .teal { fill: var(--logo-teal); } .coral { fill: var(--logo-coral); }
.forest { fill: var(--logo-forest); } .head { fill: var(--logo-head); } .tile { fill: var(--logo-tile); }
h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.2; font-weight: 800; margin: 1.5rem 0 1rem; text-wrap: balance; }
h2 { font-size: 1.375rem; line-height: 1.3; font-weight: 700; margin: 0 0 .75rem; }
.lead { font-size: 1.1875rem; color: var(--teras-secondary-text); margin: 0 auto; max-width: 32rem; }
.lead strong { color: var(--teras-action); }
section { padding: 2rem 0; border-top: 1px solid var(--teras-divider); }
p { margin: 0 0 1rem; }
.note { color: var(--teras-secondary-text); font-size: .9375rem; }
.launch { text-align: center; }
/* [hidden] must win until the script has a value, so display is set only when shown. */
.countdown { grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.25rem 0; }
.countdown:not([hidden]) { display: grid; }
.countdown div { background: var(--teras-card); border-radius: var(--teras-card-radius); padding: .875rem .25rem; }
.countdown span { display: block; font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { color: var(--teras-secondary-text); font-size: .875rem; }
.after { font-weight: 700; font-size: 1.1875rem; }
.loop { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: step; }
.loop li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .75rem; padding: .625rem 0; }
.loop li::before {
  content: counter(step); grid-row: span 2; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--teras-action); color: var(--teras-on-action);
}
.loop b { font-weight: 700; }
.loop span { color: var(--teras-secondary-text); }
.facts { margin: 0; padding: 1rem 1.25rem 1rem 2.25rem; background: var(--teras-card); border-radius: var(--teras-card-radius); }
.facts li + li { margin-top: .5rem; }
a { color: var(--teras-link); }
.button {
  display: inline-flex; align-items: center; min-height: var(--teras-target-min); padding: .75rem 1.5rem; border-radius: 999px;
  background: var(--teras-action); color: var(--teras-on-action); font-weight: 700; text-decoration: none;
}
a:focus-visible { outline: 3px solid var(--teras-link); outline-offset: 3px; }
footer { padding: 2rem 1rem 3rem; border-top: 1px solid var(--teras-divider); color: var(--teras-secondary-text); font-size: .875rem; text-align: center; }
footer p { margin: .25rem 0; }
.mark { width: 3rem; height: 3rem; margin-bottom: .5rem; }

/* Text pages: /privasi, /ketentuan, /bantuan and their English versions (#835). */
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; }
.site-nav a { color: var(--teras-text); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; min-height: var(--teras-target-min); }
.site-nav img { width: 2rem; height: 2rem; }
.site-nav .lang { font-weight: 600; color: var(--teras-link); text-decoration: underline; }
.draft-banner {
  margin: 0 0 1.5rem; padding: .875rem 1rem; border-radius: .75rem; border: 2px dashed var(--teras-secondary-text);
  background: var(--teras-card); font-weight: 700;
}
.draft-banner span { display: block; font-weight: 400; color: var(--teras-secondary-text); font-size: .9375rem; }
.doc h1 { margin: .5rem 0 .25rem; }
.doc .meta { color: var(--teras-secondary-text); font-size: .9375rem; margin-bottom: 1.5rem; }
.doc h2 { margin-top: 2rem; }
.doc h3 { margin: 1.25rem 0 .5rem; }
.doc ul, .doc ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li + li { margin-top: .375rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .9375rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .5rem .625rem; border-bottom: 1px solid var(--teras-divider); }
.doc th { font-weight: 700; }
.doc .slot { background: var(--teras-card); border: 1px dashed var(--teras-secondary-text); border-radius: .375rem; padding: 0 .375rem; font-weight: 700; }
.doc .toc { background: var(--teras-card); border-radius: var(--teras-card-radius); padding: 1rem 1.25rem 1rem 2.25rem; }
.page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; margin: .5rem 0; }
.page-links a { color: var(--teras-link); }

/* Text pages after ui-reviewer (#921). */
:focus-visible { outline: 3px solid var(--teras-link); outline-offset: 3px; }
.site-nav { flex-wrap: wrap; }
header.doc { padding-bottom: 0; }
.doc { overflow-wrap: break-word; }
.doc h2, .doc h3 { text-wrap: balance; }
.doc p, .doc li { text-wrap: pretty; }
.doc h3 { font-size: 1.1875rem; }
.doc .slot { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Third review of #921 (finding 7): standalone links are inline-block, not inline-flex, so a link with a lang span
   inside wraps as one line of text instead of splitting into columns; padding keeps the 48 px target as text grows.
   Links inside a sentence get no 48 px target (WCAG 2.5.8 inline exception; orchestrator, 14 Nov 22.40 WIB). */
.doc .toc a, .page-links a { display: inline-block; min-height: var(--teras-target-min); padding-block: .75rem; overflow-wrap: anywhere; }
.draft-note { font-weight: 700; }
.doc table.processors td:first-child { font-weight: 700; }
@media (max-width: 35em) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc tr { background: var(--teras-card); border-radius: var(--teras-card-radius); padding: .75rem 1rem; margin-bottom: .5rem; border: 0; }
  .doc td { border: 0; padding: .125rem 0; }
  .doc td:first-child { font-weight: 400; }
  .doc table.processors td:first-child { font-weight: 700; }
  /* The cell is already announced with its column header (role="cell"), so the visible label is hidden from
     screen readers with empty alt text; the first declaration is the fallback for browsers without the "/" syntax. */
  .doc td[data-label]::before { content: attr(data-label); content: attr(data-label) / ""; display: block; font-weight: 700; font-size: .875rem; color: var(--teras-secondary-text); }
}
@media (prefers-contrast: more) {
  :root { --teras-text: #0B120D; --teras-secondary-text: #3D3B33; --teras-action: #163823; --teras-link: #114650; --teras-divider: #D6CDB4; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --teras-text: #FFFFFF; --teras-secondary-text: #D6D1C3; --teras-action: #9BE0B2; --teras-link: #A3E3EA; --teras-divider: #454A40; }
}
.doc .toc a { overflow-wrap: anywhere; }
@media (max-width: 20em) { .doc .toc { padding-left: 1.75rem; } }

/* Second review of #921: the header keeps the page gutter on phones, contact links get a 48 px target (the Android 48 dp rule, orchestrator 14 Nov 17.05), and a
   focusable table shows its focus ring. */
header.doc { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }
.doc .contact a { display: inline-block; min-height: var(--teras-target-min); padding-block: .75rem; overflow-wrap: anywhere; }
.doc table:focus-visible { outline: 3px solid var(--teras-link); outline-offset: 3px; }

/* Landing page sections (more features and app screens, Dec 2026). Screens are WebP from the App Store shots (#1046,
   invented data) and the real staff page rendered with invented data; all served from this origin (img-src 'self'). */
main.landing { max-width: 64rem; }
.landing > section, .landing > .hero, .landing > .top-nav { max-width: 40rem; margin-left: auto; margin-right: auto; }
.top-nav { display: flex; justify-content: flex-end; padding-top: .5rem; }
.top-nav .lang { display: inline-block; min-height: var(--teras-target-min); padding-block: .75rem; font-weight: 600; }
.landing .hero { padding-top: 1.5rem; }
.promise { margin: 1.5rem 0 0; font-weight: 700; color: var(--teras-secondary-text); }
.promise + h1 { margin-top: .5rem; }
.landing h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 700; margin: 0 0 .375rem; }

/* A phone screen: the screenshot inside a rounded frame drawn in CSS (no device artwork). */
.phone { margin: 0; }
.phone img {
  display: block; width: 100%; height: auto; border-radius: 1.75rem;
  border: 6px solid var(--teras-text); background: var(--teras-card);
}
.phone figcaption { margin-top: .75rem; font-size: .9375rem; color: var(--teras-secondary-text); }
.phone figcaption b { color: var(--teras-text); }
.hero-phone { width: min(17rem, 72vw); margin: 2rem auto 0; }

/* Three screens: a row that scrolls sideways on phones (the page itself never scrolls sideways), three columns wider up. */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(15rem, 68vw); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; margin: 1.5rem -.25rem 0;
  overscroll-behavior-x: contain;
}
.shots > * { scroll-snap-align: start; }
.shots:focus-visible { outline: 3px solid var(--teras-link); outline-offset: 3px; }
@media (min-width: 44em) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
}

/* A screen beside its words; stacked on phones. */
.feature-split { display: grid; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.feature-split .phone { width: min(13rem, 60vw); margin: 0 auto; }
@media (min-width: 36em) {
  .feature-split { grid-template-columns: 13rem 1fr; }
  .feature-split .phone { width: 100%; }
}
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 36em) { .cards { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.cards li { border-top: 2px solid var(--teras-divider); padding: 1rem 0 .25rem; }
.cards p { margin: 0; color: var(--teras-secondary-text); }
.feature-split .facts { margin-top: .5rem; }
.more a { display: inline-block; min-height: var(--teras-target-min); padding-block: .75rem; font-weight: 600; }
.facts + .more { margin-top: .5rem; }
@media (prefers-reduced-motion: no-preference) { .shots { scroll-behavior: smooth; } }
@media (prefers-color-scheme: dark) { .phone img { border-color: var(--teras-secondary-text); } }

/* Wide screens (design pass, 1 Dec): sections with screens widen to 60rem while text keeps its 40rem measure;
   the hero turns into words beside the Beranda screen, left aligned; the four feature notes run in two columns. */
@media (min-width: 56em) {
  /* One left edge for every section; text inside keeps a 40rem measure. */
  .landing > section, .landing > .hero, .landing > .top-nav { max-width: 60rem; }
  .landing > section > p, .landing > section > .facts, .landing > section > .loop { max-width: 40rem; }
  .landing .launch { text-align: left; }
  .landing .countdown { max-width: 32rem; }
  .landing .countdown div { text-align: center; }
  .landing .hero {
    display: grid; grid-template-columns: 1fr 18rem; column-gap: 4rem; align-items: center;
    text-align: left; padding: 2rem 0 4rem;
  }
  .landing .hero .wordmark { width: 11rem; }
  .landing .hero h1 { font-size: 3.25rem; line-height: 1.1; letter-spacing: -.01em; }
  .landing .hero .lead { margin: 0; font-size: 1.3125rem; }
  .landing .hero-phone { width: 100%; margin: 0; }
  .media .shots { column-gap: 2.5rem; }
  .media .feature-split { grid-template-columns: 17rem 1fr; column-gap: 4rem; }
  .media .feature-split > div { max-width: 34rem; }
  .cards { column-gap: 3rem; }
}

/* The everyday chores row in Kenapa Lopo: Lopo's own drawn icons ("ubin", brand version, site only), decorative. */
.chores { display: grid; grid-template-columns: repeat(8, minmax(0, 3rem)); gap: .375rem; margin: 0 0 1rem; }
.chores img { width: 100%; height: auto; border-radius: 28%; box-shadow: inset 0 0 0 1px var(--teras-divider); }
@media (prefers-color-scheme: dark) { .chores img { box-shadow: none; } }

/* The launch date, countdown and the one action sit in the hero, under the lead (Mobbin benchmark, 1 Dec): a visitor
   sees what to do without scrolling. Smaller than the old standalone section so the hero stays one screen. */
.hero .launch { margin-top: 1.5rem; }
.hero .launch h2 { font-size: 1.0625rem; margin-bottom: .5rem; }
.hero .countdown { margin: .5rem auto 1rem; max-width: 22rem; gap: .375rem; }
.hero .countdown div { padding: .5rem .25rem; }
.hero .countdown span { font-size: clamp(1.375rem, 6vw, 1.75rem); }
.hero .cta { margin: 0 0 .75rem; }
.hero .launch .note { margin: 0; }
@media (min-width: 56em) { .landing .hero .countdown { margin-left: 0; } }

/* Questions: native disclosure, no script. Each summary is a full-width 44 pt target. */
.faq details { border-top: 1px solid var(--teras-divider); }
.faq details:last-of-type { border-bottom: 1px solid var(--teras-divider); }
.faq summary {
  min-height: var(--teras-target-min); padding: .75rem 0; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; font-size: 1.375rem; font-weight: 400; color: var(--teras-secondary-text); }
.faq details[open] summary::after { content: "\2212" / ""; }
.faq summary:focus-visible { outline: 3px solid var(--teras-link); outline-offset: 3px; }
.faq details p { color: var(--teras-secondary-text); max-width: 40rem; }

/* Launch state (from 6 Jan 2027): the App Store button replaces the countdown once index.html carries #store. */
.store { margin: 1.25rem 0 .5rem; }
.store img { display: block; height: 3.25rem; width: auto; }

/* Scenes (ChatGPT illustrations, brand/guide.md §5, prompts in site/docs/scenes.md): wide, cream-ground pictures with
   no text. Not used until the images are approved; markup in site/docs/scenes.md. */
.scene { margin: 1.5rem 0; }
.scene img { display: block; width: 100%; height: auto; border-radius: 1rem; }

/* One orchestrated moment: on first load the hero's words settle in, then the Beranda screen rises into place.
   Nothing else on the page moves by itself. Off entirely under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .landing .hero-text > * { animation: settle .6s cubic-bezier(.2, .7, .2, 1) both; }
  .landing .hero-text > :nth-child(2) { animation-delay: .08s; }
  .landing .hero-text > :nth-child(3) { animation-delay: .16s; }
  .landing .hero-text > :nth-child(4) { animation-delay: .24s; }
  .landing .hero-text > :nth-child(5) { animation-delay: .32s; }
  .landing .hero-phone { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .3s both; }
  .store:not([hidden]) { animation: settle .5s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes settle { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(2rem) rotate(-1.5deg); } to { opacity: 1; transform: none; } }

/* Footer (Dec 2026): every page links the same pages, the contact address, Instagram and the other language. */
footer .page-links, footer .contact { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.25rem; }
footer .page-links a, footer .contact a { display: inline-flex; align-items: center; min-height: var(--teras-target-min); }
footer .page-links a[aria-current="page"] { color: var(--teras-text); text-decoration: none; font-weight: 700; }
footer .contact { margin: 0 0 .75rem; }

/* Fitur: the full list of what v1 does, in the text-page layout; the landing page keeps four of these. */
.doc.features .lead { margin: 0 0 1rem; }
.doc.features section { padding: 1.75rem 0 1rem; }
.doc.features h2 { margin: 0 0 .5rem; }
.doc.features .cards { padding-left: 0; grid-template-columns: 1fr; gap: 0; }
.doc.features .cards li { margin: 0; padding: .875rem 0; border-top: 1px solid var(--teras-divider); }
.doc.features .cards h3 { margin: 0 0 .25rem; font-size: 1.0625rem; }
@media (min-width: 36em) {
  .doc.features .cards li { display: grid; grid-template-columns: 11rem 1fr; column-gap: 1.5rem; }
  .doc.features .cards h3 { margin: 0; }
}
