/* Dinho's site. Dark, black and white only, Poppins.
   Radii: buttons and chips are pills, cards 24px, small inner pieces 14px. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --surface-3: #242428;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --ink: #111113;
  --r-card: 24px;
  --r-inner: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.92em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 999px; z-index: 30; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 48px; padding: 0 1.4rem; border-radius: 999px;
  font: 600 0.98rem/1 "Poppins", sans-serif; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn i { font-size: 1.15em; }
.btn:active { transform: scale(0.97); }
.btn-light { background: var(--text); color: var(--ink); }
.btn-light:hover { background: #ffffff; transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 1rem; font-size: 0.88rem; }
.btn-xs { height: 32px; padding: 0 0.9rem; font-size: 0.8rem; }

/* Phones get "open it on the computer" instead of a download (main.js sets .is-phone). */
.mobile-only { display: none !important; }
.is-phone .dl-only { display: none !important; }
.is-phone .mobile-only { display: flex !important; }
.mobile-note {
  flex-direction: column; align-items: center; gap: 0.75rem; text-align: center;
  color: var(--muted); font-size: 0.92rem; max-width: 340px;
}

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 1.6rem; margin-right: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { max-width: 900px; margin: 0 auto; padding: 72px 24px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 6px 8px 6px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: background-color 0.2s;
}
.badge:hover { background: var(--surface-3); }
.badge-sep { color: var(--muted); font-weight: 500; padding-left: 0.6rem; border-left: 1px solid var(--line-2); }
.badge i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); font-size: 0.8rem; }
.hero-title {
  margin-top: 28px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 0.28em;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
}
@media (min-width: 601px) { .hero-title { flex-wrap: nowrap; white-space: nowrap; } }
.hero-dinho { width: 1.05em; height: 1.05em; }
.hero-sub { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); }

