/* 營造管理平台 — 樣式
   版面概念：建築圖面式的留白與格線；深墨綠為結構，暖白為紙面，黃銅只用在關鍵標記。 */
:root {
  --paper: #F3F1EA;
  --surface: #FBFAF6;
  --surface-2: #ECE9DF;
  --line: #D9D4C7;
  --text: #1B2621;
  --muted: #5B6760;
  --ink: #1E3A30;
  --ink-2: #2C5444;
  --brass: #A47E45;
  --brass-soft: #EADFC8;
  --deep-bg: #17322A;
  --deep-fg: #EEEBE2;
  --deep-muted: #A9B8AF;
  --deep-line: #2F4A40;
  --btn-bg: #1E3A30;
  --btn-fg: #F6F4EE;
  --ok: #3C7A55;
  --shadow: 0 1px 2px rgba(27, 38, 33, .06), 0 12px 32px -12px rgba(27, 38, 33, .18);

  --f-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --f-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111815; --surface: #172019; --surface-2: #1D2822; --line: #2B3832;
    --text: #E7E5DD; --muted: #9FAAA3; --ink: #8FC2AA; --ink-2: #6FA88E;
    --brass: #C9A46A; --brass-soft: #3A3120;
    --deep-bg: #0D231C; --deep-fg: #EEEBE2; --deep-muted: #9DB0A6; --deep-line: #24433A;
    --btn-bg: #C9A46A; --btn-fg: #14201A; --ok: #6DB58A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111815; --surface: #172019; --surface-2: #1D2822; --line: #2B3832;
  --text: #E7E5DD; --muted: #9FAAA3; --ink: #8FC2AA; --ink-2: #6FA88E;
  --brass: #C9A46A; --brass-soft: #3A3120;
  --deep-bg: #0D231C; --deep-fg: #EEEBE2; --deep-muted: #9DB0A6; --deep-line: #24433A;
  --btn-bg: #C9A46A; --btn-fg: #14201A; --ok: #6DB58A;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 16px; }

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

/* ---------- Type ---------- */
h1, h2, h3, .display { font-family: var(--f-display); font-weight: 700; letter-spacing: .01em; text-wrap: balance; margin: 0; color: var(--text); }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); line-height: 1.24; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.3; }
h3 { font-size: 1.2rem; line-height: 1.45; font-family: var(--f-body); font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem); color: var(--muted); max-width: 34em; }
.eyebrow {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.tagline { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.pipes { font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.pipes .sep { color: var(--brass); font-weight: 400; margin-inline: .45em; }
.pipes .pi { white-space: nowrap; }
.nb { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { transform: translateY(-1px); background: var(--ink-2); }
:root[data-theme="dark"] .btn-primary:hover { background: var(--brass); filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--deep-fg); color: var(--deep-bg); }
.btn-light:hover { transform: translateY(-1px); background: #fff; }
.btn-outline-light { border-color: var(--deep-line); color: var(--deep-fg); }
.btn-outline-light:hover { border-color: var(--deep-fg); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand span { white-space: nowrap; }
.btn { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { min-height: 42px; padding: 0 1.15em; font-size: .92rem; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn-primary { min-height: 40px; padding: 0 1em; font-size: .88rem; }
  .mobile-menu {
    display: block; position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--paper); padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; z-index: 49;
  }
  .mobile-menu ul { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
  .mobile-menu li a {
    display: flex; justify-content: space-between; align-items: center; padding: 18px 2px;
    border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.15rem; font-weight: 500;
  }
  .mobile-menu .btn { width: 100%; }
  .mobile-menu .btn-row { flex-direction: column; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 720px; }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.deep { background: var(--deep-bg); color: var(--deep-fg); }
.deep h1, .deep h2, .deep h3 { color: var(--deep-fg); }
.deep .lead, .deep .muted { color: var(--deep-muted); }
.deep .eyebrow { color: #D2B07A; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .tagline { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); padding-left: 14px; border-left: 3px solid var(--brass); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--brass); }

.hero-visual { position: relative; min-width: 0; }
.scene {
  position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4; max-width: 100%;
  background: linear-gradient(180deg, #DCE3DD 0%, #E9E6DB 62%, #D8D1BF 100%);
}
:root[data-theme="dark"] .scene { background: linear-gradient(180deg, #1C2A25 0%, #22302A 62%, #2A2A22 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scene { background: linear-gradient(180deg, #1C2A25 0%, #22302A 62%, #2A2A22 100%); } }
.scene > svg.building { position: absolute; right: 0; top: 4%; width: 78%; height: auto; }
.scene-label {
  position: absolute; left: 16px; top: 16px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em;
  color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 4px 10px; border-radius: 99px;
}

/* ---------- UI mockups ---------- */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 12px; line-height: 1.5; color: var(--text);
}
.mock-laptop { position: absolute; left: 5%; bottom: 6%; width: 60%; padding: 14px; }
.mock-phone {
  position: absolute; right: 5%; bottom: -3%; width: 29%; min-width: 132px; padding: 12px 10px 16px;
  border-radius: 22px; border: 5px solid var(--text);
}
.mock-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; }
.mock-title { font-weight: 700; font-size: 12.5px; }
.mock-sub { color: var(--muted); font-size: 10.5px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.stat { background: var(--surface-2); border-radius: 8px; padding: 8px; }
.stat b { display: block; font-family: var(--f-mono); font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat span { color: var(--muted); font-size: 10px; }
.mock-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.rows { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; }
.row .name { font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: 9.5px; padding: 1px 7px; border-radius: 99px; background: var(--brass-soft); color: var(--text); white-space: nowrap; }
.chip.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); }
.track { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.chart { border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: grid; gap: 6px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; background: color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 3px 3px 0 0; display: block; }
.bars i.hi { background: var(--brass); }
.bars-x { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-family: var(--f-mono); }

.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 10px 18px; font-size: 10.5px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); }
.timeline li::after { content: ""; position: absolute; left: 6.5px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--text); }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.now { color: var(--text); font-weight: 700; }
.timeline li.now::before { border-color: var(--brass); background: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.update { margin-top: 4px; background: var(--surface-2); border-radius: 8px; padding: 7px 8px; font-size: 10px; }
.update b { display: block; font-size: 10.5px; }

/* ---------- Dual perspective ---------- */
.dual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.persona-foot { margin-top: auto; }
.persona-head { display: flex; align-items: center; gap: 14px; }
.persona-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brass-soft); color: var(--ink); flex: none; }
.persona-icon svg { width: 24px; height: 24px; }
.persona-head h3 { font-family: var(--f-display); font-size: 1.45rem; }
.persona-head p { color: var(--muted); font-size: .9rem; }
.feat-list { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
.feat-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.feat-list svg { width: 22px; height: 22px; color: var(--brass); margin-top: 3px; }
.feat-list h4 { margin: 0 0 2px; font-size: 1.04rem; }
.feat-list p { color: var(--muted); font-size: .95rem; }
.persona-foot { border-top: 1px solid var(--line); padding-top: 18px; font-size: .95rem; }
.persona.org { background: var(--deep-bg); border-color: var(--deep-bg); color: var(--deep-fg); }
.persona.org h3, .persona.org h4 { color: var(--deep-fg); }
.persona.org p { color: var(--deep-muted); }
.persona.org .persona-icon { background: var(--deep-line); color: #D2B07A; }
.persona.org .feat-list svg { color: #D2B07A; }
.persona.org .persona-foot { border-color: var(--deep-line); }
.persona.org .pipes { color: var(--deep-fg); }
.persona.org .pipes .sep { color: #D2B07A; }

/* ---------- Statement ---------- */
.statement { display: grid; gap: 40px; }
.statement .big { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 1.1rem + 3.2vw, 3.4rem); line-height: 1.32; }
.statement .big em { font-style: normal; color: #D2B07A; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--deep-line); }
.steps li { padding: 20px 16px 4px 0; position: relative; min-width: 0; }
.steps li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #D2B07A; }
.steps .no { font-family: var(--f-mono); font-size: .72rem; color: var(--deep-muted); letter-spacing: .1em; }
.steps h3 { font-size: 1.08rem; color: var(--deep-fg); margin-top: 4px; }
.statement .note { color: var(--deep-muted); max-width: 40em; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-copy { display: grid; gap: 20px; min-width: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; }
.checks svg { width: 20px; height: 20px; color: var(--brass); flex: none; margin-top: 3px; }
.quote { font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); font-weight: 600; line-height: 1.6; color: var(--ink); }
.quote mark { background: linear-gradient(transparent 62%, var(--brass-soft) 62%); color: inherit; }

/* record card visual */
.record { position: relative; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.record-head .id { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.record-head h3 { font-family: var(--f-display); font-size: 1.3rem; }
.stamp { border: 1.5px solid var(--brass); color: var(--brass); border-radius: 6px; padding: 2px 10px; font-size: .8rem; font-weight: 700; transform: rotate(-4deg); white-space: nowrap; }
.record-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.record-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; font-size: .95rem; }
.record-list .d { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.record-list .t { font-weight: 600; }
.record-list .s { color: var(--muted); font-size: .88rem; }
.record-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); gap: 12px; flex-wrap: wrap; }

/* ---------- AI ---------- */
.ai-card { display: grid; gap: 12px; }
.ai-item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, border-color .2s ease; }
.ai-item:hover { transform: translateX(4px); border-color: var(--brass); }
.ai-item .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brass-soft); color: var(--ink); display: grid; place-items: center; flex: none; }
.ai-item .ic svg { width: 20px; height: 20px; }
.ai-item b { display: block; }
.ai-item span { color: var(--muted); font-size: .9rem; }

/* ---------- Trust (security + payments) ---------- */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; }
.trust-card { border-radius: 20px; padding: clamp(26px, 4vw, 44px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.trust-card.sec { background: var(--surface); border: 1px solid var(--line); }
.trust-card.pay { background: var(--surface); border: 2px solid var(--ink); position: relative; }
.trust-card .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brass-soft); color: var(--ink); }
.trust-card .ic svg { width: 24px; height: 24px; }
.trust-card h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.trust-card p { color: var(--muted); }
.no-money {
  display: block; background: var(--ink); color: var(--paper); padding: 16px 18px; border-radius: 12px;
  font-weight: 700; font-size: 1.06rem; line-height: 1.6;
}
:root[data-theme="dark"] .no-money { background: var(--brass); color: #14201A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .no-money { background: var(--brass); color: #14201A; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: .82rem; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.audience li { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 26px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; transition: border-color .2s, transform .2s; }
.audience li:hover { border-color: var(--brass); transform: translateY(-3px); }
.audience svg { width: 34px; height: 34px; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; display: grid; justify-items: center; gap: 20px; }
.cta-band h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.8rem); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; position: relative; min-width: 0; }
.plan h3 { font-family: var(--f-display); font-size: 1.5rem; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 3.2em; }
.plan .price { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); border-block: 1px solid var(--line); padding-block: 16px; }
.plan .price small { display: block; font-family: var(--f-body); font-size: .82rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--brass); flex: none; margin-top: 5px; }
.plan .btn { width: 100%; }
.plan.featured { background: var(--deep-bg); border-color: var(--deep-bg); color: var(--deep-fg); }
.plan.featured h3 { color: var(--deep-fg); }
.plan.featured .for, .plan.featured .price small { color: var(--deep-muted); }
.plan.featured .price { color: var(--deep-fg); border-color: var(--deep-line); }
.plan.featured li svg { color: #D2B07A; }
.ribbon { position: absolute; top: -12px; left: 28px; background: var(--brass); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; letter-spacing: .06em; }
:root[data-theme="dark"] .ribbon { color: #14201A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ribbon { color: #14201A; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.page-hero .wrap { display: grid; gap: 16px; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .2s ease, background-color .2s; }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--brass-soft); }
.faq .ans { padding: 0 22px 22px; color: var(--muted); display: grid; gap: 10px; }
.faq .ans strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { font-weight: 600; font-size: .92rem; }
label .req { color: var(--brass); margin-left: 2px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 50px; width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 4px; flex: none; accent-color: var(--ink); }
.form-msg { border-radius: 10px; padding: 14px 16px; background: var(--brass-soft); font-size: .95rem; }
.form-msg.err { background: color-mix(in srgb, #B5472F 18%, transparent); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-list li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .k { color: var(--muted); font-size: .9rem; }
.info-list .v { font-weight: 600; word-break: break-word; }
.copy-btn { margin-left: 8px; font: inherit; font-size: .78rem; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 99px; padding: 2px 10px; cursor: pointer; }
.copy-btn:hover { color: var(--text); border-color: var(--ink); }

/* ---------- Legal ---------- */
.legal { max-width: 780px; display: grid; gap: 34px; }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-size: 1.3rem; font-family: var(--f-body); padding-top: 8px; }
.legal p, .legal li { color: var(--text); }
.legal ol, .legal ul { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.legal .meta { color: var(--muted); font-size: .9rem; }
.ph { background: var(--brass-soft); border-radius: 4px; padding: 0 5px; font-weight: 600; white-space: nowrap; }
.callout { border-left: 3px solid var(--brass); background: var(--surface); padding: 16px 18px; border-radius: 0 10px 10px 0; color: var(--muted); font-size: .92rem; }
.callout.strong { border-left-color: var(--ink); color: var(--text); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.toc ol { columns: 2; column-gap: 28px; padding-left: 1.2em; margin: 8px 0 0; display: block; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-bg); color: var(--deep-muted); padding-block: 64px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 36px; }
.site-footer .brand { color: var(--deep-fg); }
.site-footer h4 { color: var(--deep-fg); font-size: .95rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--deep-fg); }
.site-footer .blurb { margin-top: 14px; max-width: 26em; }
.company dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; }
.company dt { color: var(--deep-muted); }
.company dd { margin: 0; color: var(--deep-fg); word-break: break-word; }
.foot-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--deep-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.foot-note b { color: var(--deep-fg); font-weight: 600; }

/* ---------- Motion (transform only; content is always visible) ---------- */
.rise { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.rise.pre { transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .rise.pre { transition: none; transform: none; }
  .btn, .ai-item, .audience li { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .trust, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .dual { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .plan.featured { order: -1; }
  .plan .for { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--deep-line); margin-left: 4px; }
  .steps li { padding: 0 0 22px 22px; }
  .steps li::before { top: 8px; left: -4px; }
  .split .record { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav { gap: 10px; }
  .site-header .brand { font-size: .95rem; gap: 8px; letter-spacing: .01em; }
  .site-header .brand-mark { width: 26px; height: 26px; }
  .hero { padding-top: 22px; }
  .hero-copy { gap: 16px; }
  .hero .btn-row .btn { flex: 1 1 140px; }
  .scene { aspect-ratio: auto; padding: 150px 12px 12px; }
  .scene > svg.building { top: 4%; left: 6%; width: 88%; }
  .mock-laptop { position: relative; left: auto; bottom: auto; width: 100%; padding: 12px; }
  .mock-phone { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-split { grid-template-columns: minmax(0, 1fr); }
  .mock-split .chart { display: none; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc ol { columns: 1; }
  .record-list li { grid-template-columns: 64px minmax(0, 1fr); }
}

@media (max-width: 370px) { .nav-cta .btn-primary { display: none; } }

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; border-radius: 20px; background: var(--surface-2); max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual { padding-bottom: 56px; }
.hero-photo { aspect-ratio: 16 / 10.5; }
.hero-photo img { object-position: 30% 50%; }
.hero-dash { position: absolute; right: -4%; bottom: 0; width: 58%; padding: 14px; z-index: 2; }
.persona { overflow: hidden; }
.persona-photo { position: relative; margin: calc(-1 * clamp(24px, 3.5vw, 40px)) calc(-1 * clamp(24px, 3.5vw, 40px)) 0; }
.persona-photo .photo { border-radius: 0; aspect-ratio: 16 / 9; }
.persona.org .persona-photo .photo img { object-position: 72% 40%; }
.persona-photo .mock-phone { left: 5%; right: auto; bottom: 8%; width: 30%; min-width: 128px; font-size: 11px; box-shadow: var(--shadow); }
.record-visual { display: grid; min-width: 0; }
.record-photo { aspect-ratio: 3 / 2; }
.record-visual .record { margin: -96px 22px 0; position: relative; }
.ai-photo { aspect-ratio: 16 / 9; margin-top: 8px; }
@media (max-width: 1100px) { .hero-dash { right: 0; } }
@media (max-width: 640px) {
  .hero-visual { padding-bottom: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-dash { position: relative; right: auto; width: auto; margin: -48px 12px 0; padding: 12px; }
  .persona-photo .mock-phone { display: none; }
  .record-visual .record { margin: -48px 12px 0; }
}
.hero-visual { padding-bottom: 120px; }
.hero-dash { width: 52%; right: -3%; }
.persona-photo .mock-phone { top: 7%; bottom: auto; width: 27%; }
.persona-photo .mock-phone .update { display: none; }
@media (max-width: 640px) { .hero-visual { padding-bottom: 0; } .hero-dash { width: auto; right: auto; } }
.hero-photo { aspect-ratio: 4 / 3.3; }
.hero-photo img { object-position: 22% 50%; }
.hero-visual { padding-bottom: 150px; }
.hero-dash { width: 46%; right: -2%; }
.hero-dash .mock-split { grid-template-columns: minmax(0, 1fr); }
.hero-dash .chart { display: none; }
.hero-dash .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .hero-visual { padding-bottom: 0; } .hero-dash { width: auto; right: auto; } .hero-photo { aspect-ratio: 4 / 3; } }

/* Photo fix: image sits absolutely inside a fixed-ratio frame (avoids Safari stretching) */
.photo { min-height: 0; height: auto; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-photo, .ai-photo, .persona-photo .photo { aspect-ratio: 16 / 10; }
.record-photo { aspect-ratio: 3 / 2; }
@supports not (aspect-ratio: 1) {
  .photo::before { content: ""; display: block; padding-top: 62.5%; }
  .record-photo::before { padding-top: 66.6%; }
}
@media (max-width: 640px) { .hero-photo { aspect-ratio: 4 / 3; } }
.persona-photo, .record-visual > .photo, .hero-visual > .photo { flex: none; }
.statement .note { max-width: 52em; }
.site-footer .blurb { max-width: none; line-height: 1.9; }
.foot-grid { grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, .9fr)) minmax(0, 1.3fr); }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-note { justify-content: flex-end; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button[disabled] { opacity: .6; cursor: progress; }
.form-success { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(28px, 6vw, 56px) 8px; outline: none; }
.form-success .ok-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.form-success .ok-mark svg { width: 32px; height: 32px; }
.form-success h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.form-success p { color: var(--muted); font-size: 1.05rem; }
.form-success .btn { margin-top: 8px; }
.form-msg { font-size: 1rem; padding: 18px 20px; border: 1px solid var(--brass); }
.form-msg.err { border-color: #B5472F; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 8px; }
legend .hint { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: 8px; }
.chip-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chip-opt { position: relative; display: block; cursor: pointer; font-weight: 500; }
.chip-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip-opt span { display: grid; align-content: center; gap: 0; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: center; line-height: 1.35; transition: border-color .15s, background-color .15s; }
.chip-opt small { color: var(--muted); font-size: .76rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.chip-opt:hover span { border-color: var(--ink); }
.chip-opt input:checked + span { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 12%, var(--paper)); box-shadow: inset 0 0 0 1px var(--ink); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (max-width: 640px) { .chip-group { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip-group { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .chip-group { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
label .hint { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: 8px; }
.chip-group { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .chip-group { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* value tags (replaces pipe-separated line) */
.persona-foot.pipes { display: flex; flex-wrap: wrap; gap: 8px; }
.persona-foot.pipes .sep { display: none; }
.persona-foot.pipes .pi { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: .92rem; letter-spacing: .04em; background: var(--brass-soft); color: var(--ink); }
.persona.org .persona-foot.pipes .pi { background: var(--deep-line); color: var(--deep-fg); }
.persona-foot.pipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.persona-foot.pipes .pi { justify-content: center; padding: 7px 6px; white-space: nowrap; }
