/* Kalpaworks — studio site. Plain CSS, no build step.
   Palette mirrors Atmaward's "Sage & Mist" tokens (src/theme/tokens.ts). */

:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.62);
  --ink: #1f2b29;
  --ink-2: #56635f;
  --ink-3: #7e8a86;
  --line: rgba(31, 43, 41, 0.09);
  --sage: #3f7a6c;
  --sage-2: #6fa393;
  --sage-tint: #e0ece7;
  --mist: #7fa7c4;
  --honey: #e5b661;
  --clay: #d9806f;
  --shadow-sm: 0 1px 2px rgba(31, 43, 41, 0.05), 0 4px 14px rgba(31, 43, 41, 0.05);
  --shadow-lg: 0 2px 4px rgba(31, 43, 41, 0.04), 0 24px 60px -18px rgba(31, 43, 41, 0.22);
  --radius: 28px;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --deva: 'Tiro Devanagari Sanskrit', 'Kohinoor Devanagari', serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1513;
    --paper-2: #131c19;
    --surface: #17211e;
    --surface-glass: rgba(26, 37, 34, 0.62);
    --ink: #e8eeeb;
    --ink-2: #b2c0bb;
    --ink-3: #85948f;
    --line: rgba(232, 238, 235, 0.09);
    --sage: #8cc2b1;
    --sage-2: #5d9584;
    --sage-tint: #1f2e2a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft film grain over everything — gives the flat paper some tooth. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
}

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

::selection {
  background: var(--sage);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(1140px, 100% - 40px);
  margin-inline: auto;
}

.icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  font-variation-settings: 'opsz' 144;
}

h1 {
  font-size: clamp(46px, 8.2vw, 104px);
}

h2 {
  font-size: clamp(34px, 5vw, 60px);
}

h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  font-variation-settings: 'opsz' 36;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--sage);
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow .deva {
  font-family: var(--deva);
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sage);
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 600px;
}

.muted {
  color: var(--ink-3);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  transition:
    background 0.2s,
    color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  background: var(--sage-tint);
  color: var(--ink);
}

