/* KinTune website. Plain CSS, no build step: Caddy serves this folder as is. */

@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("fonts/outfit-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #1c2a36;
  --muted: #5d6b79;
  --line: #e4e0d6;
  --cream: #efe6d4;
  --paper: #faf7f1;
  --white: #ffffff;
  --green: #2f5f4a;
  --green-soft: #e3eee7;
  --blue: #24527d;
  --blue-dark: #1c4266;
  --gold: #d4950a;
  --orange: #c66b4a;
  --teal: #2a9d8f;
  --navy-blue: #3d6a8c;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(28, 42, 54, 0.06), 0 12px 32px rgba(28, 42, 54, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 0.8em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 247, 241, 0.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--green); }
.nav .signin { color: var(--muted); }
.menu-button { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: #cfc8b8; }
.btn-secondary:hover { border-color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.98rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { font-size: 0.95rem; color: var(--muted); margin-top: 14px; }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.hero h1 span { color: var(--green); }
.devices { position: relative; padding-bottom: 40px; }
.tablet { background: #1d1f22; border-radius: 26px; padding: 14px; box-shadow: 0 30px 60px rgba(28, 42, 54, 0.22); transform: rotate(-1deg); }
.tablet img { border-radius: 14px; }
.phone { position: absolute; right: -10px; bottom: 0; width: 27%; background: #1d1f22; border-radius: 26px; padding: 7px; box-shadow: 0 24px 48px rgba(28, 42, 54, 0.28); transform: rotate(3deg); }
.phone img { border-radius: 20px; }

/* Sections */
section { padding: 84px 0; }
.band { background: var(--white); }
.band-cream { background: var(--cream); }
.band-green { background: var(--green); color: #f3efe6; }
.band-green h2, .band-green h3 { color: var(--white); }
.band-green .lead { color: #d4e3da; }

.relief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.relief .card { background: var(--paper); }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.quote-before { font-size: 0.95rem; color: var(--orange); font-weight: 600; margin-bottom: 6px; }
.quote-after { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.5rem; }
.i-blue { background: #e4edf5; } .i-gold { background: #fbf0d6; } .i-teal { background: #dcf1ee; }
.i-orange { background: #f8e5dd; } .i-green { background: var(--green-soft); } .i-purple { background: #ebe7f6; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.split.reverse .split-text { order: 2; }
.shot { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(28, 42, 54, 0.16); border: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5f4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; counter-reset: step; }
.step { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 28px; }
.step p { color: #d4e3da; margin: 0; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--green); font-weight: 700; margin-bottom: 16px; }

.promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.promise .card { padding: 24px; }
.promise h3 { font-size: 1.1rem; }
.promise p { font-size: 0.98rem; }

.cta { text-align: center; }
.cta .actions { justify-content: center; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 44px auto 0; }
.plan { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.featured { outline: 3px solid var(--green); }
.plan .price { font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 10px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan .per { color: var(--muted); font-size: 0.98rem; }
.plan .checks { flex: 1; margin-bottom: 24px; }
.badge { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 0.82rem; border-radius: 999px; padding: 4px 12px; letter-spacing: 0.02em; }
.early { max-width: 880px; margin: 28px auto 0; background: var(--cream); border-radius: var(--radius); padding: 26px 30px; }
.early p { margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 12px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem; padding: 20px 32px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 1.6rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 20px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Legal pages */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal p, .legal li { color: #34424f; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.updated { color: var(--muted); }
.page-head { padding: 64px 0 8px; }

/* Footer */
.site-footer { background: var(--ink); color: #c6cfd8; padding: 56px 0 40px; font-size: 0.98rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 36px; width: auto; margin-bottom: 14px; }
.site-footer a { color: #eef2f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer h4 { color: var(--white); margin: 0 0 12px; font-size: 1rem; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; margin-top: 8px; color: #93a1ae; font-size: 0.92rem; }

/* Phones and small tablets */
@media (max-width: 900px) {
  .hero .wrap, .split, .split.reverse { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-text { order: 0; }
  .features, .relief, .steps { grid-template-columns: minmax(0, 1fr); }
  .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  section { padding: 64px 0; }
  .hero { padding-top: 32px; }
}
@media (max-width: 760px) {
  .menu-button { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 22px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .promise { grid-template-columns: minmax(0, 1fr); }
  body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Brand lock-up: the mark with the name set in Outfit */
.brand { gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.brand img { height: 40px; width: 40px; }
.brand-footer { color: var(--white); margin: 0 0 14px; }
.site-footer .brand-footer img { height: 36px; width: 36px; margin: 0; }
.nav a.btn-primary { color: var(--white); }

/* A phone on its own, for the parent app */
.phone-solo { display: flex; justify-content: center; }
.phone-frame { width: min(320px, 78%); background: #1d1f22; border-radius: 40px; padding: 10px; box-shadow: 0 30px 60px rgba(28, 42, 54, 0.22); transform: rotate(2deg); }
.phone-frame img { border-radius: 31px; }
.brand .kern { margin-left: -0.05em; margin-right: -0.03em; }
.plans.single { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.plans.single + .early { max-width: 520px; }
