/* base.css: structure shared by every generated site.
   Override the tokens in styles.css. Put the app-specific look there, not here. */

:root {
  --bg: #111;
  --surface: #1c1c1c;
  --text: #fff;
  --muted: rgb(255 255 255 / .68);
  --line: rgb(255 255 255 / .1);
  --primary: #6b5bff;
  --accent: #ffcc33;
  --accent-ink: #111;
  --radius: 20px;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-display);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
main { flex: 1; }

/* layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* a11y */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* site header */
.site-header { padding-block: 18px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

/* language switcher (plain links) */
.lang-switch { display: inline-flex; gap: 4px; font-size: 14px; }
.lang-switch a { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="true"] { color: var(--text); background: var(--line); }

/* legal / support pages */
.prose { max-width: 68ch; margin-inline: auto; padding: clamp(24px, 6vw, 64px) var(--gutter) 64px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.prose .meta { color: var(--muted); font-size: .95em; margin-bottom: 2em; }
.prose h2 { font-size: 1.3rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; white-space: nowrap; }
.prose details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 10px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.prose summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.prose details[open] summary { margin-bottom: 4px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 1.5em 0 2em; background: color-mix(in srgb, var(--surface) 75%, transparent); }

/* footer */
.site-footer { padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Kuran ve Meali: the app's own look (parchment, emerald, gold) ===== */
@font-face { font-family: "Literata"; src: url("fonts/literata-vf.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-vf.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Amiri Quran"; src: url("fonts/amiri-quran.woff2") format("woff2"); font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F7F2E8;
  --bg-deep: #EFE6D3;
  --surface: #FBF8F1;
  --text: #292B29;
  --muted: #5B635E;
  --line: rgb(23 76 60 / .14);
  --primary: #174C3C;
  --primary-deep: #0F3529;
  --accent: #C6A66B;
  --accent-text: #856528;
  --accent-ink: #0F3529;
  --navy: #1F3A66;
  --radius: 18px;
  --font-display: "Literata", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Amiri Quran", "Traditional Arabic", serif;
}
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(120% 60% at 50% -10%, rgb(23 76 60 / .10), transparent 70%),
    radial-gradient(60% 40% at 100% 30%, rgb(198 166 107 / .16), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  font-size: 18px;
}
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.skip-link { background: var(--primary); color: #fff; }

.site-header { position: relative; z-index: 2; }
.brand { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--primary); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgb(23 76 60 / .3); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; min-height: min(calc(100svh - 180px), 700px); padding-block: clamp(24px, 5vw, 56px);
}
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgb(23 76 60 / .08); border: 1px solid var(--line); color: var(--primary);
  font-size: 15px; font-weight: 600; margin-bottom: 22px;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(198 166 107 / .28); }
h1.title {
  font-size: clamp(2.9rem, 7.4vw, 5.2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.02;
  color: var(--primary); margin-bottom: .32em;
}
h1.title em { font-style: normal; color: var(--accent-text); }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.38rem); max-width: 34ch; color: var(--text); font-family: var(--font-display); line-height: 1.45; }
.sub { color: var(--muted); max-width: 46ch; margin-bottom: 1.6em; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--muted); max-width: 46ch; }
.hero-note svg { width: 20px; height: 20px; flex: none; color: var(--primary); }

/* store buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.store-btn {
  --btn-bg: #000; --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-width: 176px; height: 58px; padding: 0 20px 0 15px; background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid rgb(0 0 0 / .4); border-radius: 14px; text-decoration: none; line-height: 1.1;
  box-shadow: 0 8px 22px rgb(15 53 41 / .22);
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .store-top { display: block; font-size: 12px; opacity: .88; }
.store-btn .store-bottom { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.store-btn.is-soon { cursor: default; opacity: .8; filter: saturate(.7); box-shadow: none; }
.store-btn.is-soon .soon-tag {
  position: absolute; top: -10px; right: 10px; padding: 2px 9px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 800; white-space: nowrap;
}

/* the ayah card */
.stage { position: relative; display: grid; place-items: center; padding-block: 12px; }
.ayah-card {
  position: relative; width: min(100%, 440px); border-radius: 26px; padding: 14px;
  background: linear-gradient(160deg, #FBF8F1, #F3E9D2);
  border: 1px solid rgb(143 111 51 / .35);
  box-shadow: 0 1px 0 #fff inset, 0 30px 60px -24px rgb(15 53 41 / .45), 0 8px 18px -8px rgb(15 53 41 / .25);
  transform: rotate(-1.4deg);
}
.ayah-card .frame {
  position: relative; border-radius: 18px; padding: 32px 24px 26px; text-align: center;
  border: 2px solid var(--navy);
  outline: 1px solid rgb(198 166 107 / .9); outline-offset: -8px;
  background: radial-gradient(90% 70% at 50% 0%, rgb(255 255 255 / .8), transparent), #FBF6E9;
}
.ayah-card .corner { position: absolute; width: 26px; height: 26px; color: var(--accent); }
.ayah-card .corner:nth-of-type(1) { top: 5px; left: 5px; }
.ayah-card .corner:nth-of-type(2) { top: 5px; right: 5px; }
.ayah-card .corner:nth-of-type(3) { bottom: 5px; left: 5px; }
.ayah-card .corner:nth-of-type(4) { bottom: 5px; right: 5px; }
.cartouche {
  display: inline-block; padding: 4px 20px; margin-bottom: 18px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent-text);
  border: 1px solid rgb(198 166 107 / .8); background: #F3E9D2; letter-spacing: .01em;
}
.arabic { font-family: var(--font-arabic); font-size: clamp(1.7rem, 4.4vw, 2.2rem); line-height: 2.15; direction: rtl; color: #1D221F; margin: 0 0 6px; }
.arabic .rosette { display: inline-block; width: .85em; height: .85em; vertical-align: -.1em; margin-inline-end: .25em; }
.meal { font-family: var(--font-display); font-size: 1.04rem; line-height: 1.6; color: var(--text); margin: 14px 0 6px; padding-top: 16px; border-top: 1px solid rgb(198 166 107 / .6); }
.attr { font-size: 13.5px; color: var(--muted); margin: 0; }
.chips { position: absolute; display: flex; gap: 8px; flex-wrap: wrap; }
.mini-chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--primary); color: #F7F2E8; box-shadow: 0 8px 18px -6px rgb(15 53 41 / .5);
}
.mini-chip.gold { background: #F3E9D2; color: var(--accent-text); border: 1px solid rgb(198 166 107 / .9); }
.stage .c1 { left: -8px; bottom: 36px; transform: rotate(-4deg); }
.stage .c2 { right: -6px; top: 34px; transform: rotate(3deg); }

/* floating rosettes */
.deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.deco svg { position: absolute; color: var(--primary); }
.deco .d1 { width: 190px; top: -40px; left: -50px; opacity: .07; transform: rotate(12deg); }
.deco .d2 { width: 120px; top: 52%; left: 42%; opacity: .09; color: var(--accent); }
.deco .d3 { width: 260px; right: -80px; bottom: -70px; opacity: .08; transform: rotate(-8deg); }
.deco .d4 { width: 70px; top: 14%; right: 36%; opacity: .12; color: var(--accent); }

/* ---------- sections ---------- */
section.block { padding-block: clamp(36px, 6vw, 72px); }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
h2.h { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--primary); letter-spacing: -.015em; max-width: 22ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.card {
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: 0 1px 0 #fff inset, 0 14px 30px -22px rgb(15 53 41 / .5);
}
.card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--primary); margin: 16px 0 .4em; }
.card p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgb(198 166 107 / .22); color: var(--primary); border: 1px solid rgb(198 166 107 / .55); }
.icon-tile svg { width: 26px; height: 26px; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 30px; padding: 0; list-style: none; }
.trust li { padding: 8px 16px; border-radius: 999px; background: rgb(23 76 60 / .07); border: 1px solid var(--line); color: var(--primary); font-weight: 700; font-size: 15.5px; }

