/* SenSPool marketing site. Palette "Sol" from the app (src/styles/tokens.css). */
:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-2: #e8f1fa;
  --text: #0b1f33;
  --text-muted: #40566e;
  --border: #c9d6e3;
  --accent: #0b5fcc;
  --accent-hover: #094fa9;
  --accent-soft: #dcebff;
  --ok: #1a7a47;
  --ok-soft: #ddf3e6;
  --focus: #0b5fcc;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-md: 0 1px 2px rgb(11 31 51 / 8%), 0 4px 14px -8px rgb(11 31 51 / 18%);
  --shadow-lg: 0 2px 6px rgb(11 31 51 / 8%), 0 24px 48px -24px rgb(11 31 51 / 35%);
  --wrap: 1160px;
  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6.5vw, 3.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 750;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

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

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

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

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

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

.brand img {
  width: 36px;
  height: 36px;
}

.brand:hover {
  color: var(--text);
}

.nav-links {
  display: none;
  gap: 24px;
  margin: 0 12px 0 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.btn-sm {
  white-space: nowrap;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.95rem;
}

.header-actions .btn-signin {
  display: none;
}

@media (min-width: 560px) {
  .header-actions .btn-signin {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 48px 0 56px;
  overflow: hidden;
}

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

@media (min-width: 980px) {
  .hero {
    padding: 80px 0 88px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: #0a4ea8;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 12px;
}

.cta-row .btn {
  flex: 1 1 220px;
}

@media (min-width: 560px) {
  .cta-row .btn {
    flex: 0 0 auto;
  }
}

.fine-print {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231a7a47' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

.hero-visual {
  position: relative;
  padding-bottom: 8%;
  padding-right: 6%;
}

.shot-desktop {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.shot-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  border-radius: 18px;
  border: 5px solid var(--text);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

@media (min-width: 980px) {
  .section {
    padding: 96px 0;
  }
}

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

.section-head {
  max-width: 44em;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Who it's for */
.cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

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

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

/* Features */
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
}

.feature + .feature {
  border-top: 1px solid var(--border);
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 48px 0;
  }

  .feature.flip .feature-media {
    order: -1;
  }
}

.feature-text ul {
  padding-left: 1.2em;
  margin: 0;
  color: var(--text-muted);
}

.feature-text li + li {
  margin-top: 6px;
}

.feature-text li strong {
  color: var(--text);
}

.tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a4ea8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.feature-media {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.feature-media figure {
  margin: 0;
  flex: 0 1 240px;
  min-width: 0;
}

.feature-media figure.wide {
  flex: 1 1 100%;
}

.phone-frame {
  border-radius: var(--radius-xl);
  border: 5px solid var(--text);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  overflow: hidden;
}

.wide .phone-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

figcaption {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* Languages strip */
.lang-strip {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 720px) {
  .lang-strip {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 880px;
  }
}

.plan {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--accent);
}

.plan h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.plan-for {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.price span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan .check-list {
  margin: 20px 0 28px;
  flex: 1;
}

.plan .btn {
  width: 100%;
}

.badge {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pricing-notes {
  margin-top: 28px;
  max-width: 880px;
  color: var(--text-muted);
}

.pricing-notes ul {
  padding-left: 1.2em;
  margin: 0;
}

.pricing-notes li + li {
  margin-top: 6px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 18px 32px 18px 0;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  color: #e6f0ff;
  font-size: 1.125rem;
}

.final-cta .cta-row {
  justify-content: center;
}

.final-cta .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.final-cta .btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent-hover);
}

.final-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.final-cta .btn-secondary:hover {
  background: rgb(255 255 255 / 14%);
  color: #fff;
}

.final-cta :focus-visible {
  outline-color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #d5e0ec;
  padding: 40px 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
}

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

.site-footer :focus-visible {
  outline-color: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding: 10px 0;
}

.site-footer .fine-print {
  color: #d5e0ec;
}

.site-footer .brand {
  color: #fff;
  margin: 0;
}

/* ---------- Simple pages ---------- */
.simple-page {
  padding: 72px 0;
  min-height: 60vh;
}

.simple-page .card {
  max-width: 640px;
}

.simple-page .card p + p {
  margin-top: 1em;
}

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.video-card {
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.video-card figcaption {
  display: grid;
  gap: 4px;
}
.video-card figcaption span {
  color: var(--text-muted);
  font-size: 0.95rem;
}
@media (max-width: 520px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
