/* V Copy Print — main stylesheet
   Colours come from theme tokens. Pick a theme with <html data-theme="emerald|teal|lime">. */

/* ---------- Theme 1: Emerald Draft (default) ---------- */
:root,
[data-theme="emerald"] {
  --c-primary: #0E7C55;
  --c-primary-strong: #0A5E40;
  --c-primary-soft: #E3F3EA;
  --c-ink: #0B2A1F;
  --c-text: #1F2D27;
  --c-muted: #5B6F67;
  --c-line: #DDE8E2;
  --c-bg: #FFFFFF;
  --c-tint: #F1F7F3;
  --c-accent: #FFD400;
  --c-accent-ink: #0B2A1F;
  --c-accent-soft: #FFF6C2;
  --c-mark: #FFD400;
  --c-hot-row: #FFFBEA;

  --hero-bg: #072A1F;
  --hero-glow: #0F4D37;
  --hero-grid: rgba(158, 230, 190, .09);
  --hero-grid-fine: rgba(158, 230, 190, .04);
  --hero-title: #FFFFFF;
  --hero-text: #C4E3D3;
  --hero-soft: #8FD1AE;
  --hero-rule: rgba(143, 209, 174, .35);
  --hero-mark-bg: var(--c-accent);
  --hero-mark-text: var(--c-ink);
  --sheet-back: #DDEFE5;
  --sticker-bg: var(--c-accent);
  --sticker-text: var(--c-ink);

  --dark-bg: #0A3D2C;
  --dark-grid: rgba(255, 255, 255, .07);
  --dark-card: rgba(4, 24, 17, .35);
  --dark-card-border: rgba(255, 255, 255, .16);
  --dark-text: #C4E3D3;
  --dark-soft: #8FD1AE;
  --dark-num: var(--c-accent);

  --band-bg: #072A1F;
  --band-text: #C4E3D3;
  --footer-bg: #041A13;
  --footer-text: #8DAA9C;
  --footer-link: #C4E3D3;

  --cta-bg: #06C755;
  --cta-hover: #05A847;
  --cta-text: #FFFFFF;
  --cta-icon: currentColor;
  --cta-shadow: rgba(6, 199, 85, .3);
  --cta-dark-bg: #06C755;
  --cta-dark-text: #FFFFFF;
  --ghost-border: rgba(255, 255, 255, .35);
  --ghost-text: #FFFFFF;
  --ghost-hover: rgba(255, 255, 255, .08);

  --logo-bg: var(--c-primary);
  --logo-1: #FFFFFF;
  --logo-2: var(--c-accent);

  --shadow-tint: 11, 42, 31;
}

/* ---------- Theme 2: Fresh Teal ---------- */
[data-theme="teal"] {
  --c-primary: #0D9488;
  --c-primary-strong: #0F766E;
  --c-primary-soft: #DDF4F0;
  --c-ink: #0F302C;
  --c-text: #23332F;
  --c-muted: #5D706B;
  --c-line: #DCEAE7;
  --c-tint: #F0F8F6;
  --c-accent: #FF7A59;
  --c-accent-ink: #0F302C;
  --c-accent-soft: #FFE6DE;
  --c-mark: #FFD3C4;
  --c-hot-row: #FFF4F0;

  --hero-bg: #E3F5F0;
  --hero-glow: #CDEFE7;
  --hero-grid: rgba(13, 148, 136, .13);
  --hero-grid-fine: rgba(13, 148, 136, .05);
  --hero-title: #0F302C;
  --hero-text: #3E5A54;
  --hero-soft: #0F766E;
  --hero-rule: rgba(13, 148, 136, .35);
  --hero-mark-bg: var(--c-accent);
  --hero-mark-text: #0F302C;
  --sheet-back: #C6E9E1;
  --sticker-bg: var(--c-accent);
  --sticker-text: #0F302C;

  --dark-bg: #0F766E;
  --dark-grid: rgba(255, 255, 255, .08);
  --dark-card: rgba(6, 45, 41, .3);
  --dark-card-border: rgba(255, 255, 255, .2);
  --dark-text: #E3F7F3;
  --dark-soft: #D4F5EE;
  --dark-num: #FFD3C4;

  --band-bg: #0F302C;
  --band-text: #CFEDE7;
  --footer-bg: #0A2320;
  --footer-text: #8FB0A9;
  --footer-link: #CFEDE7;

  --ghost-border: rgba(15, 48, 44, .3);
  --ghost-text: #0F302C;
  --ghost-hover: rgba(15, 48, 44, .06);

  --logo-bg: var(--c-primary);
  --logo-1: #FFFFFF;
  --logo-2: #FFD3C4;

  --shadow-tint: 15, 48, 44;
}