.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 4px 20px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
.shot { flex: 0 0 min(250px, 68vw); scroll-snap-align: center; margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgb(15 53 41 / .55); background: var(--bg-deep); }

.cta { text-align: center; }
.cta .store-buttons { justify-content: center; margin-top: 22px; }
.cta h2.h { margin-inline: auto; }

/* ---------- footer, prose ---------- */
.site-footer { margin-top: 24px; background: color-mix(in srgb, var(--bg-deep) 70%, transparent); }
.site-footer .notice { flex-basis: 100%; margin: 0; font-size: 14px; }
.prose { font-size: 18px; }
.prose h1 { font-family: var(--font-display); color: var(--primary); }
.prose h2 { font-family: var(--font-display); color: var(--primary); }
.prose a { color: var(--accent-text); font-weight: 600; }
.prose .meta { color: var(--muted); }
.prose td, .prose th { border-bottom-color: var(--line); }
.prose table { background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 12px; }
.prose code { background: rgb(23 76 60 / .08); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.contact-card { background: var(--surface); border-color: rgb(198 166 107 / .6); }
.contact-card a { font-size: 1.15em; }
.prose details { background: var(--surface); }
.prose summary { color: var(--primary); }
.prose .lede { font-size: 1.08em; }
.callout { border-left: 4px solid var(--accent); background: rgb(198 166 107 / .14); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 1.4em 0; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; color: var(--accent-text); }
.page-head svg { width: 30px; height: 30px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .stage { order: -1; padding-top: 0; }
  .ayah-card { width: min(100%, 400px); }
  .stage .c1 { left: 0; } .stage .c2 { right: 0; top: auto; bottom: 30px; }
}
@media (max-width: 420px) {
  .store-btn { min-width: 0; flex: 1 1 100%; justify-content: flex-start; }
  .ayah-card .frame { padding: 28px 16px 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
  @keyframes rise { from { opacity: .55; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .deco svg { animation: float 9s ease-in-out infinite; }
  .deco .d2 { animation-delay: -3s; } .deco .d3 { animation-duration: 12s; animation-delay: -6s; } .deco .d4 { animation-delay: -5s; animation-duration: 7s; }
  .hero-copy > * { animation: rise .7s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; } .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; } .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  .ayah-card { animation: rise .9s .1s ease both; }
  .card, .store-btn, .shot img { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #fff inset, 0 22px 36px -20px rgb(15 53 41 / .55); border-color: rgb(198 166 107 / .8); }
  a.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgb(15 53 41 / .32); }
  .shot img:hover { transform: translateY(-4px); }
}
