/* arah.swift.id: the app's night palette (App/Assets.xcassets, Scripts/make_creative_assets.py). */
:root {
  --bg: #060b17;
  --bg-2: #0b1222;
  --surface: #121a2e;
  --surface-2: #18213a;
  --line: rgba(220, 227, 238, .12);
  --ink: #f4f6fa;
  --muted: #aeb9cb;
  --faint: #7d889c;
  --orange: #f28f33;
  --orange-deep: #e2711d;
  --red: #f0452f;
  --emerald: #1fc487;
  --radius: 20px;
  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #111; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-badge {
  width: 46px; height: 46px; padding: 11px; border-radius: 14px; color: var(--orange);
  background: rgba(242, 143, 51, .12); border: 1px solid rgba(242, 143, 51, .22); margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  background: var(--orange); color: #1b0f04; font-weight: 650; font-size: 16px; border: 0; white-space: nowrap;
}
.btn:hover { background: #ffa04d; text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
.badge { display: inline-block; }
.badge img { height: 50px; width: auto; }
.badge-lg img { height: 56px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(6, 11, 23, .78);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 550; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; font-weight: 650; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.lang:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -1; }
.hero-sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-sky::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow, .kicker { color: var(--orange); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); font-weight: 820; letter-spacing: -.03em; text-shadow: 0 6px 40px rgba(3, 6, 14, .6); }
.lead { font-size: clamp(18px, 2vw, 21px); color: #d5dbe6; max-width: 34em; margin: 22px 0 30px; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-meta { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }

.phone {
  margin: 0; justify-self: center; width: min(100%, 300px); border-radius: 48px; padding: 10px;
  background: linear-gradient(145deg, #3a4256, #141a28 45%, #2a3142); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { border-radius: 39px; width: 100%; }
.hero-phone { width: min(100%, 320px); transform: rotate(2deg); }

.strip { margin: 56px auto 0; max-width: 760px; text-align: center; }
.strip-cells {
  display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(18, 26, 46, .78); border: 1px solid var(--line);
  border-radius: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cell { padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.cell + .cell { border-left: 1px solid var(--line); }
.lab { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cell-qibla .lab { color: var(--emerald); }
.num { font-size: clamp(28px, 4.2vw, 42px); font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.num small { font-size: .5em; color: var(--muted); margin-left: 4px; font-weight: 650; }
.strip figcaption { color: var(--faint); font-size: 14px; margin-top: 12px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; max-width: 22em; }
.section-lead { color: var(--muted); font-size: 19px; max-width: 40em; margin: 18px 0 0; }
.grid4, .grid3 { display: grid; gap: 18px; margin-top: 44px; }
.grid4 { grid-template-columns: repeat(4, 1fr); }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.more-link { margin: 32px 0 0; font-weight: 600; }

.feature { display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-flip { grid-template-columns: 300px 1fr; }
.feature-flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--emerald); margin-top: 3px; }

.ipad { margin: 56px auto 0; max-width: 620px; border-radius: 34px; padding: 14px; background: linear-gradient(145deg, #3a4256, #141a28 45%, #2a3142); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ipad img { border-radius: 22px; }

.watch-sec { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.watches { display: flex; gap: 14px; justify-content: center; }
.watch { margin: 0; flex: 1; max-width: 190px; }
.watch:nth-child(2) { transform: translateY(-22px); }
.watch-case { position: relative; padding: 9px; border-radius: 30% / 26%; background: linear-gradient(150deg, #4a5266, #171c29 50%, #2c3344); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.watch-screen { border-radius: 26% / 22%; overflow: hidden; background: #000; }
.watch-crown { position: absolute; right: -5px; top: 26%; width: 7px; height: 18%; border-radius: 3px; background: linear-gradient(90deg, #2a3142, #59627a); }

/* Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.plan h3 { font-size: 24px; }
.plan-price { color: var(--muted); margin: 6px 0 4px; font-weight: 600; }
.plan-pro { background: linear-gradient(160deg, rgba(242, 143, 51, .16), var(--surface) 55%); border-color: rgba(242, 143, 51, .4); }
.plan-pro .plan-price { color: var(--orange); font-size: 20px; }
.plan-pro .checks .icon { color: var(--orange); }
.plan-note { color: var(--faint); font-size: 14px; margin: 20px 0 0; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--orange); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 20px; }

.final { padding: 110px 0; text-align: center; background: radial-gradient(60% 80% at 50% 100%, rgba(224, 126, 67, .25), transparent 70%); }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final img { border-radius: 22px; margin-bottom: 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.final h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.final p { color: var(--muted); font-size: 19px; margin: 14px 0 28px; }

/* Documents */
.doc main { padding: 48px 0 96px; }
.crumbs { color: var(--faint); font-size: 14px; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.prose h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; scroll-margin-top: 84px; }
.prose p, .prose li { color: #d0d7e3; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.updated { color: var(--faint); font-size: 15px; margin-top: 8px; }
.lead-sm { font-size: 19px; color: #d5dbe6; margin-top: 20px; }
.contact-card { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; margin: 28px 0 8px; }
.contact-card h2 { margin: 6px 0 8px; font-size: 21px; }
.contact-card .icon-badge { margin: 0; }
.mono { color: var(--muted); font-size: 15px; margin-left: 10px; overflow-wrap: anywhere; }
.doc-links { margin-top: 36px; }
.doc-badge { margin-top: 20px; }
.notfound { padding: 120px 20px; text-align: center; }
.notfound h1 { font-size: 34px; margin-bottom: 16px; }
.notfound .btn { margin: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #040812; padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 30em; margin: 14px 0 18px; }
.footer-title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.footer-legal p { margin: 0 0 6px; }

@media (max-width: 960px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .hero-inner, .watch-sec { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-phone { transform: none; width: min(78%, 300px); }
  .hero-sky img { object-position: 66% 100%; }
  .feature, .feature-flip { grid-template-columns: 1fr; gap: 36px; }
  .feature-flip .feature-copy { order: 0; }
  .feature .phone { width: min(78%, 280px); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .section { padding: 72px 0; }
  .grid3, .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .grid4 { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .cell { padding: 14px 6px; }
  .lab { font-size: 11px; letter-spacing: .08em; }
  .contact-card { flex-direction: column; }
  .mono { display: block; margin: 10px 0 0; }
  .btn-sm { padding: 7px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
