/* ==========================================================================
   akusolusi — Legal AI Resume & Proposal
   Design tokens derived from the gold-foil logo mockup.
   Light ("day") theme is the default; [data-theme="dark"] flips the surface
   tokens for the "night" theme. Components only reference tokens.
   ========================================================================== */

:root {
  /* Brand gold scale (theme independent) */
  --gold-100: #f3e6cf;
  --gold-200: #e9d2a8;
  --gold-300: #dcbb83;
  --gold-400: #cfa565;
  --gold-500: #c1914e;
  --gold-600: #a97a3c;
  --gold-700: #83592a;

  --gold-gradient: linear-gradient(135deg, #e5c88f 0%, #cfa565 45%, #b98a44 100%);
  --gold-text: linear-gradient(120deg, #e8cc95, #c9a063 50%, #a97a3c);

  /* Surfaces */
  --bg: #fbf9f4;
  --bg-2: #f4efe6;
  --bg-3: #ece4d5;
  --card: #ffffff;
  --card-tint: #f3e6cf;
  --header-bg: rgba(251, 249, 244, 0.82);
  --footer-bg: #0f0d0a;

  /* Dark "night" sections (present in both themes) */
  --night: #15120e;
  --night-2: #1f1a14;

  /* Text */
  --ink: #1c1915;
  --ink-soft: #3d3831;
  --muted: #6f685d;
  --line: rgba(28, 25, 21, 0.09);
  --line-strong: rgba(28, 25, 21, 0.22);

  /* Accent text on light surfaces */
  --accent: #a97a3c;
  --accent-strong: #83592a;
  --accent-soft: #dcbb83;

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);

  /* Radii — deliberately asymmetric */
  --r-asym: 36px 12px 36px 12px;
  --r-asym-2: 12px 36px 12px 36px;

  --shadow-soft: 0 24px 60px -30px rgba(28, 25, 21, 0.25);
  --shadow-gold: 0 18px 40px -18px rgba(169, 122, 60, 0.45);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #100e0b;
  --bg-2: #16130f;
  --bg-3: #1f1a14;
  --card: #1a1612;
  --card-tint: #2a2117;
  --header-bg: rgba(16, 14, 11, 0.82);
  --footer-bg: #0a0908;

  --night: #0b0a08;
  --night-2: #14110d;

  --ink: #f4eee3;
  --ink-soft: #d9d0c1;
  --muted: #9d9383;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.24);

  --accent: #dcbb83;
  --accent-strong: #e9d2a8;
  --accent-soft: #a97a3c;

  --shadow-soft: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 18px 40px -18px rgba(207, 165, 101, 0.35);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
  position: relative;
}

.section--tight {
  padding-block: calc(var(--section) * 0.7);
}

.section--night {
  background: var(--night);
  color: rgba(255, 255, 255, 0.82);
}

.section--night h2,
.section--night h3 {
  color: #fff;
}

.section--paper {
  background: var(--bg-2);
}

/* Section headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-500);
}

.section--night .eyebrow {
  color: var(--gold-300);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

.section--night .lead {
  color: rgba(255, 255, 255, 0.68);
}

.heading-block {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.heading-block--center {
  margin-inline: auto;
  text-align: center;
}

.heading-block--center .eyebrow {
  justify-content: center;
}

.gold-text {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Decorative graphics
   -------------------------------------------------------------------------- */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco-blob {
  border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%;
  background: radial-gradient(circle at 30% 30%, rgba(229, 200, 143, 0.55), rgba(207, 165, 101, 0.12) 70%);
  filter: blur(2px);
}

[data-theme="dark"] .deco-blob {
  background: radial-gradient(circle at 30% 30%, rgba(207, 165, 101, 0.22), rgba(207, 165, 101, 0.04) 70%);
}

.deco-ring {
  border-radius: 50%;
  border: 1px solid rgba(169, 122, 60, 0.28);
}

.deco-line {
  width: 100%;
  height: auto;
  left: 0;
}

.deco-line path {
  fill: none;
  stroke: url(#goldStroke);
  stroke-width: 1.4;
  opacity: 0.55;
}

/* Curved section dividers. The fill matches the neighbouring section. */
.curve {
  position: absolute;
  left: 0;
  width: 100%;
  height: 90px;
  line-height: 0;
  z-index: 1;
}

.curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

.curve path {
  fill: var(--bg);
  transition: fill 0.35s ease;
}

.curve--paper path {
  fill: var(--bg-2);
}

.curve--top {
  top: -1px;
}

.curve--bottom {
  bottom: -1px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background-color 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  height: 34px;
  width: auto;
}

[data-theme="dark"] .brand__logo {
  filter: brightness(0) invert(1);
}

.brand__tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--gold-500);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}

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

