/* ==========================================================================
   Sentrix website — shared stylesheet
   Palette, type and logo come from the Sentrix app (dark mode only):
     Obsidian #0E0E10 · Parchment #ECE6DA · Orange accent #F59B31
     Deep Navy #14213D · Graphite #2A2A2E · Stone #8A857C · Inter
   Photos are the app's Welcome-screen stills (Fog, Couple, Barn, Friends,
   Runner, City). No framework, no build step.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --obsidian: #0E0E10;
  --parchment: #ECE6DA;
  --accent: #F59B31;
  --accent-light: #FFC070;
  --accent-deep: #B8691A;
  --navy: #14213D;
  --graphite: #2A2A2E;
  --stone: #8A857C;
  --body: #C9C2B4;          /* parchment, muted: body text on cards */
  --screen-top: #121A2D;    /* navy-tinted obsidian from the app screens */
  --alert-text: #C99A8E;    /* oxblood lifted for text on dark */

  --card: rgba(42, 42, 46, 0.62);
  --hairline: rgba(236, 230, 218, 0.08);
  --glass: rgba(236, 230, 218, 0.07);
  --glass-strong: rgba(236, 230, 218, 0.16);
  --glass-hairline: rgba(236, 230, 218, 0.12);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --pill: 999px;
  --gutter: clamp(20px, 5vw, 48px);
  --measure: 62ch;
  --max: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--parchment);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
button, input { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--accent); color: var(--obsidian); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Header (floats over the hero photo, like the app's Welcome screen) ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding-top: max(18px, env(safe-area-inset-top));
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .rings { width: 40px; height: auto; }
.brand .ring { stroke: var(--parchment); transition: stroke .4s ease; }
.brand .brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--parchment); }
@media (max-width: 479px) { .brand .brand-name { display: none; } }   /* bare rings on phones, like the app */

.site-nav { display: flex; gap: 8px; }
.site-nav a {
  display: inline-block; padding: 9px 16px; border-radius: var(--pill);
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--parchment);
  background: rgba(14, 14, 16, 0.28);
  box-shadow: inset 0 0 0 0.5px rgba(236, 230, 218, 0.35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .25s ease;
}
.site-nav a:hover { background: rgba(14, 14, 16, 0.45); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* On photos whose top edge is bright (Fog, Couple, Friends, Runner) the app flips the
   rings and capsule to ink, exactly as the Welcome screen does. */
body[data-top="light"] .brand .ring { stroke: var(--obsidian); }
body[data-top="light"] .brand .brand-name { color: #1E2733; }
body[data-top="light"] .site-nav a {
  color: #1E2733; background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.7);
}
body[data-top="light"] .site-nav a:hover { background: rgba(255, 255, 255, 0.5); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: min(100svh, 920px); overflow: hidden; background: var(--obsidian);
}
.hero.short { min-height: min(82svh, 760px); }
.hero .photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 60%);
}
/* On photos with a dark top edge, a faint top scrim keeps the parchment rings and
   capsules readable; on bright skies site.js flips them to ink instead, like the app. */
body[data-top="dark"] .hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; z-index: -1;
  background: linear-gradient(to bottom, rgba(14, 14, 16, 0.42), rgba(14, 14, 16, 0));
}
.hero::after {   /* soft scrim so the headline stays legible on every crop */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14, 14, 16, 0.86) 0%, rgba(14, 14, 16, 0.45) 32%, rgba(14, 14, 16, 0) 62%);
}
.hero .wrap { padding-block: clamp(120px, 18vh, 180px) clamp(40px, 7vh, 72px); }
.hero-copy { max-width: 680px; display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2rem, 1.25rem + 3.2vw, 3.6rem); color: #fff; max-width: 20ch; }
.hero h1 span { display: block; color: var(--accent); }
.hero .lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--parchment); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Buttons: the Welcome screen's capsule, in the app accent */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border-radius: var(--pill); border: 0; cursor: pointer;
  font-size: 17px; font-weight: 600; text-decoration: none; letter-spacing: -0.005em;
  transition: transform .15s ease, background-color .2s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--obsidian); }