/* ---------- Theme 3: Lime Punch v2 (chosen) ----------
   Lime is a signal colour only (~10% of the screen) on a white / ink base.
   Text on lime is always ink; LINE buttons keep LINE green with ink text. */
[data-theme="lime"] {
  --c-primary: #166534;
  --c-primary-strong: #14532D;
  --c-primary-soft: #EEF7D9;
  --c-ink: #0F1A12;
  --c-text: #263228;
  --c-muted: #56665A;
  --c-line: #E2E8DA;
  --c-bg: #FBFCF7;
  --c-tint: #F3F7EA;
  --c-accent: #C6F432;
  --c-accent-ink: #0F1A12;
  --c-accent-soft: #F1FAD0;
  --c-mark: #C6F432;
  --c-hot-row: #F6FBE3;

  --hero-bg: #0F1A12;
  --hero-glow: #1B2E1E;
  --hero-grid: rgba(198, 244, 50, .07);
  --hero-grid-fine: rgba(198, 244, 50, .03);
  --hero-title: #FFFFFF;
  --hero-text: #C9D6C4;
  --hero-soft: #A8C49A;
  --hero-rule: rgba(198, 244, 50, .25);
  --hero-mark-bg: #C6F432;
  --hero-mark-text: #0F1A12;
  --sheet-back: #E3F59F;
  --sticker-bg: #C6F432;
  --sticker-text: #0F1A12;

  --dark-bg: #0F1A12;
  --dark-grid: rgba(198, 244, 50, .06);
  --dark-card: rgba(255, 255, 255, .04);
  --dark-card-border: rgba(198, 244, 50, .18);
  --dark-text: #D3DECF;
  --dark-soft: #A8C49A;
  --dark-num: #C6F432;

  --band-bg: #0F1A12;
  --band-text: #D3DECF;
  --footer-bg: #0A120C;
  --footer-text: #93A396;
  --footer-link: #D3DECF;

  --cta-bg: #06C755;
  --cta-hover: #05B34C;
  --cta-text: #0F1A12;
  --cta-icon: #0F1A12;
  --cta-shadow: rgba(6, 199, 85, .25);
  --cta-dark-bg: #06C755;
  --cta-dark-text: #0F1A12;
  --ghost-border: rgba(255, 255, 255, .35);
  --ghost-text: #FFFFFF;
  --ghost-hover: rgba(255, 255, 255, .08);

  --logo-bg: #0F1A12;
  --logo-1: #FFFFFF;
  --logo-2: #C6F432;

  --shadow-tint: 15, 26, 18;
}

/* ---------- Experiment: olive base (not chosen yet) ----------
   Same as Lime Punch v2, but dark surfaces are olive #1F2613 and ink is olive-black #14180B.
   Preview with ?theme=olive. The user is tuning these values; the main theme stays "lime". */
[data-theme="olive"] {
  --c-primary: #166534;
  --c-primary-strong: #14532D;
  --c-primary-soft: #EEF7D9;
  --c-ink: #14180B;
  --c-text: #263228;
  --c-muted: #56665A;
  --c-line: #E2E8DA;
  --c-bg: #FBFCF7;
  --c-tint: #F3F7EA;
  --c-accent: #C6F432;
  --c-accent-ink: #14180B;
  --c-accent-soft: #F1FAD0;
  --c-mark: #C6F432;
  --c-hot-row: #F6FBE3;

  --hero-bg: #1F2613;
  --hero-glow: #2D351D;
  --hero-grid: rgba(198, 244, 50, .07);
  --hero-grid-fine: rgba(198, 244, 50, .03);
  --hero-title: #FFFFFF;
  --hero-text: #D5DBC7;
  --hero-soft: #B3C48D;
  --hero-rule: rgba(198, 244, 50, .25);
  --hero-mark-bg: #C6F432;
  --hero-mark-text: #14180B;
  --sheet-back: #E3F59F;
  --sticker-bg: #C6F432;
  --sticker-text: #14180B;

  --dark-bg: #1F2613;
  --dark-grid: rgba(198, 244, 50, .06);
  --dark-card: rgba(255, 255, 255, .04);
  --dark-card-border: rgba(198, 244, 50, .18);
  --dark-text: #D5DBC7;
  --dark-soft: #B3C48D;
  --dark-num: #C6F432;

  --band-bg: #1F2613;
  --band-text: #D5DBC7;
  --footer-bg: #14180B;
  --footer-text: #A0A989;
  --footer-link: #D5DBC7;

  --cta-bg: #06C755;
  --cta-hover: #05B34C;
  --cta-text: #14180B;
  --cta-icon: #14180B;
  --cta-shadow: rgba(6, 199, 85, .25);
  --cta-dark-bg: #06C755;
  --cta-dark-text: #14180B;
  --ghost-border: rgba(255, 255, 255, .35);
  --ghost-text: #FFFFFF;
  --ghost-hover: rgba(255, 255, 255, .08);

  --logo-bg: #1F2613;
  --logo-1: #FFFFFF;
  --logo-2: #C6F432;

  --shadow-tint: 20, 24, 11;
}

