/* Mosicu website. Palette and fonts follow the app (app/lib/theme.dart).
   Tweak the tokens below to restyle the whole site. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/fonts/public-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* palette (app Palette) */
  --forest: #2e5e3e;
  --forest-dark: #1f4229;
  --forest-tint: #e6eee6;
  --ember: #b8480f;
  --ember-dark: #8f360a;
  --ember-tint: #f8e5d9;
  --amber: #e0a21b;
  --lake: #2f5e8c;
  --stone: #f3f0e8;
  --paper: #fbf9f4;
  --line: #ddd6c6;
  --terrain: #e4decb;
  --ink: #1c231e;
  --ink-soft: #4a5249;
  --white: #fff;

  /* roles */
  --bg: var(--stone);
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --primary: var(--forest);
  --primary-hover: var(--forest-dark);
  --on-primary: var(--white);
  --focus: var(--lake);
  --error: var(--ember);

  /* type */
  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-0: 1.125rem; /* body: 18px, readable outdoors */
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem);

  /* layout */
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 1px 2px rgb(28 35 30 / 6%), 0 8px 24px rgb(28 35 30 / 8%);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0) / 1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.icon { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: 0.5rem; z-index: 100; }
.skip:focus { left: 0.5rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.75rem 1.5rem;
  background: var(--primary); color: var(--on-primary);
  border: 2px solid var(--primary); border-radius: 999px;
  font: 700 1.05rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn .icon { width: 1.25em; height: 1.25em; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--forest-tint); color: var(--primary-hover); }
