/* Strenvia website. One stylesheet, no inline styles (the Content-Security-Policy blocks them).
   Colours: Obsidian #14191F, Electric Tangerine #FF681F, Warm Ivory #F7F5F0, Steel #84929E, Ice Mint #A6E8D4.
   Phone first: base styles are for small screens, wider screens are added at the bottom. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/saira-800-italic.woff2") format("woff2"); }

:root {
  --obsidian: #14191F;
  --tangerine: #FF681F;
  --ivory: #F7F5F0;
  --steel: #84929E;
  --mint: #A6E8D4;
  --card: #1B222A;
  --line: #2B343E;
  --soft: #DDE2E6;
  --quiet: #B9C2CA;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ivory); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
strong, b { font-weight: 700; }

.display {
  font-family: Saira, Inter, sans-serif;
  font-style: italic;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.mint { color: var(--mint); }
.muted { color: var(--steel); }
.small { font-size: 0.9375rem; }
.kicker { margin: 0 0 0.5rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Skip link: hidden until focused */
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; padding: 12px 16px; border-radius: 999px; background: var(--ivory); color: var(--obsidian); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { width: auto; height: 30px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--tangerine); text-decoration: underline; }

/* Buttons and chips */
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; line-height: 1.25; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center; }
.btn { background: var(--tangerine); color: var(--obsidian); }
.btn:hover { background: #FF7A38; color: var(--obsidian); }
.btn-ghost { border: 1px solid var(--steel); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn, .actions .btn-ghost { flex: 1 1 220px; }
.soon { justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); flex: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores img { height: 48px; width: auto; }

/* Cards and lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card > :last-child { margin-bottom: 0; }
.card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.card h3:not(.display) { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.ticks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  background: url("../img/tick.svg") no-repeat center / 22px 22px;
}
.grid { display: grid; gap: 20px; }
.section { padding-top: 56px; }
h2.display { margin-bottom: 0.75rem; }
h3.display { margin-bottom: 0.75rem; }
.section h2.display { font-size: 2rem; margin-bottom: 1.25rem; }
.card h2.display { font-size: 1.625rem; }
.lead { font-size: 1.125rem; color: var(--soft); max-width: 36rem; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,31,0.92) 0%, rgba(20,25,31,0.86) 55%, rgba(20,25,31,0.55) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 32px; padding-top: 40px; padding-bottom: 0; }
.hero-text { display: grid; gap: 20px; align-content: start; }
.hero h1 { font-size: 2.875rem; }
.hero .lead { margin: 0; }
.hero-note { margin: 0; padding-bottom: 16px; }
.hero-screens { position: relative; height: 330px; overflow: hidden; display: flex; justify-content: center; }
.screen { border-radius: 28px; border: 1px solid #3A4550; }
.hero-screens .front { width: 260px; position: relative; z-index: 2; align-self: flex-start; }
.hero-screens .back { display: none; }

/* Screens strip */
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 4px 20px 12px; margin: 0 -20px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; }
.shots figure { margin: 0; flex: 0 0 232px; scroll-snap-align: start; }
.shots img { border-radius: 24px; border: 1px solid var(--line); }
.shots figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--quiet); }
.shots figcaption b { color: var(--ivory); }

/* Pricing */
.price { margin: 0 0 0.25rem; }
.price .amount { font-size: 2.5rem; }
.plan-card { display: grid; gap: 6px; align-content: start; }
.plan-card.best { border-color: var(--tangerine); }
.tag { justify-self: start; margin: 0 0 6px; padding: 4px 12px; border-radius: 999px; background: var(--mint); color: var(--obsidian); font-size: 0.8125rem; font-weight: 700; }
.price { white-space: nowrap; }
.grid.four .price .amount { font-size: 2.125rem; }
.grid + .small, .grid + p { margin-top: 20px; }
.plan-card .ticks { margin: 12px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* Legal pages */
.legal { padding-top: 40px; }
.legal h1 { font-size: 2.5rem; }
.legal h2 { font-size: 1.625rem; margin: 2.5rem 0 0.75rem; scroll-margin-top: 16px; }
.legal ul { margin: 0 0 1em; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.5em; }
.toc ol { margin: 0; padding-left: 1.4rem; display: grid; gap: 6px; }
.toc h2 { font-size: 1rem; font-family: Inter, sans-serif; font-style: normal; font-weight: 700; margin: 0 0 10px; }

/* Steps and FAQ */
.steps { margin: 0 0 1em; padding-left: 1.4rem; display: grid; gap: 10px; }
details.card { padding: 0; }
details.card summary { cursor: pointer; padding: 16px 20px; min-height: 48px; font-weight: 700; list-style-position: inside; }
details.card summary::marker { color: var(--tangerine); }
details.card .answer { padding: 0 20px 18px; }
details.card .answer > :last-child { margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.callout { border-color: var(--tangerine); }

/* Footer */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 18px; padding-top: 32px; padding-bottom: 40px; }
.site-footer .brand img { height: 26px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--quiet); font-size: 0.9375rem; }
.foot-nav a:hover { color: var(--ivory); }
.site-footer p { margin: 0; color: var(--steel); font-size: 0.875rem; }

.page-top { padding-top: 40px; }
.page-top h1 { font-size: 2.5rem; }
.page-top h2 { font-size: 1.5rem; }

/* 404 */
.notfound { padding-top: 64px; display: grid; gap: 16px; justify-items: start; }
.notfound h1 { font-size: 2.75rem; }

/* Tablet and up */
@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .brand img { height: 36px; }
  .nav { gap: 0 28px; }
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 24px; }
  .section { padding-top: 80px; }
  .section h2.display { font-size: 2.5rem; }
  .card h2.display { font-size: 2rem; }
  .actions .btn, .actions .btn-ghost { flex: 0 0 auto; }
  .shots { margin: 0; padding: 4px 0 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .shots figure { flex: none; }
  .legal h1 { font-size: 3.25rem; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}

/* Desktop */
@media (min-width: 960px) {
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; padding-top: 80px; padding-bottom: 88px; }
  .hero h1 { font-size: 4.5rem; }
  .hero-photo { left: 40%; }
  .hero-photo::after { background: linear-gradient(90deg, #14191F 0%, rgba(20,25,31,0.75) 35%, rgba(20,25,31,0.25) 100%); }
  .hero-screens { height: 560px; overflow: visible; display: block; }
  .hero-screens .front { position: absolute; right: 0; top: 0; width: 300px; }
  .hero-screens .back { display: block; position: absolute; left: 0; top: 70px; width: 250px; opacity: 0.9; }
  .hero-note { grid-column: 2; text-align: right; padding-bottom: 0; }
  .pricing-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
