/* Fuselings website. Plain CSS, no build step. Fredoka is self-hosted (SIL OFL, see fonts/OFL.txt). */
@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/Fredoka-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --navy: #1B1F45;
  --navy-soft: #3A3F6E;
  --cream: #FFF9EE;
  --paper: #FFFFFF;
  --sky: #E6F6FF;
  --blue: #4CC9FE;
  --blue-ink: #0F5F8C;      /* link colour, 6.9:1 on cream */
  --yellow: #FFD24A;
  --yellow-soft: #FFF1C2;
  --pink: #FF7BAC;
  --pink-soft: #FFE3EE;
  --line: #E9E3D6;
  --fill-bg: #FFE3EE;
  --fill-ink: #8A1240;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(27, 31, 69, 0.08), 0 14px 32px rgba(27, 31, 69, 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 400 1.0625rem/1.65 "Fredoka", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

a { color: var(--blue-ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--navy); text-decoration-color: var(--pink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 150px; height: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 999px; min-height: 44px; line-height: 28px;
  color: var(--navy); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { background: var(--sky); color: var(--navy); }
.site-nav a[aria-current="page"] { background: var(--yellow-soft); }

/* Type */
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.7rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem); margin: 1.8em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 0.4em; }
p, ul, ol, dl, table { margin: 0 0 1em; }
li { margin: 0.25em 0; }
ul li::marker { color: var(--pink); }
strong { font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--sky); padding: 1px 6px; border-radius: 6px; }
.lead { font-size: 1.2rem; color: var(--navy-soft); }
.meta { color: var(--navy-soft); font-size: 0.95rem; }

/* Placeholders the founder must fill before publishing */
.fill {
  background: var(--fill-bg); color: var(--fill-ink); font-weight: 600;
  padding: 0 6px; border-radius: 6px; border: 1px dashed var(--fill-ink);
}

/* Page body */
main { display: block; padding: 32px 0 56px; }
main.home { padding: 0; }
.badges li { flex-wrap: wrap; }
.page-head { margin-bottom: 8px; }
.card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin: 0 0 20px;
}
@media (min-width: 640px) { .card { padding: 28px 32px; } }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.note { background: var(--sky); border: 2px solid #CBEBFF; border-radius: 16px; padding: 14px 18px; margin: 0 0 20px; }
.note.warn { background: var(--yellow-soft); border-color: #FBE29A; }
.note > :last-child { margin-bottom: 0; }

/* Tables: scroll inside their own box on small screens, never the page */
.table-scroll { overflow-x: auto; margin: 0 0 1em; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); }
.table-scroll:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; min-width: 640px; margin: 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--yellow-soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  background: var(--yellow); color: var(--navy); font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 0 #E0A800;
}
.btn:hover { background: #FFDC6B; color: var(--navy); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #E0A800; }
.btn.secondary { background: var(--paper); border: 2px solid var(--navy); box-shadow: 0 4px 0 var(--navy); }
.btn.secondary:hover { background: var(--sky); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* Home */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%); padding: 28px 0 8px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); padding-bottom: 24px; } }
.hero-logo { width: min(520px, 100%); height: auto; display: block; margin: 0 0 8px; }
.tagline { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 600; margin: 0 0 12px; }
.tagline span { color: #C2185B; }
.hero-phone { justify-self: center; width: min(280px, 72vw); }
.hero-phone img { display: block; width: 100%; border-radius: 28px; border: 6px solid var(--navy); box-shadow: var(--shadow); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.badges li {
  margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 500;
}
.badges li::marker { content: none; }
.badges small { color: var(--yellow); font-weight: 600; }
.features { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { margin: 0; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.features li::marker { content: none; }
.features h3 { margin: 0 0 4px; }
.features p { margin: 0; color: var(--navy-soft); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.shots img { display: block; width: 100%; border-radius: 16px; border: 4px solid var(--navy); }
.beta { background: var(--yellow-soft); border: 2px solid #FBE29A; }

/* FAQ */
details { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 0 18px; margin: 0 0 12px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 48px; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details > :last-child { margin-bottom: 16px; }

/* Press */
.facts dt { font-weight: 600; margin-top: 10px; }
.facts dd { margin: 0; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.grid a img { display: block; width: 100%; border-radius: 12px; border: 3px solid transparent; }
.grid a:hover img { border-color: var(--pink); }
.gifs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gifs figure { margin: 0; }
.gifs img { display: block; width: 100%; border-radius: 12px; }
figcaption { font-size: 0.9rem; color: var(--navy-soft); margin-top: 4px; }
.video { display: flex; justify-content: center; }
.video video { width: min(320px, 100%); border-radius: 18px; background: #000; }
.downloads { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.dl { background: var(--sky); border-radius: 16px; padding: 14px; text-align: center; text-decoration: none; color: var(--navy); }
.dl img { height: 90px; width: 100%; object-fit: contain; display: block; margin: 0 auto 8px; }
.dl span { display: block; font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.swatches li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.swatches li::marker { content: none; }
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); }

/* Footer */
.site-footer { background: var(--navy); color: #E8EAFF; padding: 32px 0 40px; font-size: 0.95rem; }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 16px; }
.site-footer li { margin: 0; }
.site-footer li::marker { content: none; }
.site-footer p { margin: 0 0 6px; }
.site-footer .fill { background: #FFE3EE; }