.btn-small { min-height: 2.6rem; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(243 240 232 / 92%); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; font: 800 1.45rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 1.6rem; height: auto; aspect-ratio: 572 / 742; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 1.5rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.main-nav a:hover { color: var(--primary); text-decoration: underline; }
.lang-switch { display: flex; gap: 0.15rem; margin-left: auto; font-size: 0.9rem; font-weight: 700; }
.lang-switch a, .lang-switch span { display: inline-grid; place-items: center; min-width: 2.5rem; min-height: 2.5rem; border-radius: 999px; text-decoration: none; color: var(--ink-soft); }
.lang-switch a:hover { background: var(--forest-tint); color: var(--primary); }
.lang-switch span { background: var(--ink); color: var(--white); }
.site-header .btn-small { display: none; }
@media (min-width: 40rem) { .site-header .btn-small { display: inline-flex; } }
@media (min-width: 64rem) {
  .main-nav { display: block; }
  .lang-switch { margin-left: 0.5rem; }
}

/* hero */
.hero { position: relative; background: linear-gradient(180deg, var(--forest-tint) 0%, var(--stone) 100%); padding-top: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; position: relative; z-index: 1; }
.hero-copy { max-width: 38rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; padding: 0.35rem 0.9rem 0.35rem 0.6rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--forest); font-weight: 700; font-size: 0.95rem; }
.eyebrow .icon { width: 1.3em; height: 1.3em; }
.lead { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); color: var(--ink-soft); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.note { color: var(--ink-soft); font-size: 1rem; }
.hero-art { position: relative; display: flex; justify-content: center; padding-bottom: 2rem; }
.hero .ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(5rem, 14vw, 11rem); }
.ridge .r1 { fill: #c9d6c7; }
.ridge .r2 { fill: #9bb59d; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .hero-art { justify-content: flex-end; padding-bottom: 4rem; }
}

/* phone frames around the screenshots */
.phone { margin: 0; width: min(100%, 18rem); padding: 0.55rem; background: #121613; border-radius: 2.6rem; box-shadow: 0 2px 4px rgb(0 0 0 / 15%), 0 24px 48px rgb(28 35 30 / 22%); }
.phone img { border-radius: 2.1rem; width: 100%; background: var(--terrain); }
.hero .phone-main { width: min(72vw, 19rem); position: relative; z-index: 2; }
.hero .phone-back { display: none; }
@media (min-width: 40rem) {
  .hero .phone-back { display: block; position: absolute; width: 15rem; right: calc(50% - 17rem); top: 3rem; transform: rotate(6deg); z-index: 1; opacity: 0.95; }
  .hero .phone-main { transform: translateX(-3rem) rotate(-2deg); }
}
@media (min-width: 56rem) {
  .hero .phone-back { right: -1rem; }
  .hero .phone-main { transform: translateX(-6rem) rotate(-2deg); }
}

/* sections */
.section { padding-block: var(--section-y); }
.section-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 42rem; margin-bottom: 2.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.cards-3 { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.problem .card { border-left: 5px solid var(--ember); }

.steps { background: var(--paper); border-block: 1px solid var(--line); }
.steps-list { display: grid; gap: 3rem; counter-reset: step; }
.step { display: grid; gap: 1.5rem; justify-items: center; text-align: center; }
.step .phone { width: min(70vw, 15rem); }
.step-num { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 0.75rem; border-radius: 50%; background: var(--forest); color: var(--white); font: 800 1.3rem/1 var(--font-display); }
.step-text { max-width: 22rem; }
@media (min-width: 56rem) { .steps-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.features-grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .features-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.feature h3 { margin-top: 0.9rem; }
.feature p { color: var(--ink-soft); font-size: 1.05rem; }
.feature-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.9rem; background: var(--forest-tint); color: var(--forest); }

.gallery { padding-bottom: calc(var(--section-y) - 1rem); }
.gallery-strip {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 1.5rem;
  scrollbar-color: var(--line) transparent;
}
.gallery-strip li { flex: none; width: 14rem; scroll-snap-align: center; text-align: center; }
.gallery-strip .phone { width: 100%; box-shadow: 0 12px 28px rgb(28 35 30 / 18%); }
.gallery-strip p { margin-top: 0.9rem; font-weight: 600; font-size: 1rem; }

.mountains { background: var(--forest-dark); color: var(--paper); }
.mountains h2 { color: var(--white); }
.mountains .section-lead { color: #d6e2d6; }
.mountains .card { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 14%); box-shadow: none; }
.mountains .feature p { color: #d6e2d6; }
.mountains .feature-icon { background: rgb(255 255 255 / 12%); color: #bfe0c6; }
.coming { margin-top: 2rem; padding: 1rem 1.25rem; border: 1px dashed rgb(255 255 255 / 35%); border-radius: var(--radius); color: #e8efe8; }
.coming strong { color: var(--amber); }

.pilot { background: var(--forest-tint); }
.pilot-grid { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .pilot-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; align-items: start; } .pilot-copy { position: sticky; top: 6rem; } }
.ticks { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; }
.ticks .icon { color: var(--forest); margin-top: 0.1rem; }

/* form */
.contact-form { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 4vw, 2rem); }
.grid-2 { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 1rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; min-height: 3.1rem; padding: 0.7rem 0.9rem;
  border: 2px solid #b9b19f; border-radius: 0.75rem; background: var(--white); color: var(--ink);
  font: 400 1.05rem/1.4 var(--font-body);
}
textarea { resize: vertical; min-height: 7rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.3rem) 50%, calc(100% - 0.9rem) 50%; background-size: 0.4rem 0.4rem; background-repeat: no-repeat; padding-right: 2.5rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
::placeholder { color: #767c73; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-error { margin: 0; color: var(--ember-dark); font-weight: 600; font-size: 0.95rem; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.check input { width: 1.5rem; height: 1.5rem; min-height: 0; margin: 0.15rem 0 0; accent-color: var(--forest); }
.check label { font-weight: 400; }
.check .field-error { grid-column: 2; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 0.8rem 1rem; border-radius: 0.75rem; background: var(--ember-tint); color: var(--ember-dark); font-weight: 600; }
.cf-turnstile:empty { display: none; }
.form-done { text-align: center; padding: 2.5rem 1.5rem; }
.done-icon { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--forest); color: var(--white); margin-bottom: 1rem; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font: 700 1.6rem/1 var(--font-display); color: var(--forest); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); }
.faq details > div p { margin: 0; }

/* text pages */
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.3rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.35em; }
.prose .updated { color: var(--ink-soft); font-size: 1rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--forest-tint); }
.not-found { text-align: center; min-height: 50vh; }
.not-found .lead { margin-inline: auto; }
.not-found .eyebrow { font: 800 1.2rem/1 var(--font-display); }

/* footer */
.site-footer { background: var(--ink); color: #d9ddd6; padding-block: 3rem 1.5rem; font-size: 1rem; }
.site-footer a { color: var(--white); }
.brand-footer { color: var(--white); margin-bottom: 0.75rem; }
.brand-footer:hover { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1fr auto; } }
.footer-links { display: grid; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 15%); margin-top: 2rem; padding-top: 1.25rem; color: #aab1a7; }
.footer-bottom p { margin: 0; }
