/* Kammy website. Same palette and type as the app (app/lib/core/theme). */

@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(fonts/Outfit-400.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(fonts/Outfit-600.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 800; font-display: swap; src: url(fonts/Outfit-800.ttf) format("truetype"); }

:root {
  --amber: #ffc65a;
  --coral: #ff6c6c;
  --violet: #c86cff;
  --sky: #7ec8e3;
  --bg: #ffffff;
  --surface: #fbf5ef;
  --line: #eadfd5;
  --ink: #241812;
  --muted: #7a6558;
  --link: #c2410c;
  --warm: linear-gradient(90deg, var(--amber), var(--coral));
  --brand: linear-gradient(100deg, var(--amber), var(--coral) 34%, var(--violet) 68%, var(--sky));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1411;
    --surface: #271e19;
    --line: #463429;
    --ink: #f7ede4;
    --muted: #bfaa9c;
    --link: #ffb38a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-header img { height: 46px; display: block; }
.site-header nav { display: flex; gap: 18px; font-size: 15px; }
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--link); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px;
  background: var(--brand); opacity: .14; filter: blur(40px); z-index: -1;
}
.hero img.mark { width: 120px; height: 120px; }
.hero h1 {
  margin: 18px 0 12px; font-weight: 800; font-size: clamp(40px, 8vw, 68px);
  line-height: 1; letter-spacing: -0.04em;
}
.hero h1 em { font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.hero p.lede { max-width: 580px; margin: 0 auto 28px; font-size: 19px; color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 16px;
  background: var(--warm); color: #2a1b06; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--coral) 32%, transparent);
}
.button:hover { text-decoration: none; filter: brightness(1.04); }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
h2 { font-weight: 800; font-size: clamp(28px, 4.5vw, 38px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
h3 { font-weight: 600; font-size: 19px; margin: 0 0 6px; }
.section-lede { color: var(--muted); max-width: 640px; margin: 0 0 32px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 14px; font-size: 22px;
}
.t-amber { background: color-mix(in srgb, var(--amber) 30%, transparent); }
.t-coral { background: color-mix(in srgb, var(--coral) 26%, transparent); }
.t-violet { background: color-mix(in srgb, var(--violet) 26%, transparent); }
.t-sky { background: color-mix(in srgb, var(--sky) 32%, transparent); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--warm); color: #2a1b06; font-weight: 800;
}

/* Long-form legal pages */
.doc { padding: 40px 0 72px; }
.doc h1 { font-weight: 800; font-size: clamp(32px, 6vw, 46px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; scroll-margin-top: 80px; }
.doc h3 { margin-top: 22px; }
.doc li { margin-bottom: 6px; }
.doc .summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px;
}
.doc .summary ul { margin: 8px 0 0; padding-left: 20px; }
.toc { columns: 2 220px; font-size: 15px; padding-left: 20px; }

.table-scroll { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.callout {
  border-left: 4px solid var(--coral); background: var(--surface);
  padding: 14px 18px; border-radius: 0 14px 14px 0; margin: 18px 0;
}

/* Footer: the Rule 9 contact on every page */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 15px; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer strong { color: var(--ink); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header nav { gap: 12px; font-size: 14px; }
  .site-header nav .optional { display: none; }
  .hero { padding: 52px 0 44px; }
  section { padding: 44px 0; }
}