.btn--gold {
  background: var(--gold-gradient);
  color: #15120e;
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px -18px rgba(169, 122, 60, 0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--gold-500);
  color: var(--accent);
}

.btn--ghost.btn--on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--wa {
  background: #1f8f5a;
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(31, 143, 90, 0.6);
}

.btn--wa:hover {
  background: #1a7d4e;
  transform: translateY(-2px);
}

.btn--lg {
  min-height: 60px;
  padding: 0 36px;
  font-size: 1.05rem;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 120px) clamp(80px, 10vw, 150px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__title {
  margin-bottom: 22px;
}

.hero__title em {
  font-style: italic;
  font-weight: 500;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__meta span strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__visual {
  position: relative;
}

.hero__frame {
  position: relative;
  border-radius: 46% 54% 42% 58% / 54% 42% 58% 46%;
  overflow: hidden;
  aspect-ratio: 4 / 3.6;
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12) rotate(2deg);
}

.hero__card {
  position: absolute;
  left: -8%;
  bottom: -6%;
  background: var(--card);
  border-radius: var(--r-asym);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  max-width: 250px;
  z-index: 3;
}

.hero__card small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.hero__card strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.1;
}

.hero__card span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-asym);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-soft);
}

.stat:nth-child(even) {
  border-radius: var(--r-asym-2);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--accent-strong);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__unit {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--accent);
  margin-left: 2px;
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  display: block;
}

/* --------------------------------------------------------------------------
   Reference cards
   -------------------------------------------------------------------------- */
.ref-list {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
}

.ref {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.ref:nth-child(even) .ref__media {
  order: 2;
}

.ref__media {
  position: relative;
}

.ref__shot {
  border-radius: var(--r-asym);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: var(--card);
}

.ref:nth-child(even) .ref__shot {
  border-radius: var(--r-asym-2);
}

.ref__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.ref__badge {
  position: absolute;
  top: -16px;
  left: 22px;
  background: var(--night);
  color: var(--gold-200);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 2;
  border: 1px solid rgba(207, 165, 101, 0.35);
}

.ref__num {
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 0.9;
  color: var(--accent-soft);
  font-weight: 500;
  margin-bottom: 8px;
}

.ref__url {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  margin-bottom: 16px;
  word-break: break-all;
}

.ref__facts {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.ref__facts li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.ref__facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold-gradient);
  justify-self: center;
}

.ref__facts strong {
  color: var(--ink);
}

.ref__takeaway {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold-500);
  background: var(--card);
  border-radius: 0 22px 22px 0;
  font-size: 0.95rem;
}

.ref__takeaway strong {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Comparison table (always on night surface)
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--night-2);
}