/* ── Island preview (the app's real island in an iframe, js/main.js) ── */
.stage { max-width: var(--max); margin: 0 auto; padding: 24px 24px 0; scroll-margin-top: 80px; }
.desk {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 18% 10%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(90% 80% at 85% 90%, rgba(255,255,255,0.07), transparent 60%),
    linear-gradient(160deg, #26262a, #121214 60%, #0e0e10);
}
.preview-scale { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.preview-scale iframe { display: block; border: 0; background: transparent; color-scheme: dark; }
.preview-toast {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 80px);
  padding: 8px 16px; border-radius: 999px; background: var(--text); color: var(--ink);
  font-size: 0.85rem; font-weight: 600; white-space: nowrap; transition: transform 0.5s var(--ease);
}
.preview-toast.show { transform: translate(-50%, 0); }
.preview-bar { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.preview-bar p { color: var(--muted); font-size: 0.92rem; max-width: 36em; }
.preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Meet card ───────────────────────────────────────────────────────── */
.meet { max-width: var(--max); margin: 0 auto; padding: 120px 24px 0; scroll-margin-top: 64px; }
.meet-card {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  min-height: 460px; overflow: hidden;
}
.meet-text { padding: 56px 0 56px 56px; display: grid; gap: 18px; max-width: 30em; }
.meet-text p { color: var(--muted); font-size: 1.05rem; }
.meet-dinho { width: 100%; height: 100%; min-height: 460px; cursor: pointer; }

/* ── Features: pictures of the real island (scripts/shoot-previa.mjs) ─ */
.features {
  max-width: var(--max); margin: 0 auto; padding: 24px 24px 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
}
.feature img {
  /* The island's own pieces on a clear background (shoot-previa.mjs): they sit
     straight on the card, no frame around them. */
  width: 100%; height: auto; aspect-ratio: 2.4; object-fit: contain; object-position: center;
  padding: 30px 26px 6px;
}
.feature-text { padding: 26px 30px 32px; display: grid; gap: 14px; }
.feature-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-text li { color: var(--muted); padding-left: 18px; position: relative; }
.feature-text li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.feature-text li b { color: var(--text); font-weight: 600; }

/* ── Chips ───────────────────────────────────────────────────────────── */
.more { max-width: var(--max); margin: 0 auto; padding: 120px 24px 0; text-align: center; }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips button {
  height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  font: 500 0.9rem "Poppins", sans-serif; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chips button:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.chips button[aria-selected="true"] { background: var(--text); color: var(--ink); border-color: var(--text); font-weight: 600; }
.chip-panel { margin: 28px auto 0; display: flex; align-items: center; justify-content: center; gap: 28px; max-width: 860px; min-height: 160px; text-align: left; }
.chip-dinho { width: 150px; height: 150px; flex: none; }
.chip-panel p { color: var(--muted); font-size: 1.2rem; line-height: 1.55; }
.chip-panel p b { color: var(--text); font-weight: 600; }
.chip-panel p.swap { animation: pane-in 0.45s var(--ease) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } }

/* ── Privacy ─────────────────────────────────────────────────────────── */
.privacy { max-width: var(--max); margin: 0 auto; padding: 120px 24px 0; scroll-margin-top: 64px; }
.privacy-card { border-top: 1px solid var(--line); padding-top: 56px; display: grid; gap: 40px; }
.privacy-card h2 { max-width: 16em; }
.privacy-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.privacy-grid i { font-size: 1.7rem; }
.privacy-grid h3 { margin: 14px 0 6px; }
.privacy-grid p { color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; justify-self: start; transition: border-color 0.2s; }
.link:hover { border-color: var(--text); }

/* ── Download ────────────────────────────────────────────────────────── */
.download { max-width: var(--max); margin: 0 auto; padding: 120px 24px 0; scroll-margin-top: 64px; }
.dl-card { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.dl-main { padding: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dl-main .btn { margin-top: 10px; }
.dl-main .mobile-note { align-items: flex-start; text-align: left; margin-top: 10px; }
.soon { color: var(--muted); font-size: 0.92rem; }
.fine { color: var(--faint); font-size: 0.8rem; margin-top: auto; padding-top: 18px; }
.fine a { color: var(--muted); }
.dl-help { padding: 56px; background: var(--surface-2); border-left: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.dl-help > p { color: var(--muted); }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: s; }
.steps li { display: grid; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.steps li p b { color: var(--text); }
/* A sketch of the SmartScreen window (Windows' own look, simplified). */
.ss { border-radius: 10px; overflow: hidden; background: #2c2c30; border: 1px solid var(--line-2); color: #fff; font-size: 0.72rem; line-height: 1.45; box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.ss-bar { padding: 12px 14px 4px; font-size: 0.95rem; font-weight: 600; }
.ss-body { padding: 6px 14px 14px; display: grid; gap: 10px; }
.ss-body p { opacity: 0.85; }
.ss-link { text-decoration: underline; justify-self: start; }
.ss-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ss-btn { padding: 4px 8px; border: 1px solid rgba(255,255,255,0.45); white-space: nowrap; }
.ss-hl { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; animation: hl 1.6s ease-in-out infinite; }
@keyframes hl { 50% { outline-color: rgba(255,255,255,0.25); } }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: var(--max); margin: 0 auto; padding: 120px 24px 120px; display: grid; justify-items: center; gap: 36px; scroll-margin-top: 64px; }
.faq h2 { text-align: center; }
.faq-list { display: grid; width: 100%; max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; }
.faq details p a { color: var(--text); }

/* ── Final ───────────────────────────────────────────────────────────── */
.final { max-width: var(--max); margin: 0 auto; padding: 120px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.final-dinho { width: 220px; height: 220px; flex: none; cursor: pointer; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 28px 24px 12px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.foot-brand img { border-radius: 6px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.foot-links a:hover { color: var(--text); }
.foot-note { max-width: var(--max); margin: 0 auto; padding: 0 24px 32px; color: var(--faint); font-size: 0.78rem; }

/* ── Reveal on scroll (main.js adds .in) ─────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  [data-reveal].in { opacity: 1; transform: none; }
  .features [data-reveal]:nth-child(even) { transition-delay: 0.08s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ── Legal and news pages ────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; }
.doc .lead { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.doc h2 { font-size: 1.35rem; margin: 48px 0 12px; }
.doc p, .doc li { color: #d4d4d8; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 12px 0 0; }
.doc a { color: var(--text); }
.doc pre { white-space: pre-wrap; font: 0.82rem/1.55 ui-monospace, Consolas, monospace; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-inner); padding: 20px; margin-top: 12px; }
.release { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.release h2 { margin: 0 0 4px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.release time { color: var(--faint); font-size: 0.9rem; font-weight: 500; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--text); color: var(--ink); }

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .meet-card { grid-template-columns: 1fr; }
  .meet-text { padding: 40px 28px 0; }
  .meet-dinho { min-height: 320px; }
  .features { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 28px; }
  .dl-card { grid-template-columns: 1fr; }
  .dl-main, .dl-help { padding: 36px 28px; }
  .dl-help { border-left: 0; border-top: 1px solid var(--line); }
  .faq { gap: 24px; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 16px; }
  .hero { padding: 48px 16px 32px; }
  .stage, .meet, .features, .more, .privacy, .download, .faq, .final { padding-left: 16px; padding-right: 16px; }
  .meet, .more, .privacy, .final, .download, .faq { padding-top: 88px; }
  .steps { grid-template-columns: 1fr; }
  .chip-panel { flex-direction: column; text-align: center; }
  .chip-dinho { width: 90px; height: 90px; }
  .faq { padding-bottom: 88px; }
}
