/* Pyrova public website: shared look.
   Colours and fonts live here once, as CSS variables. Layout idea: mostly calm page and card,
   then Night, then a small spark of Flame. One orange button per screen. */

@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Italic.ttf") format("truetype"); font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: light;
  /* The two navies */
  --night: #13284A;
  --navy-secondary: #1A3460;
  /* Orange */
  --flame: #F26A21;
  --flame-hover: #F58140;
  --flame-words: #B8460F;
  --deep-flame: #9A3A0C;
  --soft-orange: #FFE9DC;
  --softer-orange: #FFF4ED;
  --orange-on-navy: #FF8A4C;
  /* Neutrals */
  --page: #EEF2F7;
  --card: #FCFDFE;
  --raised: #E8EDF4;
  --quiet-words: #3D4D66;
  --mist: #A9B8CE;
  --lines: #D6DEE9;
  --dashed-lines: #C3CEDD;
  --placeholder: #8291A8;
  /* Status */
  --good-words: #1F6B4A;
  --good-bg: #E2F1EA;
  --waiting-words: #8A5410;
  --waiting-bg: #FDF0DC;
  /* Type */
  --display: "Outfit", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --human: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  /* Space */
  --gutter: clamp(16px, 5vw, 72px);
  --measure: 1120px;
  --head: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--night);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.2; letter-spacing: -.01em; }
p, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible, .site-head :focus-visible, .band :focus-visible { outline-color: var(--orange-on-navy); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 30;
  background: var(--card); color: var(--night); padding: 12px 18px; border-radius: 12px; font-weight: 700;
}
.skip:focus { top: 10px; }

