/* Smart Home Systems prototype. Tokens mirror the Framer project's colour and text styles. */
:root {
  --bg: #faf7f4;          /* Color 03 */
  --bg-alt: #f2ede7;      /* Color 02 */
  --surface: #ffffff;     /* Neutral 01 */
  --ink: #1a1a17;         /* Color 01 */
  --muted: #615f59;       /* Neutral 03 */
  --accent: #a07e5b;      /* Color 04, bronze */
  --accent-ink: #8c6b49;  /* menu accent */
  --cta: #0972eb;
  --cta-hover: #0864ce;
  --cta-ink: #ffffff;
  --bar: #faf7f4;         /* Top Bar */
  --line: rgba(26, 26, 23, 0.1);
  --chip: #f2ede7;
  --chip-hover: #e7e0d7;
  --shadow: 0 18px 40px rgba(26, 26, 23, 0.1);
  --marker-bg: #fff4d6;
  --marker-ink: #6b4d00;
  --review: #d4361b;
  --photo-ink: #ffffff;
  --map-dot: rgba(26, 26, 23, 0.16);
  --map-dot-on: #a07e5b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #202020; --bg-alt: #272523; --surface: #2b2825; --ink: #ffffff; --muted: rgba(255, 255, 255, 0.68);
    --accent: #c9a57f; --accent-ink: #c9a57f; --bar: #2b2825; --line: rgba(255, 255, 255, 0.1);
    --chip: #36322e; --chip-hover: #3d3834; --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --marker-bg: #4a3a12; --marker-ink: #ffe3a0; --review: #ff7a5c; --map-dot: rgba(255, 255, 255, 0.14); --map-dot-on: #c9a57f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #202020; --bg-alt: #272523; --surface: #2b2825; --ink: #ffffff; --muted: rgba(255, 255, 255, 0.68);
  --accent: #c9a57f; --accent-ink: #c9a57f; --bar: #2b2825; --line: rgba(255, 255, 255, 0.1);
  --chip: #36322e; --chip-hover: #3d3834; --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --marker-bg: #4a3a12; --marker-ink: #ffe3a0; --review: #ff7a5c; --map-dot: rgba(255, 255, 255, 0.14); --map-dot-on: #c9a57f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
.h1 { font-size: 56px; line-height: 1.1; letter-spacing: -2px; }
.h2 { font-size: 40px; line-height: 1.17; letter-spacing: -1.2px; }
.h3 { font-size: 36px; line-height: 1.17; letter-spacing: -1.6px; }
.h4 { font-size: 24px; line-height: 1.2; letter-spacing: -0.5px; }
.s-small { font-size: 14px; }
.s-muted { color: var(--muted); }
.s-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 1199px) { .h1 { font-size: 42px; } .h2 { font-size: 36px; } .h3 { font-size: 32px; } }
@media (max-width: 809px) { .h1 { font-size: 36px; letter-spacing: -1.2px; } .h2 { font-size: 30px; letter-spacing: -0.8px; } .h3 { font-size: 28px; } .h4 { font-size: 21px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1488px; margin: 0 auto; padding-inline: 30px; }
@media (max-width: 809px) { .wrap { padding-inline: 20px; } }
.section { padding-block: 100px; }
.section.alt { background: var(--bg-alt); }
@media (max-width: 809px) { .section { padding-block: 64px; } }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.measure { max-width: 560px; }
.measure-narrow { max-width: 440px; }
[id] { scroll-margin-top: 110px; }

/* Buttons */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px;
  border-radius: 999px; background: var(--cta); color: var(--cta-ink); font: inherit; font-size: 14px; font-weight: 500;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: background-color 0.15s ease;
}
.s-btn:hover { background: var(--cta-hover); }
.s-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.s-btn.ghost:hover { background: var(--chip); }
.textlink { font-size: 16px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; }

