:root {
  --ink: #0E2A38;
  --ink-soft: #16394A;
  --paper: #EEF2F0;
  --paper-raised: #FFFFFF;
  --mist: #DCE6E2;
  --brass: #2F8F7A;
  --brass-soft: #DCEFEA;
  --clay: #C1573F;
  --clay-soft: #F5E1DA;
  --text: #14262B;
  --text-muted: #5B6B69;
  --line: rgba(14,42,56,0.12);
  --surface: #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-l: 20px;
  --radius-m: 14px;
  --radius-s: 9px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  position: relative;
}

/* ---------- App bar ---------- */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.app-bar-brand { display: flex; align-items: center; gap: 9px; }
.brand-logo { display: block; height: 45px; width: auto; }
.app-bar-call {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  background: var(--brass-soft);
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--brass);
}

/* ---------- Views ---------- */
.views { flex: 1; padding-bottom: 96px; }
.view { padding: 26px 20px 8px; animation: fade-in 0.28s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }

.view-title { font-family: var(--font-display); font-size: 34px; font-weight: 500; margin: 4px 0 4px; }
.view-sub { color: var(--text-muted); font-size: 14.5px; margin: 0 0 22px; }

/* ---------- Hero ---------- */
.hero { padding: 6px 0 22px; position: relative; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 10px;
}
.hero-title { font-family: var(--font-display); font-size: 30px; line-height: 1.16; font-weight: 500; margin: 0 0 12px; letter-spacing: -0.01em; }
.hero-sub { color: var(--text-muted); font-size: 15px; line-height: 1.55; max-width: 36ch; margin: 0; }
.hero-smile { width: 100%; height: 20px; margin-top: 18px; display: block; }
.hero-smile path { stroke: var(--brass); stroke-opacity: 0.35; stroke-width: 1.6; fill: none; }

/* ---------- Quick actions ---------- */
.quick-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px;
}
.quick-tile {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  font-size: 13.5px; font-weight: 600;
}
.quick-tile svg { color: var(--ink); }
.quick-primary { background: var(--brass); color: #06201A; border-color: var(--brass); }
.quick-primary svg { color: #06201A; }

/* ---------- Section label ---------- */
.section-label {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 12px;
}
.section-label span { color: var(--brass); font-weight: 500; }

/* ---------- Audience cards (Home) ---------- */
.audience-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.audience-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-m); padding: 16px 18px;
}
.audience-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin: 0 0 5px; }
.audience-card p { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 0 0 8px; }
.audience-cta { font-size: 12px; font-weight: 600; color: var(--brass); }

/* ---------- Feature card ---------- */
.feature-card {
  display: block; background: var(--ink); color: var(--paper-raised);
  border-radius: var(--radius-l); padding: 22px; margin-bottom: 30px;
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px;
  border-radius: 50%; background: radial-gradient(circle, rgba(47,143,122,0.4), transparent 70%);
}
.feature-copy h3 { font-family: var(--font-display); font-size: 21px; font-weight: 500; margin: 0 0 8px; }
.feature-copy p { font-size: 13.5px; line-height: 1.55; color: rgba(238,242,240,0.82); margin: 0 0 14px; max-width: 42ch; }
.feature-cta { font-size: 12.5px; font-weight: 600; color: #7FD9C4; }

.text-link {
  display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--text);
  border-bottom: 1.5px solid var(--brass); padding-bottom: 2px; margin: 4px 0 28px;
}

/* ---------- Treatments / service list ---------- */
.tx-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.tx-card {
  display: block;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 16px 18px;
}
.tx-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin: 0 0 5px; }
.tx-card p { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 0; }
.tx-card-static { cursor: default; }

/* ---------- Plan / compliance card ---------- */
.plan-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 22px; margin-bottom: 24px; position: relative;
}
.plan-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.plan-card-head .plan-name { font-family: var(--font-display); font-size: 19px; color: var(--text); }
.plan-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.plan-features li { font-size: 13.5px; color: var(--text-muted); padding-left: 18px; position: relative; line-height: 1.5; }
.plan-features li::before { content: '—'; position: absolute; left: 0; color: var(--brass); }
.plan-cta {
  display: block; text-align: center; background: var(--brass); color: #06201A;
  padding: 12px; border-radius: var(--radius-s); font-weight: 700; font-size: 13.5px;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 16px 18px; margin-bottom: 10px;
}
.contact-label {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brass); margin: 0 0 6px;
}
.contact-value { font-size: 14.5px; line-height: 1.5; margin: 0 0 4px; }
.contact-value.mono { font-family: var(--font-mono); }
.contact-action { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brass); border-bottom: 1.5px solid var(--brass); margin-top: 4px; }

.contact-enquire { margin-bottom: 20px; align-items: center; text-align: center; font-size: 15px; padding: 18px; }

/* ---------- Tab bar ---------- */
.tab-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 30;
  width: 100%; max-width: 480px;
  display: flex; justify-content: space-around;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px 6px calc(env(safe-area-inset-bottom, 0px) + 8px);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted); font-size: 10.5px; font-weight: 600; flex: 1; padding: 4px;
}
.tab svg { opacity: 0.75; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] svg { opacity: 1; color: var(--brass); }

/* ---------- Responsive floor ---------- */
@media (min-width: 481px) {
  .app-shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: 0 0 40px rgba(14,42,56,0.06); }
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
}