/* Keep the footer at the bottom on short pages */
body:not(.home) { min-height: 100vh; display: flex; flex-direction: column; }
body:not(.home) > main { flex: 1 0 auto; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--head); padding: 8px var(--gutter);
  background: var(--night); color: var(--card);
  border-bottom: 1px solid rgba(169,184,206,.18);
}
.site-head .logo-link { display: block; flex: none; padding: 7px 0; }
.site-head .logo-link img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--card); text-decoration: none; padding: 10px 0; }
.site-nav a:not(.btn):hover { color: var(--orange-on-navy); }
.site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--orange-on-navy); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center;
  padding: 0 18px; border: 1.5px solid var(--mist); border-radius: 99px; font-weight: 600; font-size: 15px; color: var(--card);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy-secondary); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px));
  background: var(--night); border: 1px solid rgba(169,184,206,.3); border-radius: 16px; padding: 8px;
  display: grid; box-shadow: 0 18px 40px rgba(10,20,38,.35);
}
.menu-list a { display: flex; align-items: center; min-height: 44px; padding: 4px 12px; border-radius: 10px; color: var(--card); text-decoration: none; font-weight: 500; }
.menu-list a:hover { background: var(--navy-secondary); }
.menu-list a[aria-current="page"] { color: var(--orange-on-navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 26px; border-radius: 99px;
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn.main { background: var(--flame); color: var(--night); }
.btn.main:hover { background: var(--flame-hover); }
.btn.line { background: transparent; color: var(--night); border: 1.5px solid var(--night); }
.btn.line:hover { background: var(--raised); }
.on-night .btn.line, .site-head .btn.line, .band .btn.line { color: var(--card); border-color: var(--mist); }
.on-night .btn.line:hover, .site-head .btn.line:hover, .band .btn.line:hover { border-color: var(--card); background: var(--navy-secondary); }
.site-nav .btn { min-height: 44px; padding: 6px 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Small shared parts */
.eyebrow { font: 400 13px/1.4 var(--mono); letter-spacing: .1em; color: var(--quiet-words); text-transform: uppercase; }
.band .eyebrow, .on-night .eyebrow { color: var(--mist); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--quiet-words); max-width: 40rem; }
.band .lead { color: #D6DEE9; }
.human { font: italic 400 clamp(22px, 2vw, 28px)/1.3 var(--human); }
.sheet-row { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--quiet-words); }
.sheet-row time, .sheet-row .time { font: 400 22px/1 var(--mono); color: var(--flame-words); font-variant-numeric: tabular-nums; }
.sheet-row i { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--dashed-lines); transform: translateY(-4px); }
.on-night .sheet-row, .band .sheet-row { color: var(--mist); }
.on-night .sheet-row time, .band .sheet-row time, .on-night .sheet-row .time, .band .sheet-row .time { color: var(--orange-on-navy); }
.on-night .sheet-row i, .band .sheet-row i { border-color: rgba(169,184,206,.5); }

/* Inner page opening band */
.band { background: var(--night); color: var(--card); padding: clamp(48px, 7vw, 96px) var(--gutter); }
.band-in { max-width: var(--measure); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 88px); align-items: end; }
.band h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.025em; margin: 14px 0 18px; }
.page-index { list-style: none; padding: 0; display: grid; gap: 4px; }
.page-index a { display: flex; align-items: baseline; gap: 10px; min-height: 36px; padding: 4px 0; text-decoration: none; color: #D6DEE9; font-size: 16px; }
.page-index a:hover { color: var(--card); }
.page-index .time { font: 400 14px/1 var(--mono); color: var(--orange-on-navy); }
.page-index i { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(169,184,206,.45); transform: translateY(-4px); }

/* Page sections */
.sections { padding: clamp(56px, 7vw, 96px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(64px, 8vw, 104px); }
.sections > section { max-width: var(--measure); width: 100%; min-width: 0; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; scroll-margin-top: calc(var(--head) + 24px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px clamp(32px, 5vw, 64px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--lines); border-radius: 16px; padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 10px; align-content: start; }
.card p { color: var(--quiet-words); }
.card.navy { background: var(--night); border-color: var(--night); color: var(--card); }
.card.navy p { color: #D6DEE9; }
.facts { list-style: none; padding: 0; display: grid; }
.facts li { padding: 14px 0; border-top: 1px solid var(--lines); color: var(--quiet-words); }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts b { color: var(--night); font-weight: 700; display: block; }

/* Real phone screens in a row */
.phone-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.phone-shot { border-radius: 24px; border: 4px solid var(--night); box-shadow: 0 18px 36px rgba(19,40,74,.16); }
.phone-row figcaption { font-weight: 500; color: var(--night); text-align: center; }

/* A clearly marked space for a real picture, to swap later */
.slot {
  aspect-ratio: 16 / 10; border: 2px dashed var(--dashed-lines); border-radius: 16px; display: flex; align-items: flex-end; padding: 16px;
  background: repeating-linear-gradient(135deg, var(--raised) 0 10px, var(--page) 10px 20px);
  font: 400 13px/1.4 var(--mono); color: var(--quiet-words);
}
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--lines); background: var(--card); box-shadow: 0 18px 40px rgba(19,40,74,.12); }
figure { margin: 0; display: grid; gap: 10px; }
figcaption { font-size: 15px; color: var(--quiet-words); }

/* Closing call to action */
.closing { background: var(--night); color: var(--card); padding: clamp(56px, 7vw, 96px) var(--gutter); }
.closing-in { max-width: var(--measure); margin: 0 auto; display: grid; gap: 14px; justify-items: start; }
.closing h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.02em; }
.closing p { color: #D6DEE9; max-width: 36rem; }
.closing .actions { margin-top: 10px; }

/* Footer */
.site-foot { background: var(--night); color: var(--mist); padding: 28px var(--gutter) 36px; border-top: 1px solid rgba(169,184,206,.18); font-size: 15px; }
.foot-in { max-width: var(--measure); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.foot-links a { color: var(--mist); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot-links a:hover { color: var(--card); }

@media (max-width: 1160px) {
  .site-nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 820px) {
  body { font-size: 17px; }
  .band-in, .split, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .phone-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions .btn { flex: 1 1 170px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
