/*
 * Luwara landing.
 *
 * Visual language (direction taken from Resend, not copied): pure-black canvas,
 * hairline structure, 12 to 16px radii, dense table rows with small status
 * pills, one soft light source behind the hardware, and a very large serif
 * display line against Inter body text.
 *
 * Two themes, one component set. Every colour is a role declared once per
 * theme, so a component is written once and stays correct in both.
 *
 * Measured contrast (both themes, checked with the WCAG formula):
 *   dark  ink    #F3F3F3 on #000000   18.8:1
 *   dark  body   #A9AEB0 on #000000    9.4:1
 *   dark  soft   #8B9092 on #000000    6.5:1
 *   dark  soft   #8B9092 on #0B0B0B    6.1:1
 *   dark  ok     #4ADE80 on its tint  10.2:1
 *   dark  edge   #5F5F5F on #000000    3.3:1  (control edges only)
 *   light ink    #0B0B0B on #FFFFFF   19.7:1
 *   light body   #52585A on #FFFFFF    7.2:1
 *   light soft   #5C6264 on #FFFFFF    5.9:1
 *   light soft   #5C6264 on #FAFAFA    5.7:1
 *   light ok     #0F7B45 on its tint   4.9:1
 *   light edge   #6E6E6E on #FFFFFF    5.0:1  (control edges only)
 * Section hairlines are decorative (1.3:1) and never carry meaning alone.
 */

/* ---------- type ---------- */

/* Inter variable (latin + latin-ext, OFL). One file per range serves every
   weight, so a page loads at most two font files for body text. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  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-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* Fraunces variable (latin + latin-ext, OFL), weight 300 to 600 and optical
   size 9 to 144. Headlines only: an editorial serif is what keeps this page
   from reading like every other dashboard marketing site. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-var-latin.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-var-latin-ext.woff2') format('woff2');
  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-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallbacks: a swap changes the face, not the line breaks. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Segoe UI'), local('Helvetica Neue'), local('Arial');
  size-adjust: 103%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 101%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- tokens ---------- */

:root {
  --font: 'Inter', 'Inter Fallback', 'Segoe UI', system-ui, sans-serif;
  --display: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  --mono: 'Cascadia Mono', 'Consolas', 'SF Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --bar: 60px;
  --hair: 1px;
}

html[data-theme='dark'] {
  --canvas: #000000;
  --panel: #0b0b0b;
  --raised: #161616;
  --raised-hover: #1e1e1e;
  --ink: #f3f3f3;
  --body: #a9aeb0;
  --soft: #8b9092;
  --line: #1e1e1e;
  --line-2: #2a2a2a;
  --edge-control: #5f5f5f;
  --solid: #f3f3f3;
  --on-solid: #0a0a0a;
  --focus: #dfff4f;
  --accent: #dfff4f;
  --ok: #4ade80;
  --ok-tint: rgba(74, 222, 128, 0.12);
  --warn: #f0c674;
  --warn-tint: rgba(240, 198, 116, 0.12);
  --danger: #ff8f8f;
  --device: #1a1a1a;
  --device-2: #2a2a2a;
  --light-a: rgba(255, 255, 255, 0.1);
  --light-b: rgba(255, 255, 255, 0.02);
  --halo: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

html[data-theme='light'] {
  --canvas: #ffffff;
  --panel: #fafaf8;
  --raised: #f4f4f1;
  --raised-hover: #ecece8;
  --ink: #0b0b0b;
  --body: #52585a;
  --soft: #5c6264;
  --line: #e4e4e0;
  --line-2: #d5d5d0;
  --edge-control: #6e6e6e;
  --solid: #0b0b0b;
  --on-solid: #ffffff;
  --focus: #0b0b0b;
  --accent: #dfff4f;
  --accent-ink: #55630b;
  --ok: #0f7b45;
  --ok-tint: rgba(15, 123, 69, 0.09);
  --warn: #8a5300;
  --warn-tint: rgba(138, 83, 0, 0.08);
  --danger: #b4232f;
  --device: #e9e9e4;
  --device-2: #cfcfc8;
  --light-a: rgba(120, 140, 20, 0.12);
  --light-b: rgba(120, 140, 20, 0.02);
  --halo: rgba(20, 22, 15, 0.16);
  color-scheme: light;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 16px);
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}

