/* Flanorys färger (FlanoryColors.kt) och typsnitt (Type.kt), som i design/homepage.html */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/bricolage-grotesque.woff2?v=48dfec74") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --bg: #F7F3EC; --surface: #FFFFFF; --border: #EDE6DC;
  --text: #2B2622; --text2: #6E655C; --accent: #E4653F; --accent-soft: #FBE3D9;
  --on-accent-soft: #9C3A1C; --ink: #2B2622; --on-ink: #FFFFFF; --on-ink-muted: #E9E1D7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Bricolage Grotesque", system-ui, sans-serif; }
.page { max-width: 1100px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* huvud och fot */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; gap: 16px; }
/* Som appens märke (BrandMark + brand_wordmark, titleLarge): "flanory" med litet f. */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; font-variation-settings: "opsz" 96; font-feature-settings: "liga" 0, "clig" 0; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang { font-size: 13px; color: var(--text2); letter-spacing: .3px; }
.lang b { color: var(--text); font-weight: 600; }
.lang a { color: var(--text2); text-decoration: none; }
.lang a:hover { color: var(--text); }
.get { border: 1.5px solid var(--ink); color: var(--text); font-weight: 600; font-size: 14px; padding: 7px 16px; border-radius: 99px; text-decoration: none; white-space: nowrap; }
.soon-pill { border: 1.5px dashed var(--text2); color: var(--text2); font-weight: 600; font-size: 14px; padding: 7px 16px; border-radius: 99px; white-space: nowrap; }
footer.site { border-top: 1px solid var(--border); padding: 18px 28px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text2); }
footer.site a { color: var(--text2); }

/* Play-knappen, och "snart" medan appen testas */
.play { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--on-ink); border-radius: 12px; padding: 10px 18px; text-decoration: none; font-weight: 600; font-size: 15px; }
.play svg { width: 20px; height: 20px; flex: none; }
.play small { display: block; font-size: 10px; font-weight: 500; color: var(--on-ink-muted); line-height: 1; }
.play.soon { background: transparent; color: var(--text); border: 1.5px dashed var(--text2); }
.play.soon small { color: var(--text2); }
.play.soon svg path { fill: var(--text2); }

/* startsidan */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; padding: 30px 28px 40px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.02; font-weight: 800; margin: 0 0 14px; letter-spacing: -.5px; }
.hero p.lead { font-size: 17px; line-height: 1.5; color: var(--text2); margin: 0 0 22px; max-width: 430px; }
.steps-tour { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 4px; max-width: 430px; }
.steps-tour li { display: flex; gap: 12px; align-items: baseline; padding: 8px 12px; border-radius: 12px; color: var(--text2); transition: background .3s, color .3s; cursor: pointer; }
.steps-tour li:hover:not(.on) { background: rgba(255,255,255,.5); }
.steps-tour li b { color: var(--text); font-weight: 600; min-width: 110px; }
.steps-tour li.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(43,38,34,.06); }
.steps-tour li.on b { color: var(--on-accent-soft); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 28px 32px; }
.three div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.three b { display: block; font-size: 16px; margin-bottom: 6px; }
.three span { color: var(--text2); font-size: 14px; line-height: 1.45; }

/* det du samlar: stämplar och loggboken */
.collect { padding: 8px 28px 40px; }
.collect h2 { font-size: 28px; font-weight: 800; margin: 0 0 20px; letter-spacing: -.3px; }
.collect-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.collect figure { margin: 0; }
/* Appens bakgrund är sidans; korten i bilderna står för sig själva. */
.collect img { display: block; width: 100%; height: auto; }
.collect figcaption { color: var(--text2); font-size: 16px; line-height: 1.5; margin-top: 14px; max-width: 420px; }

/* rundturen i appen */
.tour { position: relative; width: 230px; aspect-ratio: 360 / 703; border-radius: 30px; border: 6px solid var(--ink); background: var(--ink); overflow: hidden; box-shadow: 0 22px 50px rgba(43,38,34,.25); justify-self: center; }
.tour img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transform: translateX(100%); transition: transform .55s cubic-bezier(.3,.7,.2,1); }
.tour:not(.js) img:first-child { transform: none; }
.tour img:not(.on):not(.off) { transition: none; }
.tour img.on { transform: translateX(0); z-index: 2; }
.tour img.off { transform: translateX(-28%); z-index: 1; }
.tap { position: absolute; z-index: 3; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255,255,255,.55); opacity: 0; pointer-events: none; }
.tap.go { animation: tap .6s ease-out; }
@keyframes tap { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .tour img { transition: none; } .tap.go { animation: none; } }

/* textsidorna */
.doc { max-width: 680px; margin: 0 auto; padding: 18px 28px 40px; }
.doc h1 { font-size: 34px; line-height: 1.1; font-weight: 800; margin: 8px 0 4px; }
.doc .meta { color: var(--text2); font-size: 14px; margin: 0 0 18px; }
.doc .short { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin-bottom: 22px; }
.doc .short h2 { font-size: 16px; margin: 0 0 6px; }
.doc .short ul { margin: 0; padding-left: 20px; }
.doc .short li { margin: 4px 0; color: var(--text2); }
.doc h2 { font-size: 19px; font-weight: 800; margin: 26px 0 8px; }
.doc p, .doc li { line-height: 1.55; }
.doc .table { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc td, .doc th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text2); font-weight: 600; }
.doc ol { padding: 0; list-style: none; counter-reset: s; }
.doc ol li { counter-increment: s; position: relative; padding-left: 38px; min-height: 26px; margin: 10px 0; }
.doc ol li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); font-weight: 800; display: grid; place-items: center; font-size: 14px; }

/* mobil */
@media (max-width: 760px) {
  .nav { padding: 14px 16px; }
  .nav .get, .nav .soon-pill { display: none; }
  .hero { grid-template-columns: 1fr; padding: 14px 16px 22px; text-align: center; gap: 22px; }
  .hero h1 { font-size: 32px; line-height: 1.04; margin: 8px 0 10px; }
  .hero p.lead { font-size: 15px; margin: 0 auto 16px; max-width: 320px; }
  .steps-tour { display: none; }
  .tour { width: 200px; }
  .three { grid-template-columns: 1fr; padding: 0 16px 24px; }
  .collect { padding: 8px 16px 28px; }
  .collect h2 { font-size: 22px; text-align: center; }
  .collect-row { grid-template-columns: 1fr; gap: 24px; }
  .collect figcaption { font-size: 15px; margin-top: 10px; }
  .doc { padding: 8px 16px 32px; }
  .doc h1 { font-size: 26px; }
  footer.site { padding: 14px 16px; justify-content: center; }
}
