/* Svitun site. Brand colors: docs/design/identity.md. No external fonts or images. */

:root {
  color-scheme: light dark;
  --night-0: #05080F;
  --night-1: #16243A;
  --light-0: #FFD60A;
  --light-1: #FFB800;

  --bg: #FFFFFF;
  --bg-soft: #F4F6FA;
  --fg: #0B1220;
  --muted: #4A5568;
  --border: #DCE1EA;
  --link: #0A55C2;
  --focus: #0A55C2;

  --hero-fg: #F3F5F9;
  --hero-muted: #B9C3D3;

  --radius: 16px;
  --width: 60rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05080F;
    --bg-soft: #0E1726;
    --fg: #E8ECF2;
    --muted: #A9B4C4;
    --border: #22324B;
    --link: #7DB3FF;
    --focus: #FFD60A;
  }
}

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

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.0625rem;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header: the brand and the language switch. Night on every page, so the hero continues it. */
.site-header {
  background: var(--night-0);
  color: var(--hero-fg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.site-header a { color: var(--hero-fg); text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.site-header .site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
}
.site-header__brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-header nav { display: flex; gap: 1.25rem; font-size: 0.9375rem; }
.site-header :focus-visible { outline-color: var(--light-0); }

/* Hero: always night, whatever the theme. */
.hero {
  background: linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 100%);
  color: var(--hero-fg);
  padding: 2.5rem 0 3rem;
}
.hero .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero__icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 0 48px rgba(255, 214, 10, 0.25);
}
.hero h1 {
  margin: 1.25rem 0 0.25rem;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__promise {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--light-0);
}
.hero__lead { margin: 0 0 1.5rem; color: var(--hero-muted); max-width: 34rem; }
.hero a { color: var(--light-0); }
.hero :focus-visible { outline-color: var(--light-0); }

.badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 214, 10, 0.55);
  border-radius: 999px;
  color: var(--hero-fg);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero__shot { justify-self: center; }
.hero__shot img { width: 260px; }

@media (min-width: 48rem) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero .wrap { grid-template-columns: 1fr auto; }
  .hero__shot img { width: 280px; }
}

/* Phone screenshots keep the device's own corners. */
.shot img {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: #F2F2F7;
}
.hero .shot img { border-color: rgba(255, 255, 255, 0.18); }

/* Sections */
main section { padding: 3rem 0; }
main section + section { border-top: 1px solid var(--border); }
main h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
main h3 { margin: 0 0 0.375rem; font-size: 1.125rem; line-height: 1.3; }
main p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.features li::before {
  content: "";
  display: block;
  width: 2rem;
  height: 4px;
  margin-bottom: 0.875rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--light-0), var(--light-1));
}
.features p { margin: 0; color: var(--muted); }

.regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.regions li {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
}

.shots {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 280px));
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shots figure { margin: 0; }
.shots img { width: 100%; max-width: 280px; margin: 0 auto; }
.shots figcaption { margin-top: 0.75rem; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* Long text: privacy and support. */
.prose { max-width: 42rem; padding: 2.5rem 0 3rem; }
.prose h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.prose h2 { margin: 2.5rem 0 0.75rem; font-size: 1.375rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .meta { color: var(--muted); margin-bottom: 2rem; }
.prose details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
}
.prose summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
}
.prose details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.prose details > :last-child { margin-bottom: 1.25rem; }

.contact {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin: 1.5rem 0 2rem;
}
.contact p:last-child { margin-bottom: 0; }
.contact a { font-weight: 600; font-size: 1.125rem; }

table.summary { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 0.9375rem; }
table.summary th, table.summary td {
  text-align: left;
  vertical-align: top;
  padding: 0.625rem 0.5rem 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
table.summary th { font-weight: 600; width: 45%; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer p { margin: 0; }

/* Root and 404: a single centered card on night. */
.plain {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 100%);
  color: var(--hero-fg);
  text-align: center;
}
.plain a { color: var(--light-0); }
.plain :focus-visible { outline-color: var(--light-0); }
.plain h1 { margin: 1rem 0 0.5rem; font-size: 2rem; }
.plain p { margin: 0.5rem 0; }
.plain img { margin: 0 auto; width: 80px; height: 80px; border-radius: 18px; }

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