/* One focus ring for everything, drawn outside the box so it is never clipped
   by an overflow container. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'opsz' 120, 'SOFT' 0, 'WONK' 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

h1 {
  font-size: clamp(2.5rem, 1.3rem + 6.2vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem);
  line-height: 1.04;
}

h3 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r);
  background: var(--solid);
  color: var(--on-solid);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus-visible {
  top: 10px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: var(--hair) solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition:
    background-color 140ms var(--ease),
    border-color 140ms var(--ease),
    color 140ms var(--ease),
    transform 140ms var(--ease);
}

.btn--lg {
  min-height: 48px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

.btn--solid {
  background: var(--solid);
  color: var(--on-solid);
  border-color: var(--solid);
}

.btn--hair {
  background: transparent;
  color: var(--ink);
  border-color: var(--edge-control);
}

.btn:active {
  transform: translateY(1px);
}

.btn--solid:active {
  background: var(--body);
  border-color: var(--body);
}

.btn--hair:active {
  background: var(--raised);
}

/* Read as a link, behave as a link: inline text with a real underline. */
.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--edge-control);
  text-underline-offset: 3px;
  touch-action: manipulation;
}

.link:active {
  text-decoration-color: currentColor;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--canvas);
  border-bottom: var(--hair) solid transparent;
  transition: border-color 180ms var(--ease);
}

.topbar[data-stuck='true'] {
  border-bottom-color: var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--bar);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  min-height: 44px;
  text-decoration: none;
  touch-action: manipulation;
}

.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex: none;
}

.brand__name {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.topbar__nav {
  display: none;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__cta,
.topbar__actions .btn--hair {
  display: none;
}

.theme,
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: var(--hair) solid var(--edge-control);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-btn {
  padding: 0 14px;
}

.theme:active,
.menu-btn:active {
  background: var(--raised);
}

/* The sun/moon is drawn from one element: a disc, with a mask cut for the
   crescent in dark mode. Both themes stay a single 16px glyph. */
.theme__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -4px -2px 0 0 var(--canvas);
}

html[data-theme='light'] .theme__icon {
  box-shadow: none;
}

@media (min-width: 760px) {
  .topbar__inner {
    gap: 24px;
  }

  .topbar__nav {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .topbar__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    color: var(--body);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    touch-action: manipulation;
  }

  .topbar__nav a:active {
    background: var(--raised);
    color: var(--ink);
  }

  .menu-btn {
    display: none;
  }

  .topbar__actions .btn--hair {
    display: inline-flex;
  }
}

@media (min-width: 980px) {
  .topbar__cta {
    display: inline-flex;
  }
}

/* The phone menu is a labelled panel under the bar: no icon school, no
   hamburger guesswork. Escape closes it and focus returns to the button. */
@media (max-width: 759px) {
  .topbar__inner {
    flex-wrap: wrap;
    row-gap: 0;
    padding-bottom: 0;
  }

  .topbar__nav {
    order: 4;
    flex-basis: 100%;
    width: 100%;
    padding-block: 4px 10px;
    border-top: var(--hair) solid var(--line);
    margin-top: 4px;
  }

  .topbar[data-menu='open'] .topbar__nav {
    display: grid;
    gap: 2px;
  }

  .topbar__nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 8px;
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    touch-action: manipulation;
  }

  .topbar__nav a:active {
    background: var(--raised);
  }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(28px, 5vw, 56px) clamp(36px, 6vw, 72px);
}

.hero__grid {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: var(--hair) solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  touch-action: manipulation;
}

/* The badge is the one accent on the screen: a lime dot and its hairline. */
.announce__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgb(223 255 79 / 14%);
  flex: none;
}

.announce:active {
  border-color: var(--accent);
}

.hero h1 {
  margin-top: 20px;
  max-width: 16ch;
}

.hero__fade {
  display: block;
  color: var(--soft);
}

.lede {
  margin-top: 18px;
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
}

.hero__cta,
.tutup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero__note,
.tutup__note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--soft);
}

/* ---------- product scene ---------- */

.scene {
  margin: 0;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

.scene__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1500px;
  perspective-origin: 50% 42%;
  height: clamp(240px, 62vw, 340px);
  isolation: isolate;
}

/* THE one gradient on this page. Reason: a single soft light source behind
   the hardware is what makes a laptop and a phone read as physical objects
   instead of flat cut-outs. It is behind the product only, never behind text,
   and nothing else on the page uses a gradient. */
.scene__light {
  position: absolute;
  inset: -14% 0 6%;
  background: radial-gradient(
    56% 52% at 50% 34%,
    var(--light-a) 0%,
    var(--light-b) 44%,
    transparent 72%
  );
  z-index: 0;
  pointer-events: none;
}

