/* deen.in website — SITE-001 (board, not approved).
   Brand: D-032 taupe on warm ivory, dark = faded taupe (D-030/D-042), spacious (D-035).
   Fonts: Noto Serif Display, Noto Serif, Inter — self-hosted subsets, no CDN.
   Glass: selective, with a solid fallback (no backdrop-filter / prefers-reduced-transparency). */

@font-face { font-family: "Noto Serif Display"; src: url("fonts/noto-serif-display-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif Display"; src: url("fonts/noto-serif-display-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Serif Display"; src: url("fonts/noto-serif-display-300i.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("fonts/noto-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  /* DEFAULT = dark, the faded taupe of the app (D-042: dark is the default look) */
  /* SITE-003: approved v2 dark tokens (APPROVED_DESIGN.md) — ink-charcoal night, warm neutral light, bronze glow */
  --canvas: #252624; --canvas-deep: #1C1D1B; --surface: #33332F; --surface-2: #383733;
  --ink: #F2EEE7; --ink-2: #DCD4C9; --ink-3: #B7B0A5;
  --accent: #E8DACC; --accent-ink: #2A2926; --bronze: #C9A27A; --taupe: #73665B;
  --line: rgba(238,232,223,0.14); --line-strong: rgba(238,232,223,0.26);
  --glass: rgba(52,51,47,0.62); --glass-solid: #383733; --glass-border: rgba(239,230,217,0.22);
  --glass-hi: inset 0 1px 0 rgba(255,255,255,0.10);
  --shadow: 0 1px 2px rgba(30,24,18,0.20), 0 18px 48px rgba(30,24,18,0.24);
  --shadow-lg: 0 2px 6px rgba(30,24,18,0.24), 0 40px 90px rgba(30,24,18,0.34);
  --photo-filter: none;

  --font-display: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --font-serif: "Noto Serif", Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --measure: 64ch;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;
  --space-section: clamp(96px, 14vw, 184px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
/* light: warm ivory + taupe, shown when a visitor picks it */
:root[data-theme="light"] {
  color-scheme: light;
  /* light: warm ivory + taupe */
  --canvas: #F4F0E9;
  --canvas-deep: #ECE6DD;
  --surface: #FAF7F2;
  --ink: #1F1C19;
  --ink-2: #4A443E;
  --ink-3: #625B54;
  --accent: #5B524A;
  --accent-ink: #F6F1E9;
  --line: rgba(56, 48, 41, 0.12);
  --line-strong: rgba(56, 48, 41, 0.22);
  --glass: rgba(250, 247, 242, 0.62);
  --glass-solid: #F7F3ED;
  --glass-border: rgba(255, 255, 255, 0.78);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --shadow: 0 1px 2px rgba(60, 46, 34, 0.05), 0 18px 48px rgba(60, 46, 34, 0.10);
  --shadow-lg: 0 2px 6px rgba(60, 46, 34, 0.06), 0 40px 90px rgba(60, 46, 34, 0.16);
  --photo-filter: saturate(0.9);
}

*, *::before, *::after { box-sizing: border-box; }
[dir="rtl"] { --fade-start: 270deg; }
.brand svg, .lockup svg, .mark svg { direction: ltr; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "calt";
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- glass (selective) ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), var(--shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- header (SITE-003) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, rgba(28,29,27,.92), rgba(28,29,27,.78)); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; border-radius: 8px; }
.brand img, .brand svg { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a:not(.btn) { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav > a:not(.btn):hover { color: var(--ink); background: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--line); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink);
  font: 600 15px/1 var(--font-ui); text-decoration: none; letter-spacing: 0.005em; cursor: pointer;
  transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease), color 180ms var(--ease);
}
.btn:hover { background: #F4EADF; box-shadow: 0 8px 24px -10px rgba(0,0,0,.55); text-decoration: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; margin-inline-start: 8px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(238,232,223,.08); }
@media (max-width: 860px) { .nav > a:not(.btn) { display: none; } }
@media (max-width: 380px) { .nav .btn-sm { padding: 0 14px; } .brand svg { height: 28px; } }
::selection { background: rgba(201,162,122,.42); color: #fff; }
html { scrollbar-color: #57534c #1C1D1B; }

/* home sections live in home.css (SITE-003) */
:root { --hero-img: url("img/hero-night-640.webp"); }
:root[data-theme="light"] { --hero-img: url("img/hero-day-640.webp"); }
@media (min-width: 700px) { :root { --hero-img: url("img/hero-night-1265.webp"); } :root[data-theme="light"] { --hero-img: url("img/hero-day-1265.webp"); } }

/* ---------- footer (SITE-003) ---------- */
.site-footer { position: relative; padding: 72px 0 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); background: linear-gradient(180deg, rgba(28,29,27,.6), #1A1B19 70%); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px 32px; }
.foot-brand p { margin-top: 18px; line-height: 1.6; }
.site-footer .brand svg { height: 30px; }
.foot-col { display: flex; flex-direction: column; gap: 2px; }
.foot-col h2 { margin: 0 0 10px; font: 600 13px/1.4 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.foot-col a { padding: 6px 0; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.legal-line { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-line small { font-size: 12.5px; line-height: 1.6; color: #A39D93; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- document pages (privacy / terms / support) ---------- */
.doc-hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.doc-hero h1 { font: 300 clamp(44px, 6vw, 76px)/1.04 var(--font-display); letter-spacing: -0.02em; }
.doc-hero .meta { margin-top: 18px; color: var(--ink-3); font-size: 15px; }
.doc-hero .lede { margin-top: 22px; max-width: 46ch; font: 400 20px/1.6 var(--font-serif); color: var(--ink-2); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); padding-bottom: var(--space-section); align-items: start; }
.toc { position: sticky; top: 104px; padding: 22px; border-radius: var(--r-md); font-size: 14px; }
.toc p { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: var(--measure); font: 400 18px/1.75 var(--font-serif); color: var(--ink-2); }
.prose h2 { font: 400 clamp(26px, 2.6vw, 32px)/1.2 var(--font-display); color: var(--ink); margin: 72px 0 18px; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 17px/1.4 var(--font-ui); color: var(--ink); margin: 32px 0 8px; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.summary { margin: 0 0 56px; padding: clamp(24px, 4vw, 36px); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font: 400 17px/1.65 var(--font-ui); color: var(--ink-2); }
.summary h2 { margin: 0 0 14px !important; font: 600 15px/1.4 var(--font-ui) !important; color: var(--ink) !important; }
.summary ul { margin: 0; padding: 0; list-style: none; }
.summary li { padding: 10px 0; border-top: 1px solid var(--line); }
.summary li:first-child { border-top: 0; padding-top: 0; }
.table { width: 100%; border-collapse: collapse; font: 400 15px/1.55 var(--font-ui); margin: 18px 0 28px; }
.table th, .table td { text-align: start; vertical-align: top; padding-block: 12px; padding-inline: 0 14px; border-top: 1px solid var(--line); }
.table th { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }


/* support */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font: 400 clamp(19px, 1.8vw, 22px)/1.35 var(--font-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 14px; }
.faq .answer { padding: 0 0 24px; max-width: 60ch; color: var(--ink-2); font: 400 17px/1.7 var(--font-serif); }
.support { grid-template-columns: minmax(0, 1fr) 340px; }
.support .contact { position: sticky; top: 104px; }
.contact .meta { font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .support { grid-template-columns: 1fr; } .support .contact { position: static; } }
.contact { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); }
.contact h2 { font: 300 clamp(28px, 3vw, 40px)/1.15 var(--font-display); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.howto { margin: -16px 0 48px; max-width: 60ch; font-size: 15px; color: var(--ink-3); }

.prose { padding-bottom: 96px; }


.stores { align-items: center; gap: 4px 12px; }
.badge { display: inline-flex; border-radius: 10px; }
.badge img { display: block; height: 48px; width: auto; }
.badge-google img { height: 72px; margin-block: -12px; }

/* menu: all pages one tap away (phones) */
.menu { display: none; position: relative; margin-inline-start: 4px; }
.menu summary { list-style: none; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; } .menu summary:hover { background: var(--line); }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; content: ""; transition: transform .25s var(--ease), opacity .2s; }
.burger { position: relative; } .burger::before { position: absolute; top: -6px; } .burger::after { position: absolute; top: 6px; }
.menu[open] .burger { background: transparent; } .menu[open] .burger::before { transform: translateY(6px) rotate(45deg); } .menu[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav .menu .menu-panel { border: 1px solid var(--glass-border); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); position: absolute; inset-inline-end: 0; top: calc(100% + 14px); width: min(300px, 82vw); padding: 10px; border-radius: 26px; display: grid; gap: 2px; z-index: 30; }
.menu-panel a { display: block; padding: 14px 16px; border-radius: 16px; text-decoration: none; font-size: 16px; font-weight: 500; color: var(--ink); } .menu-panel a:hover, .menu-panel a[aria-current="page"] { background: rgba(255,255,255,.12); }
@media (max-width: 860px) { .menu { display: block; } }
.nav .menu .menu-panel { background: linear-gradient(158deg, rgba(255,255,255,.14), rgba(255,255,255,.04)), rgba(36,36,34,.97) !important; -webkit-backdrop-filter: blur(26px) !important; backdrop-filter: blur(26px) !important; }