/* Navbar */
.bar-shell { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 40; padding: 14px 16px 0; pointer-events: none; }
.bar {
  pointer-events: auto; max-width: 1200px; margin: 0 auto; height: 64px; background: var(--bar);
  border-radius: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px 0 18px;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, 0.04);
}
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo svg { width: 130px; height: 40px; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav-top {
  appearance: none; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}
.nav-top:hover { opacity: 0.7; }
.nav-top[aria-expanded="true"] { color: var(--accent-ink); opacity: 1; }
.nav-top svg { transition: transform 0.15s ease; }
.nav-top[aria-expanded="true"] svg { transform: rotate(180deg); }
.bar-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  appearance: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: var(--chip); }
.menu-btn { display: none; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
@media (max-width: 1023px) {
  .nav, .bar-right .s-btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Mega menu panel (from MegaMenu.tsx) */
.mm {
  position: fixed; z-index: 45; top: 86px; left: 50%; transform: translateX(-50%); width: min(960px, calc(100vw - 32px));
  display: flex; gap: 16px; padding: 16px; background: var(--bar); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); animation: mm-in 0.14s ease-out;
}
.mm[hidden] { display: none; }
@keyframes mm-in { from { opacity: 0; margin-top: -4px; } to { opacity: 1; margin-top: 0; } }
.mm-col { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.mm-main { flex: 1.35 1 0; }
.mm-side { flex: 1 1 0; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line); }
.mm-group { display: flex; flex-direction: column; gap: 2px; }
.mm-eyebrow { padding: 6px 12px 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.mm-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); line-height: 1.35; }
.mm-item:hover, .mm-item:focus-visible { background: var(--chip); }
.mm-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--chip); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.mm-item:hover .mm-icon { background: var(--chip-hover); }
.mm-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mm-title { font-size: 15px; font-weight: 500; }
.mm-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.mm-price { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mm-small { gap: 12px; padding: 8px 12px; }
.mm-small .mm-icon { width: 32px; height: 32px; border-radius: 9px; }
.mm-small .mm-title { font-size: 14px; }
.mm-small .mm-desc { font-size: 12.5px; }
.mm-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; text-decoration: none; }
.mm-more:hover { background: var(--chip); }
.mm-tile { flex: 0 0 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px; border-radius: 12px; background: var(--chip); }
.mm-tile-title { font-size: 16px; font-weight: 500; line-height: 1.3; }
.mm-tile-body { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.mm-tile .s-btn { width: 100%; height: 44px; }

/* Phone menu */
.pm { position: fixed; z-index: 45; top: 86px; left: 16px; right: 16px; max-height: calc(100dvh - 110px); overflow-y: auto; background: var(--bar); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pm[hidden] { display: none; }
.pm-acc { appearance: none; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 0; background: transparent; border-radius: 12px; font: inherit; font-size: 18px; font-weight: 500; color: var(--ink); cursor: pointer; }
.pm-acc[aria-expanded="true"] { color: var(--accent-ink); }
.pm-acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.pm-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.pm-list[hidden] { display: none; }
.pm-row { display: flex; justify-content: space-between; gap: 8px; }
.pm-link { display: block; padding: 12px; font-size: 18px; font-weight: 500; text-decoration: none; border-radius: 12px; }
.pm-link:hover { background: var(--chip); }
.pm-divider { height: 1px; background: var(--line); margin: 6px 12px; }
.pm .s-btn { width: 100%; margin-top: 10px; }

/* Hero */
.s-hero { padding-top: 170px; padding-bottom: 60px; background: var(--bg-alt); }
@media (max-width: 809px) { .s-hero { padding-top: 130px; } }
.s-tag { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--bar); font-size: 14px; font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.tag-avatars { display: flex; }
.tag-avatars img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bar); }
.tag-avatars img + img { margin-left: -9px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.hero-copy .h1 { max-width: 760px; }
.hero-copy .s-lead { max-width: 440px; }
.hero-copy .actions { margin-top: 8px; }
.gallery { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 16px; margin-top: 64px; }
.gallery figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--chip); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.photo-label { position: absolute; left: 12px; bottom: 12px; right: 12px; display: inline-flex; width: fit-content; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px; background: rgba(26, 26, 23, 0.55); color: var(--photo-ink); font-size: 13px; font-weight: 500; line-height: 1.4; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 1023px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -30px; padding-inline: 30px; scrollbar-width: none; }
  .gallery figure { flex: 0 0 min(72%, 340px); scroll-snap-align: start; }
}
@media (max-width: 809px) { .gallery { margin-inline: -20px; padding-inline: 20px; margin-top: 40px; } }