.scene__ground {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 78%;
  height: 18%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--halo), transparent);
  z-index: 1;
  pointer-events: none;
}

.laptop {
  position: relative;
  width: min(80%, 640px);
  margin-bottom: 12%;
  z-index: 2;
  transform-style: preserve-3d;
}

.laptop__lid {
  position: relative;
  width: 92%;
  margin-inline: auto;
  padding: 2% 2% 2.4%;
  border-radius: 10px 10px 3px 3px;
  background: var(--device);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
  transform-origin: 50% 100%;
  transform: rotateX(-7deg);
}

.laptop__bezel {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  background: #080808;
  overflow: hidden;
}

.laptop__cam {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--device-2);
  z-index: 2;
}

.laptop__screen {
  position: absolute;
  inset: 0;
  background: #000000;
}

.laptop__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.laptop__base {
  position: relative;
  height: 0;
  transform: rotateX(50deg);
  transform-origin: 50% 0;
  z-index: 3;
}

.laptop__deck {
  position: absolute;
  top: 0;
  left: -2%;
  width: 104%;
  height: clamp(22px, 3vw, 40px);
  border-radius: 0 0 10px 10px;
  background: var(--device);
  clip-path: polygon(2.5% 0, 97.5% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
}

.laptop__keys {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 16%;
  height: 38%;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--device-2) 0 8px, transparent 8px 10px);
  opacity: 0.75;
}

.laptop__trackpad {
  position: absolute;
  left: 44%;
  right: 44%;
  top: 66%;
  height: 26%;
  border-radius: 2px;
  background: var(--device-2);
}

.phone {
  position: absolute;
  right: 1%;
  bottom: 2%;
  width: min(24%, 152px);
  z-index: 4;
  transform: translateZ(36px);
}

.phone__frame {
  position: relative;
  padding: 3%;
  border-radius: 18px;
  background: var(--device);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 8%),
    0 18px 30px -20px rgb(0 0 0 / 75%);
}

.phone__screen {
  position: relative;
  aspect-ratio: 390 / 710;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone__island {
  position: absolute;
  top: 1.4%;
  left: 50%;
  width: 30%;
  height: 2.4%;
  min-height: 6px;
  margin-left: -15%;
  border-radius: var(--r-pill);
  background: #050505;
}

.phone__btn {
  position: absolute;
  width: 2px;
  border-radius: 2px;
  background: var(--device-2);
}

.phone__btn--power {
  right: -2px;
  top: 24%;
  height: 12%;
}

.phone__btn--vol {
  left: -2px;
  top: 20%;
  height: 9%;
}

/* One slow drift, 30 seconds each way. It stops completely under
   prefers-reduced-motion, and it never carries information. */
@media (prefers-reduced-motion: no-preference) {
  .laptop,
  .phone {
    animation: drift 30s var(--ease) infinite alternate;
  }

  @keyframes drift {
    from {
      transform: rotateX(calc(var(--tilt-x) - 1.2deg)) rotateY(calc(var(--tilt-y) - 1.6deg));
    }

    to {
      transform: rotateX(calc(var(--tilt-x) + 1.2deg)) rotateY(calc(var(--tilt-y) + 1.6deg));
    }
  }

  .phone {
    animation-name: drift-phone;
  }

  @keyframes drift-phone {
    from {
      transform: translateZ(36px) rotateX(calc(var(--tilt-x) - 1.2deg))
        rotateY(calc(var(--tilt-y) - 1.6deg));
    }

    to {
      transform: translateZ(36px) rotateX(calc(var(--tilt-x) + 1.2deg))
        rotateY(calc(var(--tilt-y) + 1.6deg));
    }
  }
}

.scene__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 16px;
}

.switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  width: 100%;
}

.switcher button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--body);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.switcher button[aria-pressed='true'] {
  background: var(--raised);
  color: var(--ink);
}

.switcher button:active {
  background: var(--raised);
  color: var(--ink);
}

.scene__caption {
  font-size: 0.75rem;
  color: var(--soft);
  margin: 0;
}

[data-screen] img {
  transition: opacity 240ms var(--ease);
}

[data-screen] img.is-fading {
  opacity: 0;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    align-items: center;
    gap: clamp(32px, 4vw, 56px);
  }

  .scene__stage {
    height: clamp(320px, 30vw, 430px);
  }

  .switcher {
    width: auto;
  }

  .switcher button {
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 0.875rem;
  }
}