.btn-primary:hover { background: var(--accent-light); }
.btn-ghost {
  color: var(--parchment); background: rgba(14, 14, 16, 0.28);
  box-shadow: inset 0 0 0 0.5px rgba(236, 230, 218, 0.35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(14, 14, 16, 0.45); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; max-width: var(--measure); margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.section p { color: var(--body); }
.section .lead { color: var(--parchment); font-size: 1.125rem; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--hairline);
  padding: clamp(22px, 3vw, 30px); display: grid; gap: 12px; align-content: start;
}
.card p { font-size: 1rem; }
.step-num { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--accent); }

/* ---------- Photo band (a quiet still between sections) ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: min(70svh, 560px);
}
.band .photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14, 14, 16, 0.9) 0%, rgba(14, 14, 16, 0.35) 45%, rgba(14, 14, 16, 0.15) 100%);
}
.band .wrap { padding-block: clamp(48px, 8vw, 88px); display: grid; gap: 14px; }
.band h2 { color: #fff; font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem); }
.band h2 span { display: block; color: var(--accent); }
.band p { color: var(--parchment); max-width: 48ch; font-size: 1.0625rem; }

/* ---------- Plans ---------- */
.plan { position: relative; gap: 16px; }
.plan .plan-tag {
  justify-self: start; padding: 5px 10px; border-radius: var(--pill); margin-bottom: 2px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--obsidian); background: var(--accent);
}
.plan .who { color: var(--stone); font-size: .95rem; }
.plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--body); font-size: 1rem; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; }
.plan li svg path { stroke: var(--accent); }
.plan.featured { box-shadow: inset 0 0 0 1px rgba(245, 155, 49, 0.55); }
.footnote { color: var(--stone); font-size: .9rem; max-width: var(--measure); margin-top: 20px; }

/* ---------- Prose (About) ---------- */
.prose { display: grid; gap: 18px; max-width: var(--measure); }
.prose p { font-size: 1.0625rem; }
.prose .lead { font-size: 1.25rem; color: var(--parchment); }

.two-col { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.still {
  border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--hairline);
  aspect-ratio: 4 / 5; background: var(--graphite);
}
.still img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

/* ---------- Contact ---------- */
.contact-card { gap: 10px; }
.card-sub { font-size: 1.05rem; color: var(--stone); font-weight: 500; letter-spacing: 0; }
.contact-card .email {
  font-size: clamp(1.25rem, 1rem + 1.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.015em;
  color: var(--parchment); text-decoration: none; word-break: break-all;
}
.contact-card .email:hover { color: var(--accent); }

/* ---------- Footer with signup ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--obsidian) 0%, var(--screen-top) 100%);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 7vw, 88px) 36px;
}
.signup { display: grid; gap: 14px; max-width: 560px; }
.signup h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); }
.signup .hint { color: var(--body); }
.signup form { display: grid; gap: 10px; }
@media (min-width: 560px) { .signup form { grid-template-columns: 1fr auto; align-items: end; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--parchment); }
.field input {
  width: 100%; min-height: 54px; padding: 0 18px; border-radius: var(--pill); border: 0;
  background: var(--glass); color: var(--parchment);
  box-shadow: inset 0 0 0 1px var(--glass-hairline);
}
.field input::placeholder { color: var(--stone); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: inset 0 0 0 1px transparent; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.signup-status { grid-column: 1 / -1; min-height: 1.5em; margin: 0; font-size: .95rem; color: var(--body); }
.signup-status.ok { color: var(--parchment); }
.signup-status.ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.signup-status.err { color: var(--alert-text); }

.footer-meta {
  margin-top: clamp(32px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  color: var(--stone); font-size: .9rem;
}
.footer-meta a { color: var(--stone); text-decoration: none; }
.footer-meta a:hover { color: var(--parchment); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .photo { animation: push-in 18s ease-out both; transform-origin: 50% 60%; }
  @keyframes push-in { from { transform: scale(1); } to { transform: scale(1.05); } }
}
