/* Obur — site styles. Same tokens as the apps (OburDesign.swift). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --base: #F7F6F3;
  --line: #F9D7CC;
  --accent: #FF5B2E;
  --accent-dark: #CD4D2B;
  --accent-light: #FF8462;
  --accent-soft: #FFDED5;
  --ink: #1B1A1F;
  --muted: #4A4752;
  --card: #FFFFFF;
  --mint: #D7F5C4;
  --lilac: #E3D7FF;
  --peach: #FFE1C7;
  --sky: #C9E7FF;
  --lemon: #FFF0A8;
  --pink: #FFD1EA;
  --radius: 28px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--base);
  background-image: repeating-linear-gradient(135deg, transparent 0 20px, color-mix(in srgb, var(--line) 55%, transparent) 20px 22.5px);
  background-attachment: fixed;
}

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

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

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

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 22px; padding-bottom: 10px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.sticker {
  display: inline-block; padding: 2px 11px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--accent); font-size: 13px; font-weight: 800; line-height: 1.5; color: var(--ink);
  transform: rotate(-4deg);
}
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-weight: 700; font-size: 15px; text-decoration: none; padding: 7px 13px;
  border: 2px solid transparent; border-radius: 999px;
}
.nav a:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }
.nav a[aria-current="page"] { border-color: var(--ink); background: var(--card); }
.nav .lang { border-color: var(--ink); background: var(--card); box-shadow: 2px 2px 0 var(--ink); }

/* Cards */
.card {
  background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink); padding: 26px;
}
.card + .card { margin-top: 22px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px;
  margin-top: 18px; padding: 34px 38px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 74px); line-height: 0.98; letter-spacing: -0.03em;
  font-weight: 800; margin: 0 0 16px;
}
.hero h1 em { font-style: normal; color: var(--accent); -webkit-text-stroke: 0; }
.hero p.lede { font-size: 20px; line-height: 1.45; margin: 0 0 24px; color: var(--muted); max-width: 30em; }
.hero .meta { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.bubble {
  position: relative; background: var(--ink); color: #fff; border-radius: 18px;
  padding: 10px 18px; font-size: 16px; font-weight: 700; text-align: center;
  transform: rotate(-1.5deg); max-width: 320px;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 13px; height: 13px;
  background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.obur { width: min(300px, 70vw); height: auto; animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.obur .eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.1); } }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 800; font-size: 18px; line-height: 1; padding: 16px 24px;
  border: 2.5px solid var(--ink); border-radius: 18px; background: var(--accent); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: var(--card); }
.btn svg { flex: none; }

/* Sections */
section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; margin: 0; }
.kicker { font-size: 15px; font-weight: 700; color: var(--muted); }

/* Menu grid (pastel plates, like the app) */
.menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plate {
  border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 4px 4px 0 var(--ink);
  padding: 18px 18px 16px; min-height: 150px; display: flex; flex-direction: column; gap: 4px;
}
.plate .ico {
  width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.plate h3 { margin: 0; font-size: 21px; line-height: 1.15; font-weight: 800; }
.plate .dish { font-size: 14px; color: var(--muted); font-weight: 600; }
.plate p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.mint { background: var(--mint); } .lilac { background: var(--lilac); } .peach { background: var(--peach); }
.sky { background: var(--sky); } .lemon { background: var(--lemon); } .pink { background: var(--pink); }

/* Honest numbers */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { padding: 22px; }
.fact .num { font-size: 15px; font-weight: 800; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.fact h3 { margin: 6px 0 8px; font-size: 22px; line-height: 1.15; font-weight: 800; }
.fact p { margin: 0; font-size: 16px; color: var(--muted); }
.facts .card + .card { margin-top: 0; }

/* Screens */
.screens { display: grid; grid-template-columns: 1fr 1fr 2.2fr; gap: 18px; align-items: start; }
.shot { margin: 0; }
.shot img { border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 5px 5px 0 var(--ink); background: var(--card); }
.shot.mac img { border-radius: 14px; }
.shot figcaption { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 10px; text-align: center; }

/* Price */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price .card + .card { margin-top: 0; }
.tier h3 { margin: 0 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.tier .sub { margin: 0 0 14px; color: var(--muted); font-weight: 600; }
.tier.plus { background: var(--accent-soft); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 7px;
  border: 2px solid var(--ink); background: var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231B1A1F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ticks li.no::before {
  background: var(--pink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%231B1A1F' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.fine { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

/* Long-form pages (support, privacy, terms) */
.page { margin-top: 18px; }
.page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.page-head .mini { width: 92px; height: auto; flex: none; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 22px 0 6px; font-weight: 800; }
.prose p, .prose li { color: #2B2930; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.tldr {
  background: var(--lemon); border: 2.5px solid var(--ink); border-radius: 20px; padding: 16px 20px;
  font-weight: 700; margin: 0 0 24px; box-shadow: 3px 3px 0 var(--ink);
}
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.contact .card + .card { margin-top: 0; }
.mail {
  display: inline-block; font-size: clamp(20px, 3vw, 28px); font-weight: 800; letter-spacing: -0.01em;
  word-break: break-all; margin: 6px 0 14px;
}
details {
  border: 2.5px solid var(--ink); border-radius: 18px; background: var(--card);
  box-shadow: 3px 3px 0 var(--ink); padding: 0; margin: 0 0 12px;
}
summary {
  cursor: pointer; list-style: none; padding: 15px 50px 15px 18px; font-weight: 800; font-size: 18px; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 9px; background: var(--accent);
  font-size: 18px; line-height: 21px; text-align: center; font-weight: 800;
}
details[open] summary::after { content: "–"; background: var(--mint); }
details > div { padding: 0 18px 16px; }
details > div p { margin: 0 0 8px; }

/* Footer */
.foot {
  margin-top: 64px; padding-top: 26px; padding-bottom: 40px; border-top: 2.5px solid var(--ink);
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
  font-size: 15px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { font-weight: 700; }
.foot small { color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 26px 22px; text-align: left; }
  .hero-art { order: -1; }
  .menu { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr 1fr; }
  .shot.mac { grid-column: 1 / -1; }
  .price, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .card { padding: 20px; border-radius: 22px; }
  .menu { grid-template-columns: 1fr; }
  .plate { min-height: 0; }
  .wordmark { font-size: 30px; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  .page-head .mini { width: 64px; }
  .hero .obur { width: 168px; }
  .bubble { font-size: 15px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Skip link and 404 */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; font-weight: 800;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }
.lost { text-align: center; }
.lost .card { display: inline-block; max-width: 560px; }
.lost .bubble { margin: 0 auto 10px; }
.lost .btns { justify-content: center; margin-top: 18px; }