/* Marker for images that still show the wrong kit */
.marker { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 999px; background: var(--marker-bg); color: var(--marker-ink); font-size: 12px; font-weight: 500; line-height: 1.4; cursor: help; }
.marker .marker-text { display: none; }
.marker:hover .marker-text, .marker:focus .marker-text, .review-on .marker .marker-text { display: inline; }

/* Kit strip */
.s-kit { padding-block: 56px; border-bottom: 1px solid var(--line); }
.kit-title { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.kit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; }
.kit-list li { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; color: var(--muted); opacity: 0.8; }

/* Intro cards */
.intro-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 56px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-card { position: relative; border-radius: 8px; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--photo-ink); background: var(--chip); }
.photo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 240px; background: linear-gradient(to top, rgba(29, 26, 22, 0.85), rgba(29, 26, 22, 0)); }
.photo-card .card-copy { position: relative; z-index: 1; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.photo-card .card-copy p { font-size: 14px; opacity: 0.85; }
.chip-label { position: absolute; z-index: 1; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #1a1a17; font-size: 13px; font-weight: 500; line-height: 1.4; }
.chip-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fa66a; }
.routine-card { border-radius: 8px; min-height: 520px; background: var(--surface); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.routines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.routines li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; background: var(--chip); font-size: 14px; }
.routines .when { font-weight: 500; }
.routines .then { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.routine-card .card-copy { display: flex; flex-direction: column; gap: 8px; }
.routine-card .card-copy p { font-size: 14px; color: var(--muted); }
@media (max-width: 1023px) { .cards3 { grid-template-columns: 1fr; } .photo-card, .routine-card { min-height: 440px; } }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.pkg-side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.not-sure { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.price-note { font-size: 14px; color: var(--muted); }
.pkg-list { display: flex; flex-direction: column; gap: 24px; }
.pkg-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: box-shadow 0.15s ease; }
.pkg-card:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.pkg-card figure { margin: 0; position: relative; min-height: 280px; background: var(--chip); }
.pkg-card figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pkg-card .pkg-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pkg-card .s-lead { font-weight: 500; }
.pkg-card .body { font-size: 14px; color: var(--muted); }
.pkg-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.from { font-size: 16px; color: var(--muted); }
.from strong { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.explore { font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.pkg-card:hover .explore { text-decoration: underline; text-underline-offset: 4px; }
.tailored { margin-top: 96px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.tailored p { max-width: 620px; }
.tailored .s-btn { margin-top: 8px; }
.pkg-grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pkg-grid4 .pkg-card { grid-template-columns: 1fr; }
.pkg-grid4 .pkg-card figure { min-height: 0; aspect-ratio: 3 / 2; }
@media (max-width: 1023px) {
  .pkg-grid { grid-template-columns: 1fr; gap: 40px; }
  .pkg-side { position: static; }
  .pkg-card { grid-template-columns: 1fr; }
  .pkg-card figure { min-height: 0; aspect-ratio: 3 / 2; }
  .pkg-grid4 { grid-template-columns: 1fr; }
}

/* Process tabs */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-top: 56px; }
.steps { background: var(--bg-alt); border-radius: 8px; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.step { appearance: none; text-align: left; border: 0; background: transparent; font: inherit; color: inherit; padding: 18px 20px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; opacity: 0.55; transition: opacity 0.2s ease, background-color 0.2s ease; }
.step[aria-selected="true"] { opacity: 1; background: var(--surface); }
.step .step-num { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.step .step-body { font-size: 14px; color: var(--muted); display: none; }
.step[aria-selected="true"] .step-body { display: block; }
.step-images { position: relative; border-radius: 8px; overflow: hidden; min-height: 560px; background: var(--chip); }
.step-images figure { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
.step-images figure.on { opacity: 1; }
.step-images img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) {
  .process-grid { grid-template-columns: 1fr; }
  .step-images { min-height: 0; aspect-ratio: 1 / 1; order: -1; }
  .steps { padding: 16px; }
}

/* Scenes */
.scenes-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.scroller-btns { display: flex; gap: 8px; }
.scroller { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.scroller::-webkit-scrollbar { display: none; }
.scene { flex: 0 0 min(420px, 78%); scroll-snap-align: start; position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; color: var(--photo-ink); background: var(--chip); }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 240px; background: linear-gradient(to top, rgba(29, 26, 22, 0.88), rgba(29, 26, 22, 0)); }
.scene .card-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.scene .card-copy p { font-size: 14px; opacity: 0.85; }
@media (max-width: 809px) { .scroller-btns { display: none; } }

/* Three points */
.points-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.point { padding: 24px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; }
.point p { font-size: 14px; color: var(--muted); }
.points-img { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 5; }
.points-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .points-grid { grid-template-columns: 1fr; } .points { grid-template-columns: 1fr; } .points-img { aspect-ratio: 3 / 2; } }

/* Area */
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.map { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 32px; }
.uk-map { width: 100%; height: 100%; }
.uk-map .uk { fill: var(--map-dot-on); }
.uk-map .ctx { fill: var(--map-dot); }
.map-note { background: var(--surface); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks svg { flex-shrink: 0; color: var(--accent-ink); }
@media (max-width: 1023px) { .area-grid { grid-template-columns: 1fr; gap: 40px; } .map { aspect-ratio: 3 / 2; } }

/* CTA */
.cta { position: relative; min-height: 700px; display: flex; align-items: flex-end; padding-block: 46px; overflow: hidden; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta .wrap { position: relative; display: flex; justify-content: flex-end; }
.cta-card { max-width: 508px; background: var(--surface); border-radius: 10px; padding: 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-card .s-btn { margin-top: 8px; }
@media (max-width: 809px) { .cta { min-height: 520px; } .cta-card { padding: 24px; } }

/* Footer */
.footer { padding-block: 64px 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer .logo svg { width: 160px; height: 49px; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; font-size: 14px; }
.footer-contact strong { font-size: 18px; font-weight: 500; }
.footer h2 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer ul a { text-decoration: none; }
.footer ul a:hover { text-decoration: underline; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
@media (max-width: 809px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Package page */
.p-hero { padding-top: 170px; padding-bottom: 56px; background: var(--bg-alt); }
@media (max-width: 809px) { .p-hero { padding-top: 130px; } }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.p-hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.p-hero-copy .h1 { margin-top: 4px; }
.p-hero-copy .headline { font-size: 24px; line-height: 1.3; letter-spacing: -0.5px; font-weight: 500; max-width: 640px; }
.p-hero-copy .intro { max-width: 600px; color: var(--muted); }
.s-p-price { font-size: 18px; color: var(--muted); }
.s-p-price strong { color: var(--ink); font-weight: 500; }
.trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--accent-ink); }
.trust a { text-decoration: none; color: var(--accent-ink); }
.p-photo { position: relative; margin: 56px 0 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1.672; background: var(--chip); }
.p-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 809px) { .p-photo { aspect-ratio: 4 / 3; margin-top: 40px; } }
.p-body { max-width: 1056px; margin: 0 auto; display: flex; flex-direction: column; gap: 80px; }
.p-block { display: flex; flex-direction: column; gap: 16px; }
.p-block > p { max-width: 720px; color: var(--muted); font-size: 18px; }
.care { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.care-item { padding: 28px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; }
.care-item p { font-size: 14px; color: var(--muted); }
.howto { list-style: none; counter-reset: step; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.howto li { counter-increment: step; padding: 28px; border-radius: 8px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 12px; font-weight: 500; }
.howto li::before { content: "0" counter(step); font-size: 12px; letter-spacing: 0.06em; color: var(--accent-ink); }
.p-final { padding: 56px; border-radius: 10px; background: var(--bg-alt); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.p-final .actions { margin-top: 8px; }
.footnote { font-size: 13px; color: var(--muted); max-width: 720px; }
.pending-box { padding: 28px; border-radius: 8px; border: 1px dashed var(--accent); display: flex; flex-direction: column; gap: 8px; }
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.other { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.other:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.other img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.other span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.4; }
.other strong { font-size: 16px; font-weight: 500; color: var(--ink); }
@media (max-width: 1023px) { .care, .howto, .others { grid-template-columns: 1fr; } .p-final { padding: 32px 20px; } .p-body { gap: 56px; } }

/* Simple page hero (packages, contact, stubs) */
.s-hero { padding-top: 170px; padding-bottom: 64px; background: var(--bg-alt); }
@media (max-width: 809px) { .s-hero { padding-top: 130px; padding-bottom: 40px; } }
.s-hero .stack { align-items: center; text-align: center; }
.s-hero .stack p { max-width: 600px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 32px; }
.s-field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.s-field legend, .s-field > label { font-weight: 500; font-size: 18px; padding: 0; margin-bottom: 12px; }
.s-field .s-hint { font-size: 14px; color: var(--muted); margin-top: -8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.choice input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.input { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.input input, .input textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.input textarea { min-height: 120px; resize: vertical; }
.input .opt { color: var(--muted); font-weight: 400; }
.input.full { grid-column: 1 / -1; }
.prompts { padding: 20px 24px; border-radius: 10px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 8px; }
.prompts[hidden] { display: none; }
.prompts ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.form-done { padding: 24px; border-radius: 10px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 8px; }
.form-done[hidden] { display: none; }
.aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { padding: 28px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.aside-card ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.aside-card ol strong { color: var(--ink); font-weight: 500; display: block; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row button { appearance: none; border: 0; background: var(--chip); color: var(--ink); font: inherit; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } .aside { position: static; } }
@media (max-width: 600px) { .inputs { grid-template-columns: 1fr; } }

/* Review panel */
.review-btn { position: fixed; z-index: 50; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; box-shadow: var(--shadow); }
.review-panel { position: fixed; z-index: 50; left: 16px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 640px); overflow-y: auto; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.review-panel[hidden] { display: none; }
.review-panel h2 { font-size: 16px; }
.review-panel h3 { font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.review-panel ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.review-panel label { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.review-on [data-node] { outline: 1px dashed var(--review); outline-offset: -1px; position: relative; }
.review-on [data-node]::before { content: attr(data-node); position: absolute; z-index: 20; top: 0; left: 0; background: var(--review); color: #fff; font-size: 11px; font-weight: 500; line-height: 1.4; padding: 2px 6px; border-radius: 0 0 6px 0; font-family: ui-monospace, Menlo, monospace; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.review-only { display: none; }
.review-on .review-only { display: block; color: var(--accent-ink); font-size: 14px; }

.logo-mask { display: block; width: 130px; height: 40px; background: currentColor; -webkit-mask: url(/assets/logo.svg) center / contain no-repeat; mask: url(/assets/logo.svg) center / contain no-repeat; }
.footer .logo-mask { width: 160px; height: 49px; }
