/* Güldeste — guldeste.org */
:root {
  --bg: #fbf7f3;
  --bg-alt: #f4ebe6;
  --surface: #ffffff;
  --text: #3a2d2a;
  --muted: #7a6964;
  --line: #eadcd5;
  --rose: #d4a5a5;
  --rose-soft: #f1dfdc;
  --plum: #a6789e;
  --plum-deep: #6f4a68;
  --wine: #8e4f62;
  --gold: #c9a65a;
  --cream: #f5e6c8;
  --shadow: 0 10px 30px rgba(110, 74, 104, .10);
  --radius: 20px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1719;
    --bg-alt: #261e21;
    --surface: #2c2327;
    --text: #f3e8e4;
    --muted: #bfaeaa;
    --line: #40343a;
    --rose-soft: #3a2a30;
    --plum-deep: #d9b3cf;
    --wine: #d895a9;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum-deep); background: var(--rose-soft); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; min-height: 54px; border-radius: 14px;
  background: #2b2124; color: #fff; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: .7rem; opacity: .8; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; font-weight: 700; }
.store-btn.soon { background: #4a3c40; }

/* Hero */
.hero { position: relative; padding: 48px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, color-mix(in srgb, var(--rose) 45%, transparent), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.1fr .9fr; } .hero { padding: 72px 0 88px; } }
.bismillah { font-family: "Amiri", serif; font-size: 1.7rem; color: var(--gold); margin: 0 0 8px; direction: rtl; text-align: left; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; color: var(--plum); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--text); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 0 0 16px; }
.hero h1 em { font-style: italic; color: var(--wine); font-weight: 500; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero-note { font-size: .88rem; color: var(--muted); margin-top: 16px; }

/* Carousel */
.carousel { position: relative; max-width: 330px; margin: 0 auto; width: 100%; }
.phone {
  position: relative; border-radius: 44px; padding: 12px;
  background: linear-gradient(145deg, #3b2e33, #1f181b);
  box-shadow: 0 30px 60px rgba(110, 74, 104, .30), inset 0 0 0 2px #574750;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 64px; height: 16px; transform: translateX(-50%); background: #1a1416; border-radius: 12px; z-index: 2; }
.screen { position: relative; overflow: hidden; border-radius: 33px; aspect-ratio: 720 / 1406; background: #fcf8f5; touch-action: pan-y; }
.track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.22,.8,.3,1); will-change: transform; }
.slide { flex: 0 0 100%; height: 100%; margin: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.carousel-caption { text-align: center; font-family: var(--serif); font-size: 1.25rem; margin: 18px 0 6px; min-height: 1.6em; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.cbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--plum-deep); cursor: pointer; display: grid; place-items: center; }
.cbtn:hover { background: var(--rose-soft); }
.cbtn svg { width: 18px; height: 18px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.dots button[aria-current="true"] { width: 24px; border-radius: 6px; background: var(--plum); }
.dots button::after { content: ""; display: block; width: 100%; height: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .track { transition: none; } }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

.features { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.5rem; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-soft); color: var(--wine); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card.wide { grid-column: 1 / -1; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--plum); margin-left: 6px; vertical-align: middle; font-family: var(--sans); }

/* Spotlight rows */
.spot { display: grid; gap: 32px; align-items: center; }
.spot + .spot { margin-top: 72px; }
@media (min-width: 860px) { .spot { grid-template-columns: 1fr 1fr; gap: 64px; } .spot.rev .spot-media { order: 2; } }
.spot-media { display: flex; justify-content: center; }
.spot-media .phone { width: 260px; }
.spot-media .screen { border-radius: 33px; }
.spot h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 12px; }
.spot p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--plum); border-bottom: 2px solid var(--plum); transform: rotate(-45deg); }

/* Privacy band */
.privacy-band { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .privacy-band { grid-template-columns: repeat(4, 1fr); } }
.pill { text-align: center; padding: 26px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pill strong { display: block; font-family: var(--serif); font-size: 1.4rem; margin: 10px 0 4px; }
.pill span { color: var(--muted); font-size: .93rem; }
.pill .icon { margin: 0 auto; }

/* Quote */
.quote { text-align: center; padding: 88px 0; background: linear-gradient(160deg, var(--plum-deep), var(--wine)); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quote { background: linear-gradient(160deg, #4a3046, #5e3443); } }
.quote blockquote { margin: 0 auto; max-width: 760px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.25; margin: 0 0 14px; color: #fff; }
.quote cite { font-style: normal; color: var(--cream); letter-spacing: .08em; font-size: .9rem; }
.rose-mark { width: 54px; margin: 0 auto 22px; opacity: .9; }

/* CTA */
.cta { text-align: center; }
.cta .store-buttons { justify-content: center; }
.cta img.app-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 18px; box-shadow: var(--shadow); }

/* Docs (legal pages) */
.doc { padding: 48px 0 80px; }
.doc .container { max-width: 800px; }
.doc h1 { font-size: clamp(2.3rem, 6vw, 3.2rem); margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; font-size: .95rem; }
.doc h2 { font-size: 1.75rem; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.3rem; margin: 24px 0 6px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.summary { background: var(--rose-soft); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 24px; }
.summary p { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 8px; }
.toc ol { margin: 6px 0 0; padding-left: 1.2em; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.contact-box a { font-weight: 700; word-break: break-all; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 12px 0; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--plum); font-weight: 400; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 20px 16px; color: var(--text); }
details > div p:first-child { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--bg-alt); font-size: .94rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--wine); text-decoration: underline; }
.site-footer p { color: var(--muted); margin: 8px 0 0; }
.copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 5rem); margin: 0; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 12px; background: #8e4f62; color: #fff; text-decoration: none; font-weight: 700; }
.btn:hover { color: #fff; background: #6f4a68; }