/* ---------- shared section furniture ---------- */

section {
  padding-block: clamp(48px, 6vw, 88px);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.section-head p {
  max-width: 56ch;
  color: var(--body);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.pill--ok {
  background: var(--ok-tint);
  color: var(--ok);
}

.pill--warn {
  background: var(--warn-tint);
  color: var(--warn);
}

.pill--quiet {
  background: var(--raised);
  color: var(--soft);
}

.panel {
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.panel--card {
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: var(--hair) solid var(--line);
}

.panel__title {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.panel__foot {
  padding: 11px 14px;
  border-top: var(--hair) solid var(--line);
  color: var(--soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

.rows {
  margin: 0;
  padding: 4px 14px 12px;
}

.rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 9px;
  border-bottom: var(--hair) solid var(--line);
}

.rows > div:last-child {
  border-bottom: 0;
}

.rows dt {
  color: var(--soft);
  font-size: 0.8125rem;
}

.rows dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.8125rem;
  text-align: right;
}

/* ---------- walkthrough ---------- */

.walk {
  border-top: var(--hair) solid var(--line);
}

.walk__head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.walk__lede {
  max-width: 52ch;
  color: var(--body);
}

.walk__grid {
  display: block;
}

/* The scene holds still while the steps pass it, on every screen size. The
   panel is what changes, so the reader never loses the object they are
   reading about. On a phone the grid is a plain block so the sticky panel has
   room to hold while the steps scroll beneath it. */
.walk__scene {
  position: sticky;
  top: calc(var(--bar) + 4px);
  z-index: 5;
  padding-block: 6px;
  background: var(--canvas);
}

.walk__steps {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.walk__steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  padding: 14px;
  border: var(--hair) solid transparent;
  border-radius: var(--r-lg);
  background: transparent;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease);
}

.walk__steps li h3,
.walk__steps li p {
  grid-column: 2;
}

.walk__steps li p {
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.walk__steps li.is-active {
  border-color: var(--line-2);
  background: var(--panel);
}

.walk__num {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition:
    background-color 200ms var(--ease),
    color 200ms var(--ease);
}

.walk__steps li.is-active .walk__num {
  background: var(--solid);
  color: var(--on-solid);
}

.walk-panel {
  padding: 14px;
}

.walk-panel[hidden] {
  display: none;
}

.conn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: var(--hair) solid var(--line);
}

.conn__tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--raised);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  flex: none;
}

.conn__body {
  display: grid;
  gap: 1px;
  margin-right: auto;
  min-width: 0;
}

.conn__name {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.conn__meta {
  color: var(--soft);
  font-size: 0.75rem;
}

.rows--tight {
  padding: 2px 0 0;
}

.checks {
  display: grid;
  gap: 0;
}

.checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  border-bottom: var(--hair) solid var(--line);
}

.checks li:first-child {
  padding-top: 0;
}

.checks__name {
  color: var(--ink);
  font-size: 0.875rem;
}

.card__label {
  margin-top: 12px;
  color: var(--soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card__label:first-child {
  margin-top: 0;
}

.card__finding {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.card__body {
  margin-top: 4px;
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.55;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Not buttons: this is a picture of the app, and pressing it would promise an
   action the page cannot take. */
.mock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: var(--hair) solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mock-btn--solid {
  background: var(--solid);
  color: var(--on-solid);
}

.mock-btn--hair {
  border-color: var(--edge-control);
  color: var(--ink);
}

@media (min-width: 900px) {
  .walk__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(32px, 4vw, 64px);
  }

  /* Each step gets its own scroll span, so the sticky panel can step through
     them instead of showing all four at once in a short list. */
  .walk__steps {
    order: 1;
    margin-top: 0;
    gap: 0;
  }

  .walk__steps li {
    min-height: 34vh;
    align-content: start;
    border: 0;
    border-bottom: var(--hair) solid var(--line);
    border-radius: 0;
    background: transparent;
    padding-block: 24px;
    opacity: 0.55;
  }

  .walk__steps li.is-active {
    background: transparent;
    opacity: 1;
  }

  .walk__steps li:first-child {
    border-top: var(--hair) solid var(--line);
  }

  .walk__scene {
    order: 2;
    top: calc(var(--bar) + 24px);
  }

  .walk-panel {
    padding: 18px;
  }

  .panel__head {
    padding: 14px 18px;
  }

  .panel__foot {
    padding: 12px 18px;
  }

  .walk__steps li {
    padding: 18px;
    gap: 6px 14px;
  }

  .walk__steps li p {
    font-size: 1rem;
  }
}

/* ---------- rules table ---------- */

.rules {
  border-top: var(--hair) solid var(--line);
}

.table {
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
}

.table__head {
  display: none;
}

.table__row {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-bottom: var(--hair) solid var(--line);
}

.table__row:last-child {
  border-bottom: 0;
}

.table__name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tile {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  border: var(--hair) solid var(--line-2);
  background: var(--raised);
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.table__cell {
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.5;
}

.table__tag {
  display: block;
  margin-bottom: 1px;
  color: var(--soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.table__status {
  display: flex;
  align-items: center;
}

.rules__foot {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--soft);
  font-size: 0.875rem;
}

@media (min-width: 820px) {
  .table__head,
  .table__row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.65fr) minmax(0, 1.35fr) minmax(0, 148px);
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
  }

  .table__head {
    padding-block: 10px;
    background: var(--raised);
    border-bottom: var(--hair) solid var(--line);
  }

  .table__head span {
    color: var(--soft);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .table__tag {
    display: none;
  }

  .table__cell {
    font-size: 0.875rem;
  }

  .table__row {
    padding-block: 15px;
  }
}

/* ---------- what a card holds ---------- */

.isi-kartu {
  border-top: var(--hair) solid var(--line);
}

.isi-kartu__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.isi-kartu__copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.isi-kartu__copy p {
  max-width: 48ch;
  color: var(--body);
}

.isi-kartu__note {
  color: var(--soft);
  font-size: 0.8125rem;
}

.code {
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
  min-width: 0;
}

.code__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: var(--hair) solid var(--line);
}

.code__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-2);
  flex: none;
}

.code__file {
  margin-left: 6px;
  margin-right: auto;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.code__body {
  margin: 0;
  padding: 12px 12px 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--body);
  tab-size: 2;
}

.code__body code {
  display: block;
}

/* Line number and label form two columns, so a long value wraps under itself
   instead of forcing the panel to scroll sideways on a phone. */
.code__body .ln {
  display: grid;
  grid-template-columns: 2.5ch minmax(0, 1fr);
  column-gap: 8px;
  padding-block: 1px;
}

.code__body i {
  color: var(--soft);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  user-select: none;
  text-align: right;
}

.code__body b {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.code__body .ln > span {
  grid-column: 2;
  overflow-wrap: anywhere;
}

.code__body .ln b {
  grid-column: 2;
}

@media (min-width: 900px) {
  .isi-kartu__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }

  .code__body {
    font-size: 0.8125rem;
    padding: 16px 18px 18px;
  }
}

/* ---------- limits ---------- */

.batas {
  border-top: var(--hair) solid var(--line);
}

.batas__grid {
  display: grid;
  gap: 16px;
}

.batas__list {
  display: grid;
  gap: 0;
}

.batas__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 12px;
  border-bottom: var(--hair) solid var(--line);
  color: var(--body);
  font-size: 0.9375rem;
}

.batas__list li:first-child {
  border-top: var(--hair) solid var(--line);
}

/* A struck line, drawn from one element: the rule the product will not cross. */
.batas__x {
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: none;
  border: 1.5px solid var(--soft);
  border-radius: 50%;
}

.batas__x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.5px;
  background: var(--soft);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.batas__foot {
  color: var(--soft);
  font-size: 0.875rem;
  max-width: 60ch;
}

@media (min-width: 900px) {
  .batas__grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 20px 56px;
    align-items: start;
  }

  .batas h2 {
    grid-column: 1;
    position: sticky;
    top: calc(var(--bar) + 32px);
  }

  .batas__list,
  .batas__foot {
    grid-column: 2;
  }

  .batas__foot {
    margin-top: 4px;
  }
}