.cmp {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.cmp th,
.cmp td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cmp thead th {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.cmp thead th:first-child {
  color: var(--gold-300);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cmp tbody th {
  font-weight: 700;
  color: var(--gold-200);
  white-space: nowrap;
}

.cmp tbody tr:last-child td,
.cmp tbody tr:last-child th {
  border-bottom: 0;
}

.cmp .yes {
  color: #9fd8b4;
}

.cmp .no {
  color: rgba(255, 255, 255, 0.4);
}

.cmp .hl {
  color: var(--gold-200);
  font-weight: 700;
}

.scroll-hint {
  display: none;
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
}

/* --------------------------------------------------------------------------
   Opportunity / insight
   -------------------------------------------------------------------------- */
.insight {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.insight__panel {
  position: sticky;
  top: 110px;
  background: var(--night);
  color: rgba(255, 255, 255, 0.8);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 40px 16px 40px 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(207, 165, 101, 0.18);
}

.insight__panel h3 {
  color: #fff;
  font-size: 1.8rem;
}

.insight__panel .eyebrow {
  color: var(--gold-300);
}

.insight__panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(207, 165, 101, 0.35);
}

.insight__panel::before {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 165, 101, 0.35), transparent 70%);
}

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

.insight__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px 10px 28px 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.35s ease;
}

.insight__item:nth-child(even) {
  border-radius: 10px 28px 10px 28px;
}

.insight__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.insight__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px 6px 18px 6px;
  background: var(--card-tint);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.insight__icon svg {
  width: 26px;
  height: 26px;
}

.insight__item h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.insight__item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Architecture
   -------------------------------------------------------------------------- */
.arch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 2;
}

.arch__col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 32px 12px 32px 12px;
  padding: 28px 26px;
  backdrop-filter: blur(6px);
}

.arch__col:nth-child(2) {
  border-radius: 12px 32px 12px 32px;
  border-color: rgba(207, 165, 101, 0.45);
  background: linear-gradient(160deg, rgba(207, 165, 101, 0.12), rgba(207, 165, 101, 0.02));
}

.arch__col h3 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.arch__col .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 18px;
  font-weight: 700;
}

.arch__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.93rem;
}

.arch__col li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.arch__col li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 3px 8px 3px 8px;
  background: var(--gold-gradient);
}

.arch__flow {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 0.82rem;
  position: relative;
  z-index: 2;
}

.arch__flow span {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(207, 165, 101, 0.4);
  color: var(--gold-200);
}

.arch__flow i {
  align-self: center;
  color: var(--gold-500);
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Pricing packages
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 36px 14px 36px 14px;
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: background-color 0.35s ease;
}

.plan:nth-child(2) {
  border-radius: 14px 36px 14px 36px;
}

.plan--featured {
  background: var(--night);
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(207, 165, 101, 0.35);
  transform: translateY(-10px);
}

.plan--featured h3,
.plan--featured .plan__price strong {
  color: #fff;
}

.plan--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(207, 165, 101, 0.28), transparent 45%);
  pointer-events: none;
}

.plan__ribbon {
  position: absolute;
  top: 22px;
  right: -34px;
  transform: rotate(38deg);
  background: var(--gold-gradient);
  color: #15120e;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 7px 44px;
}

.plan__label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.plan--featured .plan__label {
  color: var(--gold-300);
}

.plan h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.plan__desc {
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 3.2em;
}

.plan--featured .plan__desc {
  color: rgba(255, 255, 255, 0.62);
}

.plan__price {
  margin: 18px 0 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan--featured .plan__price {
  border-color: rgba(255, 255, 255, 0.12);
}

.plan__price small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.plan--featured .plan__price small {
  color: rgba(255, 255, 255, 0.5);
}

.plan__price strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--ink);
  line-height: 1.1;
  display: block;
}

.plan__price strong em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: 8px;
  white-space: nowrap;
}

.plan__price strong em::before {
  content: "/ ";
}

.plan--featured .plan__price strong em {
  color: rgba(255, 255, 255, 0.5);
}

.plan__price > span {
  font-size: 0.85rem;
  color: var(--muted);
}

.plan--featured .plan__price > span {
  color: rgba(255, 255, 255, 0.55);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 22px;
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
  flex: 1;
}

.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.plan li svg {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  color: var(--accent);
}

.plan--featured li svg {
  color: var(--gold-300);
}

