/* Solead website. Brand tokens copied from the app (frontend/src/tokens.css):
   brand accent #00E5A0, brand dark #0D0D0D, brand light #F0F0F0. No web fonts are
   downloaded: Inter is used only when it is already installed. */

:root {
  --brand-accent: #00e5a0;
  --brand-accent-hover: #00cc8e;
  --brand-dark: #0d0d0d;
  --brand-light: #f0f0f0;
  --on-accent: #000000;
  --state-armed: #ffb800;

  --bg: #0d0d0d;
  --surface: #1a1a1e;
  --elevated: #242428;
  --border: #2e2e34;
  --text: #f0f0f0;
  --muted: #b8b8c0;
  --link: #00e5a0;
  --accent-soft: #092418;

  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f8;
    --surface: #ffffff;
    --elevated: #efeff2;
    --border: #d4d4dc;
    --text: #121214;
    --muted: #4a4a55;
    --link: #00704d;
    --accent-soft: #dcfbef;
    color-scheme: light;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  background: var(--brand-accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.25rem;
  margin-right: auto;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.main-nav ul,
.lang-switch ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
  padding: 8px 2px;
  display: inline-block;
}

.main-nav a:hover {
  color: var(--link);
}

.main-nav a[aria-current='page'] {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.lang-switch ul {
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 650;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current='true'] {
  background: var(--brand-accent);
  color: var(--on-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--brand-accent-hover);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--link);
}

.btn-small {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 0.95rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Sections */
main {
  display: block;
}

.section {
  padding: clamp(48px, 7vw, 96px) 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--muted);
  max-width: 44em;
}

.section-head {
  max-width: 46em;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--muted);
}

/* Hero */
.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 6vw, 80px);
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}

.hero-note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

/* Grids and cards */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.section-alt .card {
  background: var(--bg);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
}

.card h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card h3 .badge {
  margin-top: 0.1em;
}

.dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--brand-accent);
  background: radial-gradient(circle, var(--brand-accent) 0 30%, transparent 32%);
  margin-top: 0.22em;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--link);
  border: 1px solid var(--link);
  vertical-align: middle;
  line-height: 1.5;
}

.badge-soon {
  background: transparent;
  color: var(--muted);
  border-color: var(--muted);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--link);
  border-bottom: 3px solid var(--link);
  transform: rotate(-45deg);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.section-alt .steps li {
  background: var(--bg);
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--on-accent);
  font-weight: 800;
  margin-bottom: 12px;
}

.steps p {
  color: var(--muted);
}

.steps p:last-child {
  margin-bottom: 0;
}

.gig-diagram {
  margin: 0 0 28px;
}

.gig-diagram img {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

/* Screens */
.screens {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.screens figure {
  margin: 0;
}

.screens img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.screens figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pricing */
.price-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--brand-accent);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 36px);
}

.section-alt .price-card {
  background: var(--bg);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 8px 0 16px;
}

.price-amount {
  font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}

.price-terms {
  color: var(--muted);
  font-weight: 600;
}

.buy-box {
  margin-top: 20px;
}

.buy-box .btn {
  width: 100%;
}

.buy-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.soon-box {
  border: 1px dashed var(--muted);
  border-radius: var(--radius);
  padding: 16px;
}

.soon-box p {
  margin-bottom: 12px;
}

/* FAQ */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 2px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 0;
}

.faq details p {
  color: var(--muted);
}

/* Features page */
.feature-block {
  display: grid;
  gap: 8px 40px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.feature-block:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (min-width: 860px) {
  .feature-block {
    grid-template-columns: 1fr 1.35fr;
  }
}

.feature-block h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
}

.feature-block .intro {
  color: var(--muted);
}

/* Requirements */
.req {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.req li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.req strong {
  display: block;
  margin-bottom: 4px;
}

.req span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Prose pages (legal, thanks) */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.prose h3 {
  margin-top: 1.5em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.todo {
  background: rgba(255, 184, 0, 0.2);
  border-bottom: 2px dotted var(--state-armed);
  padding: 0 3px;
  font-weight: 600;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.callout {
  border-left: 4px solid var(--brand-accent);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.form-model {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  background: var(--surface);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--link);
}

.site-footer p {
  margin: 0 0 6px;
}

/* Language chooser (root page and 404) */
.chooser {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.chooser .brand {
  margin: 0 auto 20px;
  font-size: 1.6rem;
}

.chooser ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.chooser p {
  color: var(--muted);
}

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