@font-face {
  font-family: "Playfair";
  src: url("assets/playfair.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f8f5f0;
  --card: #ffffff;
  --card-alt: #f0ebe3;
  --ink: #1a1a1a;
  --muted: #6b6560;
  --divider: #e8e2da;
  --accent: #d4916e;
  --accent-deep: #b9724f;
  --accent-soft: #f5e6db;
  --success: #6baf7a;
  --dark: #1a1a1a;
  --dark-card: #2a2826;
  --serif: "Playfair", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --shadow: 0 24px 60px -24px rgba(60, 40, 25, 0.28), 0 2px 8px rgba(60, 40, 25, 0.06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--dark); color: #fff;
  font-weight: 600; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(26, 26, 26, 0.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(26, 26, 26, 0.55); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-accent { background: var(--accent); box-shadow: 0 10px 30px -10px rgba(185, 114, 79, 0.7); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.play-glyph { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 56px 0 24px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(44px, 8vw, 92px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero .lede { color: var(--muted); font-size: 19px; max-width: 520px; margin: 0 auto 32px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ---------- Phone stage ---------- */
.stage { position: relative; max-width: 760px; margin: 56px auto 0; height: 640px; }
.phone {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 300px; height: 620px; border-radius: 48px;
  background: #0f0f0f; padding: 12px;
  box-shadow: var(--shadow), inset 0 0 0 2px #3a3a3a;
}
.screen {
  width: 100%; height: 100%; border-radius: 38px; overflow: hidden;
  background: var(--dark); color: #f4efe9;
  display: flex; flex-direction: column; padding: 18px 16px;
  font-size: 13.5px;
}
.screen.light { background: var(--bg); color: var(--ink); }
.status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 2px 10px 0; opacity: .9; }
.island { width: 92px; height: 26px; border-radius: 20px; background: #000; margin: -2px auto 18px; }
.screen-title { font-family: var(--serif); font-size: 21px; line-height: 1.2; margin: 6px 4px 14px; }
.spacer { flex: 1; }

.bubble {
  max-width: 82%; padding: 10px 14px; border-radius: 18px; margin: 4px 0;
  line-height: 1.4;
}
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--dark-card); border-bottom-left-radius: 6px; }
.light .bubble.them { background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.meta { font-size: 11px; opacity: .55; text-align: center; margin: 10px 0 6px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
}
.pill.ok { background: rgba(107,175,122,.16); color: #8fd09d; }
.light .pill.ok, .card .pill.ok { color: #3f8a50; }
.pill.soft { background: var(--accent-soft); color: var(--accent-deep); }
.pill.warn { background: #fde7df; color: #c0563a; }

.wave { display: flex; align-items: center; gap: 3px; height: 36px; justify-content: center; margin: 8px 0 14px; }
.wave span { width: 3px; border-radius: 3px; background: var(--accent); animation: wave 1.2s ease-in-out infinite; }
.wave span:nth-child(odd) { animation-delay: -.4s; }
.wave span:nth-child(3n) { animation-delay: -.8s; }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 32px; } }

.orb {
  width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 4px;
  background: radial-gradient(circle at 35% 30%, #e8b597, var(--accent) 60%, var(--accent-deep));
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(212,145,110,.14);
}
.orb svg { width: 26px; height: 26px; }

/* floating cards around the phone */
.float {
  position: absolute; background: var(--card); border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow); width: 250px; font-size: 14px;
  z-index: 2;
}
.float .kicker { font-size: 12px; color: var(--accent-deep); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.float h4 { margin: 6px 0 4px; font-size: 16px; }
.float p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.float-a { left: -10px; top: 120px; transform: rotate(-5deg); }
.float-b { right: -10px; top: 330px; transform: rotate(4deg); }
.float-c { left: 20px; top: 430px; transform: rotate(3deg); width: 220px; }

/* ---------- Feature sections ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 110px 0;
}
.feature.flip .copy { order: 2; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 14px; }
.feature h2, .section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 18px;
}
.feature p.body { color: var(--muted); font-size: 19px; max-width: 440px; margin: 0; }

.mock {
  background: var(--card); border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
  max-width: 420px; width: 100%; justify-self: center;
}
.mock.dark { background: var(--dark); color: #f4efe9; }
.mock .label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; margin-bottom: 8px; }
.quote { background: var(--dark-card); border-radius: 14px; padding: 14px; font-style: italic; line-height: 1.5; font-size: 14.5px; margin-bottom: 14px; }
.rows { background: var(--dark-card); border-radius: 14px; padding: 6px 14px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; }
.rows div:last-child { border-bottom: 0; }
.rows span:first-child { opacity: .55; }
.rows span:last-child { text-align: right; }

.chat { display: flex; flex-direction: column; }
.answer {
  background: var(--card-alt); border-radius: 16px; padding: 14px 16px; margin-top: 10px;
}
.answer .src { display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.answer strong { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.3; display: block; }

.dates h5 { margin: 14px 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.date-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); border-radius: 14px; margin-bottom: 8px; }
.date-row b { display: block; font-size: 15px; }
.date-row small { color: var(--muted); font-size: 12.5px; }

.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat { background: var(--bg); border-radius: 16px; padding: 14px; }
.cat .ico { font-size: 20px; }
.cat b { display: block; margin-top: 6px; }
.cat small { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { padding: 40px 0 100px; }
.gallery .section-title { text-align: center; margin-bottom: 36px; }
.strip {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 20px 24px; margin: 0 -20px; scrollbar-width: thin;
}
.strip img {
  width: 230px; flex: 0 0 auto; border-radius: 22px; scroll-snap-align: center;
  box-shadow: var(--shadow);
}

/* ---------- Without / With ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 30px 0 110px; }
.compare .col { border-radius: 28px; padding: 30px; }
.compare .without { background: var(--card-alt); }
.compare .with { background: var(--dark); color: #f4efe9; }
.compare h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 0 0 18px; }
.note-line { background: var(--card); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-size: 14.5px; color: var(--muted); }
.note-line b { color: var(--ink); font-weight: 600; }
.with .bubble { max-width: 100%; }
.compare .caption { margin: 18px 0 0; font-size: 15px; opacity: .75; }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding: 60px 0 120px; }
.final h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px;
}
.final h2 em { font-style: italic; color: var(--accent-deep); }
.final p { color: var(--muted); font-size: 19px; margin: 0 auto 32px; max-width: 480px; }

/* ---------- Contact + footer ---------- */
.contact { text-align: center; padding: 0 0 70px; color: var(--muted); }
.contact a { color: var(--ink); font-weight: 600; }
footer { border-top: 1px solid var(--divider); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 20px 80px; }
.doc .back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: 15px; }
.doc .back:hover { color: var(--ink); }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 6vw, 48px); line-height: 1.1; margin: 0 0 10px; }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 40px 0 12px; }
.doc p, .doc li { color: #3b3733; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--divider); padding: 10px 12px; text-align: left; vertical-align: top; background: var(--card); }
.doc th { background: var(--card-alt); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .1s; } .rise.d2 { animation-delay: .2s; } .rise.d3 { animation-delay: .35s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  .float-a { animation: bob 6s ease-in-out infinite; }
  .float-b { animation: bob 7s ease-in-out -2s infinite; }
  .float-c { animation: bob 6.5s ease-in-out -4s infinite; }
  @keyframes bob { 50% { translate: 0 -8px; } }
}
@media (prefers-reduced-motion: reduce) {
  .wave span { animation: none; height: 18px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 70px 0; text-align: center; }
  .feature.flip .copy { order: 0; }
  .feature p.body { margin: 0 auto; }
  .compare { grid-template-columns: 1fr; }
  .stage { height: 700px; }
  .float-a { left: 0; top: 40px; }
  .float-b { right: 0; top: 470px; }
  .float-c { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 32px; }
  .nav .btn { display: none; }
  .stage { height: 660px; }
  .float { width: 180px; padding: 12px 14px; }
  .float h4 { font-size: 15px; }
  .float-a { left: 0; top: -14px; }
  .float-b { right: 0; top: 520px; }
  .phone { width: 280px; height: 580px; }
  .compare .col { padding: 22px; }
}