.plan__foot {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.plan--featured .plan__foot {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Breakdown table */
.breakdown {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.breakdown__table {
  overflow-x: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.breakdown table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.breakdown th,
.breakdown td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.breakdown thead th {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-2);
}

.breakdown td:last-child,
.breakdown th:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.breakdown tfoot td {
  font-weight: 800;
  color: var(--ink);
  background: var(--card-tint);
  border-bottom: 0;
}

.opex {
  display: grid;
  gap: 12px;
}

.opex__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px 8px 20px 8px;
  font-size: 0.92rem;
}

.opex__row:nth-child(even) {
  border-radius: 8px 20px 8px 20px;
}

.opex__row strong {
  color: var(--ink);
  display: block;
}

.opex__row small {
  color: var(--muted);
}

.opex__row b {
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.note {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--bg-3);
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Numbered cards (preparation checklist, summary, terms)
   -------------------------------------------------------------------------- */
.prep {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.prep__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px 10px 30px 10px;
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.35s ease;
}

.prep__card:nth-child(3n + 2) {
  border-radius: 10px 30px 10px 30px;
}

.prep__card h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.prep__card h3 span {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px 4px 12px 4px;
  background: var(--gold-gradient);
  color: #15120e;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
}

.prep__card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.prep__card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
}

.prep__card li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.prep__card li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-500);
  background: radial-gradient(circle, var(--gold-500) 35%, transparent 40%);
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  z-index: 2;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.tl {
  position: relative;
  padding-top: 62px;
}

.tl::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold-200);
  border: 1px solid rgba(207, 165, 101, 0.6);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.tl h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.tl small {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.tl p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  padding-block: clamp(80px, 12vw, 150px);
}

.cta__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.cta h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.cta p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-inline: auto;
}

.cta__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cta__hint {
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.55);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom));
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
}

/* --------------------------------------------------------------------------
   Floating buttons
   -------------------------------------------------------------------------- */
.fab {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right));
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 18px 6px 18px 6px;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.fab svg {
  width: 22px;
  height: 22px;
}

.fab--top {
  bottom: calc(88px + env(safe-area-inset-bottom));
  background: var(--gold-gradient);
  color: #15120e;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.fab--top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab--wa {
  bottom: calc(22px + env(safe-area-inset-bottom));
  background: #1f8f5a;
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(31, 143, 90, 0.7);
}

.fab--wa:hover,
.fab--top:hover {
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .stats,
  .plans,
  .prep,
  .arch {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan--featured {
    transform: none;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline::before {
    display: none;
  }

  .insight {
    grid-template-columns: 1fr;
  }

  .insight__panel {
    position: static;
  }

  .breakdown {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --section: 64px;
  }

  body {
    font-size: 15.5px;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .brand__logo {
    height: 26px;
  }

  .brand__tag {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.8rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .scroll-hint {
    display: block;
  }

  .hero {
    padding-top: 36px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__visual {
    order: -1;
    padding-inline: 8px;
    margin-bottom: 20px;
  }

  .hero__frame {
    aspect-ratio: 4 / 3;
  }

  .hero__frame img {
    transform: scale(1.4) rotate(2deg);
  }

  .hero__card {
    left: 0;
    bottom: -18px;
    max-width: 220px;
    padding: 14px 16px;
  }

  .hero__card strong {
    font-size: 1.25rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stats,
  .plans,
  .prep,
  .arch,
  .ref,
  .timeline {
    grid-template-columns: 1fr;
  }

  .ref:nth-child(even) .ref__media {
    order: 0;
  }

  .ref__num {
    font-size: 3rem;
  }

  .curve {
    height: 48px;
  }

  .plan {
    padding: 28px 22px 24px;
  }

  .insight__item {
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .insight__icon {
    width: 46px;
    height: 46px;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .fab {
    width: 48px;
    height: 48px;
    right: calc(14px + env(safe-area-inset-right));
  }

  .fab--top {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .fab--wa {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.3rem;
  }

  .hero__card {
    max-width: 190px;
  }
}
