/* Torcon Weather Team — recruiting site (local redesign preview).
   Family resemblance with the StillWind app: same slate navy (#1E2535) and
   system body type, StillWind teal only where the app is named. Torcon's own
   identity: warm paper background, amber accent, condensed uppercase headings. */

:root {
  --paper: #f6f3ec;
  --paper-2: #ece7dc;
  --ink: #1e2535;          /* StillWind app background, used here as ink + dark bands */
  --ink-2: #2e3540;
  --muted: #5a6472;
  --line: rgba(30, 37, 53, 0.14);
  --amber: #c98a12;
  --amber-bright: #f2b33d;
  --teal: #0a95c0;         /* StillWind brand primary */
  --card: #ffffff;
  --band-text: #f0f4f8;
  --band-muted: #a9b6c4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 37, 53, .06), 0 8px 24px rgba(30, 37, 53, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151a24;
    --paper-2: #1b212d;
    --ink: #eef2f6;
    --ink-2: #d5dbe3;
    --muted: #9aa8b6;
    --line: rgba(255, 255, 255, 0.12);
    --amber: #f2b33d;
    --card: #1e2535;
    --band-text: #f0f4f8;
    --band-muted: #a9b6c4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--amber-bright); color: #1e2535; padding: 8px 14px; border-radius: 8px; }

/* Headings */
h1, h2, h3, .display {
  font-family: "Barlow Condensed", Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
h3 { font-size: 1.55rem; font-weight: 600; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
/* The Torcon wordmark: the team's purchased display face (Altroned), spelled out. */
@font-face {
  font-family: "Altroned";
  src: url("fonts/altroned_trial.woff2") format("woff2");
  font-display: swap;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand .wordmark { font-family: "Altroned", "Barlow Condensed", sans-serif; font-size: 1.7rem; line-height: 1; letter-spacing: .04em; }
.brand .brand-sub { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
@media (max-width: 380px) { .brand .brand-sub { display: none; } }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 8px; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav a.btn { color: #1e2535; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; color: var(--ink); font: inherit; font-weight: 600; min-height: 44px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; min-height: 44px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--amber-bright); color: #1e2535; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 179, 61, .35); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { box-shadow: none; border-color: var(--amber); }
.band .btn.ghost { color: var(--band-text); border-color: rgba(255,255,255,.25); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber-bright); outline-offset: 3px; }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero p.lead { margin: 22px 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { justify-self: center; position: relative; }
.hero-art img { width: min(300px, 70vw); filter: drop-shadow(0 18px 30px rgba(30,37,53,.25)); }
@media (prefers-color-scheme: dark) {
  .hero-art img { filter: drop-shadow(0 0 1px rgba(255,255,255,.6)) drop-shadow(0 0 22px rgba(10,149,192,.35)); }
}
.hero-note { margin-top: 26px; font-size: .9rem; color: var(--muted); }

/* Sections */
section { padding: 80px 0; }
.section-head { margin-bottom: 40px; }
.section-head p { margin: 14px 0 0; }
.alt { background: var(--paper-2); }

/* Dark band — the app's navy */
.band { background: #1e2535; color: var(--band-text); }
.band .lead, .band p { color: var(--band-muted); }
.band .eyebrow { color: var(--amber-bright); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.card ul li { margin: 4px 0; }
.card .more { display: inline-block; margin-top: 18px; font-weight: 600; text-decoration: none; color: var(--amber); }
/* Animated Meteocons (MIT, Bas Milius), the same set the StillWind app uses. */
.card .wx { width: 88px; height: 88px; margin: -14px 0 4px -12px; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--amber-bright) 18%, transparent); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; stroke: var(--amber); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 3px solid var(--amber-bright); padding-top: 18px; }
.steps li::before { content: "0" counter(step); font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 2.2rem; color: var(--amber-bright); display: block; line-height: 1; margin-bottom: 8px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { margin: 0; font-size: .97rem; }

/* Callouts and lists */
.quote { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 600; line-height: 1.15; max-width: 22ch; margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--amber-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2535' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.note { border-left: 3px solid var(--amber-bright); padding: 4px 0 4px 16px; color: var(--muted); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split .lead { margin: 16px 0 0; }
.stack { display: grid; gap: 20px; }
.note { margin-top: 28px; }
.hero-cta { margin-top: 26px; }
.family-text { margin: 0; flex: 1; min-width: 240px; color: var(--muted); }
.band .family-text { color: var(--band-muted); }
.band .sw-link { color: #5cc8ea; }
img.on-dark { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { .family img:not(.on-dark) { filter: brightness(0) invert(1); } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--amber); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 70ch; }

/* StillWind endorsement strip */
.family { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.family img { height: 34px; width: auto; }
.family .sw-link { color: var(--teal); font-weight: 600; text-decoration: none; }
.family .sw-link:hover { text-decoration: underline; }

/* CTA */
.cta { text-align: center; }
.cta .lead { margin: 16px auto 28px; }

/* Page hero (inner pages) */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 18px; }

/* Footer */
.site-footer { background: #151a24; color: #a9b6c4; padding: 48px 0 32px; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #f0f4f8; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; color: #a9b6c4; }
.site-footer a:hover { color: #f2b33d; }
.site-footer .brand .wordmark { color: #f0f4f8; }
.site-footer .brand .brand-sub { color: #f2b33d; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 8px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero .wrap, .split, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-art { order: -1; }
  .hero-art img { width: 160px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .grid-3, .steps, .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Pause control for the animated icons (footer). */
.motion-paused svg.wx,
.motion-paused svg.wx * { animation-play-state: paused !important; }
.motion-toggle {
  background: none; border: 0; padding: 0; font: inherit; color: #a9b6c4;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  min-height: 24px;
}
.motion-toggle:hover { color: #f2b33d; }