/* ---------- FAQ ---------- */

.tanya {
  border-top: var(--hair) solid var(--line);
}

.tanya__grid {
  display: grid;
  gap: 18px;
}

.tanya__aside {
  color: var(--soft);
  font-size: 0.875rem;
  max-width: 34ch;
}

.faq {
  border-top: var(--hair) solid var(--line);
}

.faq details {
  border-bottom: var(--hair) solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 14px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--soft);
  border-bottom: 1.5px solid var(--soft);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.faq details p {
  padding: 0 0 18px;
  max-width: 62ch;
  color: var(--body);
  font-size: 0.9375rem;
}

.faq summary:active {
  color: var(--ink);
}

@media (min-width: 900px) {
  .tanya__grid {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
    gap: 24px 56px;
    align-items: start;
  }

  .tanya__head {
    position: sticky;
    top: calc(var(--bar) + 32px);
  }

  .tanya__aside {
    margin-top: 12px;
  }
}

/* ---------- closing ---------- */

.tutup {
  border-top: var(--hair) solid var(--line);
}

.tutup__inner {
  max-width: 46rem;
}

.tutup h2 {
  max-width: 20ch;
}

.tutup__fade {
  display: block;
  color: var(--soft);
}

/* ---------- footer ----------
   One wrapping row: brand, links, then the legal line. Deliberately not four
   template columns. */

