/* =====================================================================
   Oryntero website styles
   ---------------------------------------------------------------------
   To change the colours or fonts for the WHOLE site, edit the values
   in the ":root" block just below. Everything else uses these.
   ===================================================================== */

:root {
  /* Brand colours (all checked for readable contrast on white) */
  --brand: #0f5e5a;        /* deep teal: buttons, links, headings accents */
  --brand-dark: #0a4441;   /* darker teal: hover states, footer */
  --brand-soft: #e6f2f1;   /* pale teal: section backgrounds */
  --accent: #f2a541;       /* warm amber: small highlights only */

  /* Text and backgrounds */
  --ink: #14213d;          /* main text (dark navy) */
  --muted: #4a5568;        /* secondary text */
  --bg: #ffffff;
  --bg-soft: #f6f8f8;
  --line: #d9e2e1;

  /* Placeholder highlight (things the founder still needs to fill in) */
  --todo-bg: #fff4cc;
  --todo-line: #b7791f;

  /* Type and layout */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --max: 68rem;            /* page width */
  --gutter: 1rem;          /* side padding on phones */

  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -.01em; }
h3, .h3 { font-size: 1.2rem; }
.stack > * + * { margin-top: 1.25rem; }
.hint { color: var(--muted); font-size: .9rem; }
p, ul, ol { margin: 0 0 1em; }

a { color: var(--brand); text-underline-offset: .15em; }
a:hover { color: var(--brand-dark); }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Placeholders (to fill in before publishing) ---------- */
.placeholder {
  background: var(--todo-bg);
  border: 1px dashed var(--todo-line);
  border-radius: 4px;
  padding: 0 .3em;
  font-weight: 600;
}

/* ---------- Preview banner (remove before publishing) ---------- */
.preview-banner {
  background: var(--todo-bg);
  border-bottom: 1px solid var(--todo-line);
  font-size: .9rem;
  padding: .5rem 0;
  text-align: center;
}

/* ---------- Header and navigation ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 1.75rem; height: 1.75rem; flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem .75rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
}
.site-nav a {
  display: block;
  padding: .5rem .75rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { background: var(--bg-soft); }
.site-nav a[aria-current="page"] {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .4em;
}
.site-nav .nav-cta a {
  background: var(--brand);
  color: #fff;
  margin-left: .25rem;
}
.site-nav .nav-cta a:hover { background: var(--brand-dark); }
.site-nav .nav-cta a[aria-current="page"] { color: #fff; }

/* Phone menu: only collapses when JavaScript is running (html.js) */
@media (max-width: 52rem) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .js .site-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .nav-cta a { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 3.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-brand { background: var(--brand-soft); }
.section-intro { max-width: 42rem; margin-bottom: 2rem; }
.section-intro p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .75rem;
}

/* ---------- Hero ---------- */
.hero { padding: 4rem 0 3.5rem; background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.hero-inner > * { max-width: 44rem; }
.hero .lead { font-size: 1.25rem; color: var(--muted); max-width: 38rem; }
.page-hero { padding: 3rem 0 2rem; background: var(--brand-soft); }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand); }
.btn-secondary:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) and (max-width: 56rem) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 1.4rem; height: 1.4rem; }

.tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  margin-bottom: .75rem;
}
.tag-live { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .5rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: .2rem; top: .45em;
  width: .9rem; height: .5rem;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- Numbered steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem; top: 1.15rem;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Callouts ---------- */
.callout {
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-todo { border-left-color: var(--todo-line); background: var(--todo-bg); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; padding: 3rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e6f2f1; max-width: 40rem; }
.cta-band .btn { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cta-band .btn:hover { background: var(--brand-soft); border-color: var(--brand-soft); }

/* ---------- Prose pages (privacy etc.) ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: .6rem .75rem; }
.prose th { background: var(--bg-soft); }
.table-wrap { overflow-x: auto; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #8a9a99;   /* 3:1+ contrast for form borders */
  border-radius: 8px;
  padding: .7rem .8rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.req { color: #a61b1b; }

/* Spam trap field: hidden from people, visible to simple bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 1px solid var(--todo-line);
  background: var(--todo-bg);
}
.form-status[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8dee9; padding: 2.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer .legal { border-top: 1px solid #2c3a5a; margin-top: 2rem; padding-top: 1rem; color: #b9c2d3; font-size: .85rem; }
.site-footer .placeholder { color: var(--ink); }

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