/* ---------- Theme 3 v1 (before the comfort / print fixes), kept for comparison ---------- */
[data-theme="lime-v1"] {
  --c-primary: #15803D;
  --c-primary-strong: #166534;
  --c-primary-soft: #ECFCCB;
  --c-ink: #0D1B10;
  --c-text: #1C2A1F;
  --c-muted: #5A6B5D;
  --c-line: #E0E8D8;
  --c-tint: #F5FAEB;
  --c-accent: #C6F432;
  --c-accent-ink: #0D1B10;
  --c-accent-soft: #EEFBC4;
  --c-mark: #C6F432;
  --c-hot-row: #F4FDD8;

  --hero-bg: #C6F432;
  --hero-glow: #D9FA6A;
  --hero-grid: rgba(13, 27, 16, .10);
  --hero-grid-fine: rgba(13, 27, 16, .04);
  --hero-title: #0D1B10;
  --hero-text: #2B3A1C;
  --hero-soft: #2E4A12;
  --hero-rule: rgba(13, 27, 16, .25);
  --hero-mark-bg: #0D1B10;
  --hero-mark-text: #C6F432;
  --sheet-back: #F2FFD0;
  --sticker-bg: #0D1B10;
  --sticker-text: #C6F432;

  --dark-bg: #0D1B10;
  --dark-grid: rgba(198, 244, 50, .08);
  --dark-card: rgba(255, 255, 255, .04);
  --dark-card-border: rgba(198, 244, 50, .25);
  --dark-text: #D7E3CF;
  --dark-soft: #C6F432;
  --dark-num: #C6F432;

  --band-bg: #0D1B10;
  --band-text: #D7E3CF;
  --footer-bg: #070F09;
  --footer-text: #8C9C8E;
  --footer-link: #D7E3CF;

  /* LINE green would vanish on lime, so the main button goes dark with a green LINE icon */
  --cta-bg: #0D1B10;
  --cta-hover: #24382A;
  --cta-text: #FFFFFF;
  --cta-icon: #06C755;
  --cta-shadow: rgba(13, 27, 16, .25);
  --cta-dark-bg: #C6F432;
  --cta-dark-text: #0D1B10;
  --ghost-border: rgba(13, 27, 16, .4);
  --ghost-text: #0D1B10;
  --ghost-hover: rgba(13, 27, 16, .06);

  --logo-bg: #0D1B10;
  --logo-1: #FFFFFF;
  --logo-2: #C6F432;

  --shadow-tint: 13, 27, 16;
}

/* ---------- Shared tokens ---------- */
:root {
  --cad-red: #DC2626;
  --cad-cyan: #00B4D8;
  --cad-magenta: #E6007E;
  --cad-green: #059669;
  --cad-blue: #1D4ED8;
  --cad-glass: #BFDBFE;
  --cad-furniture: #94A3B8;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(var(--shadow-tint), .06), 0 8px 24px rgba(var(--shadow-tint), .08);
  --shadow-lg: 0 24px 60px rgba(var(--shadow-tint), .35);

  --font: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--c-ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--c-primary); }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 32px); }
.nowrap { white-space: nowrap; }

mark {
  background: linear-gradient(transparent 58%, var(--c-mark) 58%, var(--c-mark) 92%, transparent 92%);
  color: inherit;
  padding: 0 .08em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--c-primary-strong);
  margin-bottom: .75rem;
}
.eyebrow--light { color: var(--hero-soft); }

