/* SoloCook website. Same palette and type as the app (ios/SoloCook/Theme.swift). */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #131110;
  --cream: #1b1815;
  --cream2: #211d19;
  --ink: #f4f1ec;
  --ink2: #cfc9bf;
  --ink3: #948d82;
  --ink4: #5f594f;
  --rule: #2d2823;
  --accent: #e9b44c;
  --accent-text: #e9b44c;
  --accent-wash: #332a18;
  --on-accent: #131110;
  --glow: rgba(233, 180, 76, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --paper: #fbf8f2;
    --cream: #f4f0e7;
    --cream2: #ede7db;
    --ink: #1a1714;
    --ink2: #3a352f;
    --ink3: #6b6359;
    --ink4: #9c9388;
    --rule: #e2dbcd;
    --accent-text: #8f6a12;
    --accent-wash: #f3e5c4;
    --glow: rgba(233, 180, 76, 0.22);
    --shadow: 0 30px 70px rgba(58, 45, 20, 0.22);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

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

.display, h1, h2, h3 {
  font-family: "Bricolage", -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(46px, 8vw, 92px); }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
.accent { color: var(--accent-text); }
.eyebrow {
  font-family: "Bricolage", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 0 0 14px;
}
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink2); max-width: 34em; margin: 22px 0 0; }
.muted { color: var(--ink3); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink2); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--on-accent); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 650; font-size: 16px; text-decoration: none;
  padding: 14px 24px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 30px rgba(233, 180, 76, 0.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(233, 180, 76, 0.35); }
.btn.small { padding: 9px 16px; font-size: 14px; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink3); }
.btn svg { width: 18px; height: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 800px; z-index: -1;
  background: radial-gradient(600px 420px at 78% 42%, var(--glow), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink3); }
@media (max-width: 880px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .phones { margin-top: 18px; }
}

/* Phone mockups */
.phones { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone {
  position: relative; width: 270px; aspect-ratio: 1206 / 2622;
  border-radius: 46px; padding: 9px;
  background: linear-gradient(145deg, #3a342d, #0c0b0a 60%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #131110; }
.phones .phone.back { position: absolute; transform: translate(-58%, 34px) rotate(-7deg) scale(0.88); opacity: 0.92; }
.phones .phone.front { transform: translate(30%, 0) rotate(3deg); }
@media (min-width: 881px) and (max-width: 1140px) {
  .phones .phone { width: 225px; border-radius: 40px; padding: 8px; }
  .phones .phone img { border-radius: 33px; }
  .phones .phone.back { transform: translate(-36%, 30px) rotate(-7deg) scale(0.88); }
  .phones .phone.front { transform: translate(22%, 0) rotate(3deg); }
}
@media (max-width: 880px) {
  .phones { min-height: 0; padding: 20px 0 30px; }
  .phones .phone.back { transform: translate(-42%, 26px) rotate(-7deg) scale(0.86); }
  .phones .phone.front { transform: translate(24%, 0) rotate(3deg); }
  .phone { width: 220px; border-radius: 38px; }
  .phone img { border-radius: 31px; }
}

/* Sections */
section { padding: 90px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--ink2); margin: 16px 0 0; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--cream); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 44px; color: var(--accent-text); display: block; line-height: 1; margin-bottom: 18px;
}
.step p { color: var(--ink2); margin: 10px 0 0; font-size: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--cream); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-text); margin-bottom: 20px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--ink2); margin: 10px 0 0; font-size: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Screens gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 10px 20px 30px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 240px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.08); }
.gallery figcaption { margin-top: 16px; font-size: 14px; color: var(--ink3); }
@media (min-width: 1200px) { .gallery { justify-content: center; } }

/* Cuisines */
.cuisines { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cuisine { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; }
.cuisine img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cuisine:hover img { transform: scale(1.05); }
.cuisine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75)); }
.cuisine span { position: absolute; left: 12px; bottom: 10px; z-index: 1; color: #fff; font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 17px; }
@media (max-width: 900px) { .cuisines { grid-template-columns: repeat(3, 1fr); } }
.stat-row { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 34px; }
.stat b { display: block; font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.stat span { color: var(--ink3); font-size: 14px; }

/* Quiet band */
.quiet {
  border-radius: 32px; padding: 56px; position: relative; overflow: hidden;
  background: var(--cream); border: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.quiet ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.quiet li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink2); }
.quiet li svg { flex: 0 0 20px; margin-top: 3px; color: var(--accent-text); }
@media (max-width: 820px) { .quiet { grid-template-columns: 1fr; padding: 34px 26px; } }

/* Final CTA */
.final { text-align: center; }
.final .cta-row { justify-content: center; }
.final img.icon-lg { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: var(--shadow); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 60px; font-size: 14px; color: var(--ink3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { text-decoration: none; color: var(--ink2); }
.site-footer a:hover { color: var(--ink); }

/* Document pages (privacy, support) */
.doc-hero { padding-top: 64px; padding-bottom: 20px; }
.doc-hero h1 { font-size: clamp(44px, 7vw, 76px); }
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-top: 30px; padding-bottom: 90px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc a { display: block; padding: 7px 0; color: var(--ink3); text-decoration: none; border-left: 2px solid var(--rule); padding-left: 14px; }
.toc a:hover { color: var(--ink); border-color: var(--accent); }
.doc article { max-width: 700px; }
.doc article h2 { font-size: 30px; margin: 56px 0 14px; scroll-margin-top: 96px; }
.doc article h2:first-child { margin-top: 0; }
.doc article h3 { margin: 28px 0 8px; font-size: 19px; }
.doc article p, .doc article li { color: var(--ink2); }
.doc article ul { padding-left: 20px; }
.doc article li { margin: 6px 0; }
.doc article strong { color: var(--ink); }
.doc article a { color: var(--accent-text); }
.callout { background: var(--cream); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 16px; padding: 22px 24px; margin: 0 0 34px; }
.callout p { margin: 0; color: var(--ink) !important; font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.fact { background: var(--cream); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; font-size: 15px; color: var(--ink2); }
.fact b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
details { background: var(--cream); border: 1px solid var(--rule); border-radius: 16px; padding: 0 22px; margin: 10px 0; }
details summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent-text); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; }
.contact-card { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: var(--accent-wash); border-radius: 20px; padding: 26px 28px; margin: 30px 0; }
.contact-card p { margin: 4px 0 0; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 10px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .toc a { border: 0; padding: 4px 0; }
  .facts { grid-template-columns: 1fr; }
}

/* Fade-in only when the script is running, so content is never stuck hidden. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