.footer {
  border-top: var(--hair) solid var(--line);
  padding-block: 28px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 28px;
}

.footer__brand {
  display: flex;
  gap: 10px;
  flex: 1 1 18rem;
  max-width: 34rem;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--body);
}

.footer__soon {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 0.8125rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--body);
  font-size: 0.875rem;
  text-decoration: none;
  touch-action: manipulation;
}

.footer__nav a:active {
  color: var(--ink);
  text-decoration: underline;
}

.footer__legal {
  flex: 1 1 100%;
  padding-top: 14px;
  border-top: var(--hair) solid var(--line);
  color: var(--soft);
  font-size: 0.8125rem;
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 70vh;
  max-width: 34rem;
}

.notfound .eyebrow {
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- logo sheet (internal, not linked) ---------- */

.logo-page {
  max-width: 1000px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 56px) var(--gutter) 88px;
}

.logo-page h1 {
  max-width: none;
  margin-bottom: 12px;
}

.logo-section {
  margin-top: clamp(28px, 5vw, 52px);
  padding-top: clamp(20px, 4vw, 36px);
  border-top: var(--hair) solid var(--line);
}

.logo-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.logo-section__tag {
  margin: 0;
  color: var(--soft);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.logo-why {
  max-width: 60ch;
  margin-bottom: 18px;
  color: var(--body);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.logo-grid--gap {
  margin-top: 12px;
}

.logo-tile {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.logo-tile--light {
  background: #f7f7f4;
  color: #0b0b0b;
}

.logo-tile--dark {
  background: #000000;
  color: #f3f3f3;
}

.logo-tile__cap {
  color: var(--soft);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.logo-tile--light .logo-tile__cap {
  color: #5c6264;
}

.logo-tile--dark .logo-tile__cap {
  color: #8b9092;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.lockup--big {
  font-size: 1.875rem;
}

.lockup--small {
  font-size: 1rem;
}

.lockup--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.lockup__sub {
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.favicon-strip,
.scale-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 22px;
  padding: 18px;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.favicon-strip figure,
.scale-row figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.favicon-strip figcaption,
.scale-row figcaption {
  color: var(--soft);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.logo-note {
  margin-top: 28px;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  max-width: 62ch;
  color: var(--body);
  font-size: 0.875rem;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.logo-page .lede {
  max-width: 62ch;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}

/* ---------- reveal on scroll ----------
   Two directions only, and only where reading order matters: a section's list
   arrives with its heading, not after it. Static under reduced motion. */

[data-reveal] {
  transition:
    opacity 420ms var(--ease),
    transform 420ms var(--ease);
}

[data-reveal].is-armed {
  opacity: 0;
  transform: translateY(10px);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  [data-reveal],
  [data-reveal].is-armed {
    opacity: 1;
    transform: none;
  }

  .btn:active {
    transform: none;
  }
}

/* ---------- pointer only ----------
   Hover exists only where a cursor can leave the element, so a tap never
   leaves a stuck state behind. */

@media (hover: hover) and (pointer: fine) {
  .topbar__nav a:hover {
    background: var(--raised);
    color: var(--ink);
  }

  .btn--solid:hover {
    background: var(--body);
    border-color: var(--body);
  }

  .btn--hair:hover {
    border-color: var(--ink);
    background: var(--raised);
  }

  .announce:hover {
    border-color: var(--line-2);
    color: var(--ink);
  }

  .switcher button:hover {
    color: var(--ink);
  }

  .theme:hover,
  .menu-btn:hover {
    border-color: var(--ink);
    background: var(--raised);
  }

  .walk__steps li:hover {
    background: var(--panel);
  }

  .faq summary:hover {
    color: var(--ink);
  }

  .link:hover,
  .footer__nav a:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
  }
}