/* Placeholder for facts we don't have yet */
.ph {
  background: repeating-linear-gradient(-45deg, #FFF6BF 0 6px, #FFEE99 6px 12px);
  border: 1px dashed #C9A400;
  border-radius: 4px;
  padding: 0 .35em;
  color: #6B5600;
  white-space: nowrap;
}

/* ---------- Logo mark ---------- */
.logo-bg { fill: var(--logo-bg); }
.logo-1, .logo-2 { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.logo-1 { stroke: var(--logo-1); }
.logo-2 { stroke: var(--logo-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .7em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 1.25em; height: 1.25em; }
.btn:hover { transform: translateY(-1px); }
.btn--line { background: var(--cta-bg); color: var(--cta-text); box-shadow: 0 6px 18px var(--cta-shadow); }
.btn--line svg { color: var(--cta-icon); }
.btn--line:hover { background: var(--cta-hover); }
.btn--ghost { color: var(--ghost-text); border-color: var(--ghost-border); }
.btn--ghost:hover { background: var(--ghost-hover); }
.btn--outline { color: var(--c-ink); border-color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: #fff; }
.btn--sm { min-height: 40px; padding: .4em 1.1em; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: .8em 2em; font-size: 1.1rem; }

/* ---------- Draft bar ---------- */
.draft-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .45rem 16px;
  background: #FFFBE6;
  border-bottom: 1px solid #F5E08A;
  font-size: .88rem;
  color: #6B5600;
  text-align: center;
}
.draft-bar__close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: inherit; cursor: pointer; padding: 0 .25rem; }
.draft-bar[hidden] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.brand__name b { font-weight: 700; }
.brand--light { color: #fff; }

.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { color: var(--c-text); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--c-primary); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--hero-text);
  background-color: var(--hero-bg);
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px),
    linear-gradient(var(--hero-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-fine) 1px, transparent 1px),
    radial-gradient(1200px 600px at 85% 20%, var(--hero-glow) 0%, var(--hero-bg) 60%);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, auto;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero h1 { color: var(--hero-title); }
.hero h1 mark { color: var(--hero-mark-text); background: var(--hero-mark-bg); border-radius: 6px; padding: 0 .15em; }
.hero__lead { font-size: 1.12rem; max-width: 34em; color: var(--hero-text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }

.hero__facts {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px dashed var(--hero-rule);
}
.hero__facts strong { display: block; font-family: var(--mono); font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--hero-title); line-height: 1.2; }
.hero__facts span { font-size: .88rem; color: var(--hero-soft); }

.hero__visual { position: relative; aspect-ratio: 5 / 4; }
.sheet {
  position: absolute;
  inset: 6% 4% 6% 6%;
  background: #fff;
  border-radius: 4px;
}
.sheet--back { transform: rotate(-5deg) translate(-3%, 2%); background: var(--sheet-back); box-shadow: var(--shadow-lg); }
.sheet--front {
  transform: rotate(2deg);
  padding: 4% 4% 9%;
  box-shadow: var(--shadow-lg);
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 0 100%);
}
.sheet--front::after {
  /* folded corner */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12%;
  height: 12%;
  background: linear-gradient(225deg, transparent 50%, #D7DFDA 50%);
}
.sheet__plan { width: 100%; height: 100%; }
.sheet__meta {
  position: absolute;
  left: 4%;
  bottom: 2.5%;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(.6rem, 1.1vw, .75rem);
  letter-spacing: .08em;
  color: var(--c-muted);
}
.sticker {
  position: absolute;
  top: -2%;
  left: -2%;
  display: grid;
  place-items: center;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sticker-bg);
  color: var(--sticker-text);
  font-weight: 700;
  font-size: clamp(.8rem, 1.6vw, 1.05rem);
  line-height: 1.2;
  text-align: center;
  transform: rotate(-12deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.stamp {
  position: absolute;
  right: 0;
  bottom: 2%;
  padding: .4em .9em;
  border: 3px solid var(--cad-magenta);
  border-radius: 10px;
  color: var(--cad-magenta);
  background: rgba(255, 255, 255, .92);
  font-weight: 700;
  font-size: clamp(.85rem, 1.6vw, 1.05rem);
  line-height: 1.2;
  text-align: center;
  transform: rotate(-8deg);
}
.stamp small { display: block; font-size: .75em; font-weight: 600; }

/* ---------- Plan drawing (CAD colours stay the same in every theme) ---------- */
.p-axis line { stroke: var(--cad-red); stroke-width: 1; stroke-dasharray: 10 4 2 4; }
.p-axis circle { fill: #fff; stroke: var(--cad-red); stroke-width: 1.5; }
.p-axis text { fill: var(--cad-red); font: 600 14px var(--mono); text-anchor: middle; }
.p-furn * { fill: none; stroke: var(--cad-furniture); stroke-width: 1.5; }
.p-plumb path { fill: none; stroke: var(--cad-cyan); stroke-width: 2.5; stroke-dasharray: 8 5; }
.p-plumb circle { fill: #fff; stroke: var(--cad-cyan); stroke-width: 2.5; }
.p-elec > path { fill: none; stroke: var(--cad-magenta); stroke-width: 2; stroke-dasharray: 3 4; }
.p-light circle { fill: #fff; stroke: var(--cad-magenta); stroke-width: 2; }
.p-light path { stroke: var(--cad-magenta); stroke-width: 2; }
.p-switch { fill: var(--cad-magenta); }
.p-wall path { fill: none; stroke: var(--c-ink); stroke-width: 7; stroke-linejoin: miter; }
.p-open rect { fill: var(--cad-glass); stroke: var(--c-ink); stroke-width: 1.5; }
.p-open path { fill: none; stroke: var(--cad-blue); stroke-width: 1.5; }
.p-dim path { fill: none; stroke: var(--cad-green); stroke-width: 1.5; }
.p-dim text { fill: var(--cad-green); font: 600 13px var(--mono); text-anchor: middle; }
.p-label text { fill: var(--c-ink); font: 600 15px var(--font); text-anchor: middle; }
.p-label .p-area { fill: var(--c-muted); font: 500 11px var(--mono); }
.p-north circle { fill: none; stroke: var(--c-ink); stroke-width: 1.5; }
.p-north path { fill: var(--c-ink); }
.p-north text { fill: var(--c-ink); font: 600 13px var(--mono); text-anchor: middle; }
.p-title rect, .p-title path { fill: none; stroke: var(--c-ink); stroke-width: 1.5; }
.p-title text { fill: var(--c-ink); font: 600 11px var(--mono); text-anchor: middle; letter-spacing: .06em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--c-tint); }
.section__head { max-width: 640px; margin: 0 auto 2.75rem; text-align: center; }
.section__head p:last-child { color: var(--c-muted); margin-bottom: 0; }

.section--dark {
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(var(--dark-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--dark-text);
}
.section__head--light .eyebrow { color: var(--dark-soft); }
.section__head--light h2 { color: #fff; }
.section__head--light h2 mark { color: var(--c-accent-ink); background: var(--c-accent); border-radius: 6px; padding: 0 .15em; }
.section__head--light p:last-child { color: var(--dark-text); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  position: relative;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--c-primary-soft); box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--c-muted); font-size: .97rem; }
.card--feature { border: 2px solid var(--c-ink); }
.card--feature::before {
  content: "จุดเด่น";
  position: absolute;
  top: -12px;
  right: 1.25rem;
  padding: .1em .7em;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-size: .78rem;
  font-weight: 700;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.card--feature .card__icon { background: var(--c-accent-soft); color: var(--c-ink); }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__tag {
  margin: 0;
  padding-top: .9rem;
  border-top: 1px dashed var(--c-line);
  font-family: var(--mono);
  font-size: .75rem !important;
  letter-spacing: .04em;
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--contact { grid-template-columns: 1.1fr 1fr; align-items: stretch; }

.checks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.checks strong { color: var(--c-ink); }
.note { font-size: .9rem; color: var(--c-muted); }
.note--center { text-align: center; margin-top: 1.25rem; }

/* Before / after compare */
.compare { margin: 0; }
.compare__frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 600 / 420;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  user-select: none;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 3%; }
.compare__img--mono { filter: grayscale(1) contrast(1.15); }
.compare__color { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); background: #fff; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--c-ink); }
.compare__handle span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--c-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 60% no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.compare__label {
  position: absolute;
  top: .75rem;
  padding: .15em .7em;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  pointer-events: none;
}
.compare__label--left { left: .75rem; background: #E5E7EB; color: #374151; }
.compare__label--right { right: .75rem; background: var(--c-ink); color: #fff; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare figcaption { margin-top: .75rem; text-align: center; font-size: .88rem; color: var(--c-muted); }

/* Perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.perk {
  padding: 1.5rem;
  border: 1px solid var(--dark-card-border);
  border-radius: var(--radius);
  background: var(--dark-card);
}
.perk h3 { color: #fff; }
.perk p { color: var(--dark-text); font-size: .95rem; margin: 0; }
.perk__num { display: block; margin-bottom: .75rem; font-family: var(--mono); font-weight: 600; color: var(--dark-num); }
.fineprint { margin: 2rem 0 0; text-align: center; font-size: .82rem; color: var(--dark-soft); }

/* Price table */
.price-table {
  max-width: 820px;
  margin-inline: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.price-row { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); align-items: center; border-top: 1px solid var(--c-line); }
.price-row:first-child { border-top: 0; }
.price-row > span { padding: 1rem 1.25rem; text-align: center; }
.price-row > span:first-child { text-align: left; font-weight: 600; color: var(--c-ink); }
.price-row > .ph { margin: .6rem; padding: .35rem; font-family: var(--mono); }
.price-row--head { background: var(--c-ink); }
.price-row--head > span { color: #fff !important; font-family: var(--mono); font-weight: 600; font-size: .9rem; padding-block: .8rem; }
.price-row--hot { background: var(--c-hot-row); }
.price-row--hot em {
  margin-left: .4rem;
  padding: .05em .55em;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  vertical-align: middle;
}
.price-span { grid-column: span 3; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); }
.step p { color: var(--c-muted); margin: 0; }
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--c-primary-strong);
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.1rem;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3.1rem;
  right: -1rem;
  width: 1rem;
  border-top: 2px dashed var(--c-primary-soft);
}

/* Contact */
.contact-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .6rem; }
.contact-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; padding-bottom: .6rem; border-bottom: 1px dashed var(--c-line); }
.contact-list li > span:first-child { color: var(--c-muted); font-size: .92rem; }
.contact-list .ph { justify-self: start; white-space: normal; }
.areas-title { margin: 2rem 0 .6rem; font-weight: 600; color: var(--c-ink); }
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.areas li { padding: .25em .9em; border-radius: 999px; background: var(--c-tint); border: 1px solid var(--c-line); font-size: .9rem; }

.map {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .25rem;
  min-height: 320px;
  border-radius: var(--radius);
  text-align: center;
}
.map svg { width: 48px; height: 48px; fill: none; stroke: #8A6D00; stroke-width: 1.6; }
.map p { margin: 0; font-weight: 600; color: #6B5600; }
.map small { color: #8A6D00; }
.ph-box {
  background: repeating-linear-gradient(-45deg, #FFF9D9 0 10px, #FFF3B3 10px 20px);
  border: 2px dashed #D9B800;
}

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.faq summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--c-primary);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.25rem 1.1rem; color: var(--c-muted); }

/* CTA band */
.cta-band { background: var(--band-bg); color: var(--band-text); padding-block: 3rem; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25rem; }
.cta-band p { margin: 0; }
.cta-band .btn--line { background: var(--cta-dark-bg); color: var(--cta-dark-text); box-shadow: none; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: 3rem; font-size: .92rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.site-footer__inner p { margin-top: 1rem; max-width: 30em; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: .5rem 2rem; align-content: start; justify-content: end; }
.site-footer__nav a { color: var(--footer-link); text-decoration: none; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__copy { margin: 0 auto; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 1rem; }
  .nav a { font-size: .9rem; }
  .perks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .site-header__cta { display: none; }
  .nav-toggle {
    display: grid;
    gap: 5px;
    margin-left: auto;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-ink); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: .5rem 16px 1rem;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--c-line); font-size: 1rem; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split, .split--contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .draft-bar { font-size: .8rem; }
  .hero__facts { gap: .5rem; }
  .hero__facts span { font-size: .78rem; display: block; line-height: 1.4; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1.3fr repeat(3, 1fr); font-size: .88rem; }
  .price-row > span { padding: .75rem .4rem; }
  .price-row > span:first-child { padding-left: .9rem; }
  .price-row > .ph { margin: .4rem .2rem; padding: .3rem .1rem; }
  .price-row--hot em { display: inline-block; margin: .2rem 0 0; }
  .contact-list li { grid-template-columns: 1fr; gap: .15rem; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__nav { justify-content: start; }
  .cta-band__inner .btn { width: 100%; }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--c-line);
    box-shadow: 0 -6px 20px rgba(var(--shadow-tint), .08);
  }
  .mobile-bar a {
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
  }
  .mobile-bar__call { border: 2px solid var(--c-ink); color: var(--c-ink); }
  .mobile-bar__line { background: var(--cta-bg); color: var(--cta-text); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
