/* Self-hosted Plus Jakarta Sans (latin subsets): no third-party request,
   page renders identically on strict networks. Chosen because it is an
   Indonesian-designed typeface, matching the audience and the warm brand. */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("fonts/plus-jakarta-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800;
  font-display: swap; src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2");
}

/* new.ai.id — design tokens from the Coolors palette.
   Roles: brick = ink/brand, cream = paper, mint = section ground,
   coral = single deliberate accent, sage = rare highlight. */
:root {
  --brick: #A44A3F;
  --cream: #FFFFFF;
  --mint: #CBDFBD;
  --coral: #F19C79;
  --sage: #D4E09B;
  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-input: 12px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--brick);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

section { scroll-margin-top: 84px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 20px; font-weight: 700; }

.section-sub { font-size: 18px; max-width: 620px; margin-bottom: 40px; }
.section-sub.left { margin-left: 0; }

a { color: inherit; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--brick); color: var(--cream);
  padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 200;
}
.skip:focus { left: 0; }

/* Buttons: 14px radius is the system choice (not pill-everything).
   Primary = brick on cream (5.2:1, AA). */
.btn {
  display: inline-block; font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: var(--radius-btn);
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: var(--font);
  transition: transform .18s ease-out, box-shadow .18s ease-out, background .18s;
  min-height: 52px;
}
.btn-small { padding: 10px 20px; font-size: 15px; min-height: 44px; }
.btn-primary { background: var(--brick); color: var(--cream); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(164,74,63,.25); }
.btn-secondary { background: transparent; color: var(--brick); border-color: var(--brick); }
.btn-secondary:hover { background: rgba(164,74,63,.08); }
.btn-light { background: var(--cream); color: var(--brick); }
.btn-light:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: var(--brick); }
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(164,74,63,.25); }
.btn-coral:disabled { opacity: .7; cursor: wait; transform: none; box-shadow: none; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* NAV — the single glass surface on the page (dose cap respected):
   blur keeps links readable over the hero art. */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .25s, box-shadow .25s;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 28px;
}
.nav.scrolled { background: rgba(255,255,255,.88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--mint); }
.wordmark { font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 9px; }
.wordmark-mark { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.wordmark span { color: var(--coral); }
.wordmark-light span { color: var(--coral); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--brick); border-radius: 2px; margin: 5px 0; }
/* THEME TOGGLE — sun/moon swap handled by [data-theme] below. */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--brick); background: transparent; color: var(--brick);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s;
}
.theme-toggle:hover { background: rgba(164,74,63,.08); transform: translateY(-2px); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 96px 0 110px; text-align: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; }
.blob-a { width: 420px; height: 420px; background: var(--sage); top: -120px; left: -100px; }
.blob-b { width: 380px; height: 380px; background: var(--mint); bottom: -140px; right: -80px; }
.hero-inner { position: relative; }
.wordmark-small { font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.wordmark-small span { color: var(--coral); }
.phrase {
  font-size: clamp(52px, 9vw, 104px); font-weight: 800;
  min-height: 1.35em; letter-spacing: -0.02em;
}
.brush { display: block; width: min(320px, 70%); height: 22px; margin: 2px auto 0; overflow: visible; }
.phrase-static { font-size: clamp(28px, 5vw, 44px); font-weight: 800; }
/* Eyebrow is plain small-caps text (it carries the date, a fact the H1 lacks),
   not a pill badge duplicating the headline. */
.eyebrow {
  margin-top: 26px; font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.acquire-hero { margin-top: 14px; font-size: 14px; }
.acquire-hero a { font-weight: 700; text-underline-offset: 3px; }
.lede { max-width: 600px; margin: 18px auto 0; font-size: 19px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* COUNTDOWN — mint band; cream cards carry the digits (brick on cream = AA). */
.countdown-band { background: var(--mint); padding: 84px 0; text-align: center; }
.countdown-band .section-sub { margin-left: auto; margin-right: auto; }
.cards { display: flex; justify-content: center; align-items: stretch; gap: 14px; flex-wrap: wrap; }
.cd-card {
  background: var(--cream); border: 2px solid var(--brick);
  border-radius: var(--radius-card); padding: 22px 10px; min-width: 118px;
  box-shadow: 6px 6px 0 var(--brick);
}
.cd-num { display: block; font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.cd-num.tick { animation: tick .18s ease-out; }
@keyframes tick { 50% { transform: scale(1.08); } }
.cd-label { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cd-sep { font-size: 44px; font-weight: 800; color: var(--coral); align-self: center; }
.launched h3 { font-size: 34px; margin-bottom: 10px; }
.launched p { margin-bottom: 22px; }

/* FEATURES — asymmetric grid: the flagship job gets the wide card (R-14). */
.features { padding: 96px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  border: 2px solid var(--mint); border-radius: var(--radius-card);
  padding: 28px; background: rgba(255,255,255,.25);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(164,74,63,.12); }
.feat-wide { grid-column: 1 / -1; display: flex; gap: 26px; align-items: center; background: var(--sage); border-color: var(--sage); }
.feat-wide h3 { font-size: 26px; margin-bottom: 8px; }
.feat h3 { margin: 14px 0 8px; }
.feat p { font-size: 16px; }
.feat-icon { width: 52px; height: 52px; color: var(--brick); flex-shrink: 0; }
.feat-wide .feat-icon { width: 72px; height: 72px; }

/* HOW — a hand-drawn-feel timeline, not round-icon steps. */
.how { padding: 40px 0 96px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 26px; left: 4%; right: 4%; height: 4px;
  background: var(--coral); border-radius: 4px; opacity: .85;
}
.steps li { padding: 0 28px; position: relative; }
.step-no {
  display: inline-block; font-size: 15px; font-weight: 800; letter-spacing: .1em;
  background: var(--cream); border: 3px solid var(--brick); border-radius: 12px;
  padding: 8px 14px; margin-bottom: 18px; position: relative;
}
.steps h3 { margin-bottom: 8px; }

/* PRICING — three tiers, but the middle one earns emphasis with a brick fill
   (it serves the core SMB audience), not a capsule badge. Prices honestly TBD. */
.pricing { padding: 40px 0 96px; text-align: center; }
.pricing .section-sub { margin-left: auto; margin-right: auto; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; text-align: left; }
.tier {
  border: 2px solid var(--brick); border-radius: var(--radius-card);
  padding: 32px 28px; background: rgba(255,255,255,.25);
  display: flex; flex-direction: column; gap: 10px;
}
.tier-hot { background: var(--brick); color: var(--cream); transform: scale(1.04); box-shadow: 8px 8px 0 rgba(164,74,63,.22); }
.tier-flag { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.tier-for { font-size: 16px; }
.tier-price { font-size: 26px; font-weight: 800; margin: 6px 0 12px; }
.tier .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.faq { padding: 40px 0 96px; }
.faq h2 { text-align: center; margin-bottom: 36px; }
.acc-item { border-bottom: 2px solid var(--mint); }
.acc-btn {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-family: var(--font); font-size: 18px; font-weight: 700;
  color: var(--brick); text-align: left; min-height: 44px;
}
.acc-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: var(--coral); border-radius: 2px;
}
.acc-icon::before { left: 0; top: 8px; width: 18px; height: 3px; }
.acc-icon::after { left: 7.5px; top: 0; width: 3px; height: 18px; transition: transform .2s; }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease-out; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > p { overflow: hidden; min-height: 0; }
.acc-panel p { padding: 0 4px; max-width: 640px; }
.acc-item.open .acc-panel p { padding-bottom: 22px; }
.acc-panel a { font-weight: 700; }

/* NOTIFY — full brick panel; coral button carries brick text on the dark ground. */
.notify { padding: 20px 0 110px; }
.notify-panel {
  background: var(--brick); color: var(--cream);
  border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.notify-panel h2 { color: var(--cream); }
.notify-panel > p { font-size: 18px; }
#leadForm { display: grid; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 14px 18px; font-size: 16px; font-family: var(--font);
  border: 2px solid transparent; border-radius: var(--radius-input);
  background: var(--cream); color: var(--brick); min-height: 52px;
}
.field input::placeholder { color: rgba(164,74,63,.55); }
.form-error { font-weight: 600; }
.form-note { font-size: 14px; }
.form-success h3 { font-size: 30px; margin-bottom: 10px; color: var(--cream); }

/* FOOTER */
.footer { background: var(--brick); color: var(--cream); padding: 56px 0 36px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.tagline { font-size: 15px; margin-top: 6px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.acquire { font-size: 14px; border-top: 1px solid rgba(246,244,210,.25); padding-top: 24px; }
.acquire a { font-weight: 700; }
.copy { font-size: 14px; margin-top: 8px; }

/* SCROLL REVEAL — subtle, single motion language (MOTION 2). */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .notify-panel { grid-template-columns: 1fr; gap: 32px; }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tier-hot { transform: none; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { left: 29px; right: auto; top: 3%; bottom: 3%; width: 4px; height: auto; }
  .steps li { padding: 0 0 0 78px; }
  .step-no { position: absolute; left: 0; top: -2px; width: 58px; padding: 8px 0; text-align: center; margin: 0; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 2px solid var(--mint); padding: 8px 24px 16px; margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--mint); min-height: 44px; }
  .nav-toggle { display: block; }
  .nav .btn-small { display: none; }
  .hero { padding: 64px 0 80px; }
  .cd-card { min-width: 0; flex: 1 1 20%; padding: 16px 4px; box-shadow: 4px 4px 0 var(--brick); }
  .cd-num { font-size: 34px; }
  .cd-label { font-size: 10px; letter-spacing: .06em; }
  .cd-sep { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-wide { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cd-num.tick { animation: none; }
  .btn, .feat { transition: none; }
}

/* DARK THEME — manual toggle in the header; default follows the OS/phone
   setting via prefers-color-scheme (see the head script). Strategy: swap the
   ink/paper tokens, then pin the few surfaces that must stay light (mint
   band, sage card) or stay brand-brick (footer, lead panel). */
[data-theme="dark"] {
  color-scheme: dark;
  --brick: #F6F4D2;
  --cream: #171210;
}
[data-theme="dark"] .blob { opacity: .22; }
[data-theme="dark"] .nav.scrolled { background: rgba(23,18,16,.88); box-shadow: 0 1px 0 rgba(246,244,210,.14); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(246,244,210,.08); }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .btn-coral { color: #171210; }
[data-theme="dark"] .btn-primary:hover, [data-theme="dark"] .btn-coral:hover { box-shadow: 0 6px 0 rgba(246,244,210,.25); }
[data-theme="dark"] .btn-secondary:hover { background: rgba(246,244,210,.08); }
[data-theme="dark"] .countdown-band { color: #171210; }
[data-theme="dark"] .countdown-band .cd-card { color: #F6F4D2; box-shadow: 6px 6px 0 rgba(246,244,210,.25); }
[data-theme="dark"] .feat { background: rgba(246,244,210,.05); border-color: rgba(246,244,210,.16); }
[data-theme="dark"] .feat:hover { box-shadow: 0 10px 24px rgba(0,0,0,.45); }
[data-theme="dark"] .feat-wide { background: var(--sage); border-color: var(--sage); color: #171210; }
[data-theme="dark"] .feat-wide .feat-icon { color: #A44A3F; }
[data-theme="dark"] .tier { background: rgba(246,244,210,.05); }
[data-theme="dark"] .tier-hot { background: #F6F4D2; border-color: #F6F4D2; color: #171210; box-shadow: 8px 8px 0 rgba(246,244,210,.2); }
[data-theme="dark"] .footer, [data-theme="dark"] .notify-panel { background: #A44A3F; color: #F6F4D2; }
[data-theme="dark"] .notify-panel h2, [data-theme="dark"] .form-success h3 { color: #F6F4D2; }
[data-theme="dark"] .field input::placeholder { color: rgba(246,244,210,.5); }
