/* Hobbytory website: one stylesheet for all pages.
   No external fonts, no scripts. Colors follow the app icon. */

:root {
  color-scheme: light dark;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --text: #14232b;
  --muted: #5b6b73;
  --line: #dde5e8;
  --accent: #1d5f73;
  --accent-strong: #154a5a;
  --on-accent: #ffffff;
  --band-from: #22596b;
  --band-to: #153650;
  --orange: #ff9500;
  --indigo: #5856d6;
  --green: #34c759;
  --purple: #af52de;
  --yellow: #ffd60a;
  --tint: 18%;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161c;
    --surface: #1a2129;
    --text: #eef3f5;
    --muted: #9aa8b0;
    --line: #2a333d;
    --accent: #6cc3dc;
    --accent-strong: #8fd5ea;
    --on-accent: #0d1a20;
    --band-from: #1e4251;
    --band-to: #152733;
    --tint: 28%;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

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

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

/* ---------- Header / footer ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; line-height: 1.2;
  font-weight: 600; font-size: .85rem;
}

.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.02em; }
.hero .claim { font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; margin: 0 0 16px; font-weight: 600; }
.hero .lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 24px; max-width: 34em; }
.hero-icon { width: 220px; border-radius: 22.5%; box-shadow: 0 18px 50px rgba(21, 54, 80, .28); }
@media (prefers-color-scheme: dark) {
  .hero-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px rgba(0, 0, 0, .45); }
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.pills li {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 8px 14px; font-size: .9rem; font-weight: 600; line-height: 1.2;
}

.button {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--accent-strong); color: var(--on-accent); }

/* ---------- Sections ---------- */

section.block { padding: 40px 0; }
section.block h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
section.block .intro { color: var(--muted); margin: 0 0 28px; max-width: 40em; }

/* Feature cards look like Gridfinity bins from the app icon. */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; padding: 0; margin: 0; list-style: none;
}
.features li {
  --c: var(--accent);
  background: color-mix(in srgb, var(--c) var(--tint), var(--surface));
  border: 3px solid var(--c);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.features h3 { margin: 0 0 6px; font-size: 1.15rem; }
.features p { margin: 0; }
.features .c-orange { --c: var(--orange); }
.features .c-indigo { --c: var(--indigo); }
.features .c-green  { --c: var(--green); }
.features .c-purple { --c: var(--purple); }
.features .c-yellow { --c: var(--yellow); }

/* Privacy promise band */
.band {
  background: linear-gradient(160deg, var(--band-from), var(--band-to));
  color: #eef5f7; border-radius: 28px; padding: 40px clamp(20px, 5vw, 48px);
}
.band h2 { color: #fff; }
section.block .band .intro { color: #c4d6dd; }
.band a { color: #ffe066; }
.promises {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 24px; padding: 0; margin: 0 0 20px; list-style: none;
}
.promises li { position: relative; padding-left: 30px; font-weight: 600; }
.promises li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--yellow);
  border: 2px solid #fff3c4;
}
.band .note { margin: 0; color: #c4d6dd; font-size: .95rem; }

/* Availability */
.status {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px clamp(20px, 4vw, 36px);
}
.status .bin {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--yellow); border: 4px solid #fff3c4;
}
.status h2 { margin-top: 0; }
.status p { margin: 0 0 16px; }

/* ---------- Legal pages ---------- */

.prose { max-width: 720px; margin: 0 auto; padding: 48px 16px 0; }
.prose h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 4px; }
.prose h2 { font-size: 1.3rem; margin: 2.2em 0 .4em; }
.prose p, .prose li { margin: .4em 0; }
.prose ul { padding-left: 1.2em; }
.prose .meta { color: var(--muted); margin: 0 0 24px; }
.prose table { width: 100%; border-collapse: collapse; margin: .6em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .hero { padding: 36px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero picture { order: -1; }
  .hero-icon { width: 96px; }
  .status { grid-template-columns: 1fr; }
  .status .bin { width: 40px; height: 40px; border-width: 3px; }
  .site-nav { gap: 14px; }
}