@media (max-width: 640px) {
  .nav-links a:not(.keep) {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 30px -10px rgba(31, 43, 41, 0.6);
}

.btn.ghost {
  background: var(--surface-glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.store-badge small {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.2;
}

.store-badge b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- Hero + aurora ---------- */

.hero {
  position: relative;
  padding: clamp(70px, 12vw, 150px) 0 clamp(60px, 9vw, 110px);
  isolation: isolate;
}

.hero .wrap {
  display: grid;
  gap: 28px;
}

.aurora {
  position: absolute;
  inset: -10% -20% 0;
  z-index: -1;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.55;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  animation: drift 22s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  left: 48%;
  top: -8%;
  background: radial-gradient(circle, #a3c6b9, transparent 65%);
}

.aurora span:nth-child(2) {
  width: 38vw;
  height: 38vw;
  left: 68%;
  top: 22%;
  background: radial-gradient(circle, #b4cee0, transparent 65%);
  animation-delay: -7s;
}

.aurora span:nth-child(3) {
  width: 30vw;
  height: 30vw;
  left: 30%;
  top: 30%;
  background: radial-gradient(circle, #f4e3c3, transparent 65%);
  animation-delay: -14s;
}

@media (prefers-color-scheme: dark) {
  .aurora {
    opacity: 0.22;
  }
}

@keyframes drift {
  to {
    transform: translate(-8vw, 6vw) scale(1.15);
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- Sections ---------- */

section {
  position: relative;
}

.section {
  padding: clamp(70px, 10vw, 130px) 0;
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 60px);
  max-width: 720px;
}

/* ---------- 3D tilt cards ---------- */

.tilt {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:
    transform 0.7s var(--ease),
    box-shadow 0.4s var(--ease);
  will-change: transform;
}

.tilt.is-tilting {
  transition:
    transform 0.12s linear,
    box-shadow 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
}

/* Light that follows the pointer across the card. */
.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.45), transparent 40%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.4s;
}

.tilt.is-tilting::after {
  opacity: 1;
}

.lift {
  transform: translateZ(40px);
}

.lift-lg {
  transform: translateZ(80px);
}

.card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* ---------- Featured app card ---------- */

.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 4.5vw, 60px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(163, 198, 185, 0.45), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(244, 227, 195, 0.55), transparent 60%),
    linear-gradient(160deg, #dceae3, #e7eef3 50%, #f4eee6);
  color: #1f2b29;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.feature .content {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.feature .glyph {
  font-family: var(--deva);
  font-size: 54px;
  line-height: 1;
  color: #3f7a6c;
}

.feature h3 {
  font-size: clamp(38px, 4.6vw, 58px);
}

.feature p {
  color: #56635f;
  font-size: 17.5px;
  max-width: 460px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 43, 41, 0.06);
  font-size: 14px;
  font-weight: 500;
  color: #1f2b29;
}

.chip .icon {
  width: 17px;
  height: 17px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f2b29;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

.link-arrow span {
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }
}

/* ---------- Phone mockup (Atmaward home) ---------- */

.phone-stage {
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.phone {
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 48px;
  padding: 11px;
  background: linear-gradient(145deg, #2a3533, #10171a);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 50px 80px -30px rgba(31, 43, 41, 0.55),
    0 20px 30px -20px rgba(31, 43, 41, 0.4);
  transform: translateZ(70px) rotate(-2deg);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(180deg, #ecf1ea 0%, #f6f4ef 34%);
  padding: 52px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #1f2b29;
  font-family: var(--sans);
}

.ph-island {
  position: absolute;
  top: 11px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 27px;
  border-radius: 20px;
  background: #0b0f0e;
}

.ph-eyebrow {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #7e8a86;
}

.ph-title {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
  margin-top: 2px;
}

.ph-hero {
  border-radius: 18px;
  padding: 12px 13px;
  background: linear-gradient(135deg, #3f7a6c, #6fa393);
  color: #fff;
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 20px -10px rgba(63, 122, 108, 0.7);
}

.ph-hero small {
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.8;
  font-weight: 600;
}

.ph-hero b {
  font-size: 14px;
  font-weight: 600;
}

.ph-bar {
  height: 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.ph-bar i {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: #fff;
}

.ph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ph-tile {
  border-radius: 16px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(31, 43, 41, 0.05);
}

.ph-tile .ic {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--fg);
}

.ph-tile .ic svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.ph-tile b {
  font-size: 11.5px;
  font-weight: 600;
}

.ph-tile small {
  font-size: 8.5px;
  color: #7e8a86;
  line-height: 1.3;
}

.ph-tile.soon {
  opacity: 0.55;
}

/* Floating glass notes around the phone */
.float-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px -16px rgba(31, 43, 41, 0.35);
  font-size: 13px;
  font-weight: 500;
  color: #1f2b29;
  white-space: nowrap;
  transform: translateZ(130px);
}

.float-note .ic {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--fg);
}

.float-note .ic svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.float-note small {
  display: block;
  font-size: 11px;
  color: #7e8a86;
  font-weight: 400;
}

.note-a {
  top: 16%;
  left: -6%;
  animation: bob 6s ease-in-out infinite;
}

.note-b {
  bottom: 14%;
  right: -8%;
  animation: bob 7s ease-in-out infinite -3s;
}

@keyframes bob {
  50% {
    translate: 0 -10px;
  }
}

@media (max-width: 520px) {
  .note-a {
    left: -2%;
  }
  .note-b {
    right: -2%;
  }
}

/* Mini-app tile colors (Tile in tokens.ts) */
.t-screentime {
  --bg: #e8eef3;
  --fg: #4f7193;
}
.t-habits {
  --bg: #f4ede0;
  --fg: #a0702e;
}
.t-goals {
  --bg: #e3eee8;
  --fg: #3f7a6c;
}
.t-focus {
  --bg: #e2f0ec;
  --fg: #0f8c78;
}
.t-todos {
  --bg: #eef2e3;
  --fg: #62803a;
}
.t-events {
  --bg: #f6eae3;
  --fg: #a8644a;
}
.t-music {
  --bg: #e6ecf5;
  --fg: #56769e;
}
.t-breathe {
  --bg: #e9f1ef;
  --fg: #5e8f86;
}
.t-journal {
  --bg: #f4eee4;
  --fg: #9a7650;
}
.t-sleep {
  --bg: #eceaf3;
  --fg: #6e6992;
}

/* ---------- Coming-soon cards ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.soon-card {
  min-height: 300px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  background: var(--surface);
}

.soon-card .orb {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
}

.soon-card.one .orb {
  background: radial-gradient(circle, #b4cee0, transparent 70%);
}

.soon-card.two .orb {
  background: radial-gradient(circle, #f4e3c3, transparent 70%);
}

.soon-card .num {
  font-family: var(--serif);
  font-size: 88px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink-3);
  opacity: 0.6;
}

.soon-card h3 {
  margin-bottom: 8px;
}

.soon-card p {
  color: var(--ink-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sage-tint);
  color: var(--sage);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

/* ---------- Meaning ---------- */

.meaning {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.meaning .big-glyph {
  font-family: var(--deva);
  font-size: clamp(120px, 18vw, 230px);
  line-height: 1;
  color: var(--sage);
  text-align: center;
  background: linear-gradient(160deg, var(--sage), var(--mist));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.meaning .roots {
  display: grid;
  gap: 14px;
}

.root {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  padding: 20px 22px;
}

.root .w {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  grid-row: span 2;
  min-width: 128px;
  color: var(--sage);
}

.root b {
  font-weight: 600;
}

.root span {
  color: var(--ink-2);
  font-size: 15.5px;
}

@media (max-width: 760px) {
  .meaning {
    grid-template-columns: 1fr;
  }
  .root {
    grid-template-columns: 1fr;
  }
  .root .w {
    grid-row: auto;
  }
}

/* ---------- Principles / generic card grids ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 960px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.principle {
  padding: 28px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.principle .ic {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--sage-tint);
  color: var(--sage);
  margin-bottom: 6px;
}

.principle h3 {
  font-size: 22px;
}

.principle p {
  color: var(--ink-2);
  font-size: 15.5px;
}

/* Mini-app cards (Atmaward page) */
.app-card {
  padding: 26px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 230px;
}

.app-card .ic {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--fg);
}

.app-card .ic .icon {
  width: 26px;
  height: 26px;
}

.app-card h3 {
  font-size: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-card .tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

@media (prefers-color-scheme: dark) {
  .app-card .tag {
    color: var(--ink-3);
  }
}

.app-card p {
  color: var(--ink-2);
  font-size: 15.5px;
}

.app-card.soon {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.app-card.soon .ic {
  opacity: 0.7;
}

.soon-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sage-tint);
  color: var(--sage);
}

/* ---------- Atmaward hero ---------- */

.app-hero .wrap {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.app-hero .copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.app-hero .glyph {
  font-family: var(--deva);
  font-size: clamp(64px, 8vw, 96px);
  line-height: 1;
  color: var(--sage);
}

.app-hero .phone-stage {
  position: relative;
}

@media (max-width: 900px) {
  .app-hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Band / CTA ---------- */

.band {
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(40px, 7vw, 90px) clamp(24px, 6vw, 80px);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(111, 163, 147, 0.55), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(127, 167, 196, 0.35), transparent 60%), #1f2b29;
  color: #f6f4ef;
  display: grid;
  gap: 22px;
  justify-items: start;
  overflow: hidden;
}

.band h2 em {
  color: #a3c6b9;
}

.band p {
  color: rgba(246, 244, 239, 0.75);
  max-width: 560px;
  font-size: 18px;
}

.band .btn.primary {
  background: #f6f4ef;
  color: #1f2b29;
}

/* ---------- Long-form (privacy, support) ---------- */

.doc {
  padding: clamp(50px, 8vw, 100px) 0 40px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(42px, 6vw, 68px);
  margin: 14px 0 18px;
}

.doc h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin: 54px 0 14px;
}

.doc h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 26px 0 6px;
}

.doc p,
.doc li {
  color: var(--ink-2);
}

.doc p + p {
  margin-top: 14px;
}

.doc ul {
  padding-left: 20px;
  margin: 12px 0;
}

.doc li + li {
  margin-top: 8px;
}

.doc a:not(.btn) {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.summary {
  padding: 26px 28px;
  margin: 34px 0 10px;
  background: linear-gradient(160deg, #dceae3, #e7eef3 60%, #f4eee6);
  color: #1f2b29;
  border: none;
}

.summary h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.summary li {
  color: #3a4744;
}

.summary strong {
  color: #1f2b29;
}

/* FAQ */
.faq {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 22px;
  transition: box-shadow 0.3s;
}

.faq details[open] {
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--sage);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 0 18px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  margin-top: 30px;
}

.contact-card b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 5.6vw, 26px);
  overflow-wrap: anywhere;
  color: var(--ink);
}

/* ---------- Footer ---------- */

footer {
  padding: 60px 0 50px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-3);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

footer a:hover {
  color: var(--ink);
}

/* ---------- Scroll reveal (only when JS runs) ---------- */

.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.9s var(--ease),
    translate 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    translate: none;
  }
  html {
    scroll-behavior: auto;
  }
}
