/* ============================================================
   Deen Trail — marketing site styles
   Night theme (Magical Night) from the app's design system.
   Adapted from the Claude-Design reference; phone mocks now
   wrap real app screenshots and the app icon is the real art.
   ============================================================ */

:root {
  --ink: #F4EDDA;
  --sub: #A8B2D8;
  --gold: #F4C95D;
  --emerald: #56C7A0;
  --card: #202C52;
  --bd: #2F3D6E;
  --deep: #101733;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #101733;
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #FFDD8A; }
img { max-width: 100%; }

.dt-wrap { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

/* ---- type ---- */
.dt-h1 { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: clamp(38px, 4.5vw, 64px); line-height: 1.06; letter-spacing: -1.2px; margin: 16px 0 20px; }
.dt-h2 { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.14; letter-spacing: -.6px; margin: 10px 0 16px; }
.dt-h3 { font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 19px; line-height: 1.25; margin: 0 0 7px; color: var(--ink); }
.dt-lede { font-size: 17.5px; line-height: 1.6; color: var(--sub); margin: 0; }
.dt-body { font-size: 15px; line-height: 1.62; color: var(--sub); margin: 0; }
.dt-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); opacity: .95; }
.dt-eyebrow::before { content: ""; width: 20px; height: 1.5px; background: var(--gold); opacity: .7; }
.dt-note { margin: 26px 0 0; padding: 16px 18px; border: 1px solid var(--bd); border-radius: 16px; background: rgba(32,44,82,.6); font-size: 14.5px; line-height: 1.6; color: var(--sub); }

/* ---- nav ---- */
.dt-nav { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(14px); background: rgba(16,23,51,.82); border-bottom: 1px solid rgba(47,61,110,.7); }
.dt-nav-in { width: min(1180px, calc(100% - 64px)); margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.dt-brand { display: flex; align-items: center; gap: 11px; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 21px; color: var(--ink); letter-spacing: -.2px; }
.dt-brand:hover { color: #fff; }
.dt-nav-links { display: flex; gap: 26px; margin-left: auto; }
.dt-nav-links a { font-weight: 700; font-size: 14.5px; color: var(--sub); }
.dt-nav-links a:hover { color: var(--ink); }
.dt-btn { display: inline-flex; align-items: center; justify-content: center; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 15.5px; padding: 10px 20px; border-radius: 14px; }
.dt-btn-gold { background: linear-gradient(180deg, #F7D479, #E2AE3C); color: #26210C; box-shadow: 0 8px 22px -10px rgba(244,201,93,.6); }
.dt-btn-gold:hover { color: #1C1808; filter: brightness(1.06); }

/* ---- app icon (real art in a rounded tile) ---- */
.dt-icon { display: block; overflow: hidden; flex: none; box-shadow: 0 6px 18px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
.dt-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- hero ---- */
.dt-hero { position: relative; padding: 78px 0 92px; overflow: hidden; background: linear-gradient(180deg, #101733 0%, #16203F 55%, #1B2747 100%); }
.dt-hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(46% 44% at 68% 34%, rgba(244,201,93,.16), transparent 70%), radial-gradient(38% 40% at 12% 8%, rgba(86,199,160,.09), transparent 70%); pointer-events: none; }
.dt-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.dt-hero-art { display: flex; justify-content: center; }
.dt-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 34px 0 0; }
.dt-trust li { display: flex; align-items: center; gap: 7px; border: 1px solid var(--bd); background: rgba(32,44,82,.55); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 700; color: var(--sub); }
.dt-trust li::before { content: "✓"; color: var(--emerald); font-weight: 800; }

/* ---- store buttons ---- */
.dt-stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dt-store { display: inline-flex; flex-direction: column; gap: 1px; border-radius: 16px; padding: 15px 26px; background: linear-gradient(180deg, #F7D479, #E2AE3C); color: #26210C; box-shadow: 0 12px 28px -14px rgba(244,201,93,.7); }
.dt-store .dt-store-k { font-size: 11.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; opacity: .72; }
.dt-store .dt-store-n { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 19px; line-height: 1.15; }
.dt-store:hover { color: #1C1808; filter: brightness(1.06); }
.dt-store-off { background: transparent; border: 1.5px solid var(--bd); color: var(--sub); box-shadow: none; cursor: default; }
.dt-store-off .dt-store-n { color: var(--ink); }
.dt-store-note { font-size: 13px; font-weight: 700; color: var(--sub); max-width: 190px; line-height: 1.45; }
.dt-store.compact { padding: 12px 20px; }

/* ---- phone frame wrapping a real screenshot ---- */
.dt-phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dt-phone-frame { border-radius: 46px; padding: 11px; background: linear-gradient(160deg, #3B4676, #1A2140 60%, #2C3560); box-shadow: 0 28px 60px -28px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.07); }
.dt-phone-frame.glow { box-shadow: 0 40px 90px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(244,201,93,.22), 0 0 90px -20px rgba(244,201,93,.28); }
.dt-phone-screen { border-radius: 36px; overflow: hidden; position: relative; background: #16203F; aspect-ratio: 393 / 852; }
.dt-phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* placeholder shown until a screenshot is dropped in */
.dt-phone-screen .dt-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: linear-gradient(180deg, #18224568, #232f5868), #16203F; color: var(--sub); font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 15px; }
.dt-phone-cap { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13.5px; color: var(--sub); letter-spacing: .2px; }
.dt-hero-phone { width: 300px; }
.dt-parent-phone { width: 268px; }
.dt-rail-phone { width: 190px; flex: none; }

/* ---- sections ---- */
.dt-sec { padding: 96px 0; }
.dt-sec-band { background: linear-gradient(180deg, #131B39, #182246 60%, #131B39); }
.dt-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dt-card { background: linear-gradient(180deg, rgba(37,50,92,.75), rgba(29,40,76,.75)); border: 1px solid var(--bd); border-radius: 22px; padding: 26px 24px 28px; }
.dt-card-ic { width: 50px; height: 50px; border-radius: 16px; background: rgba(244,201,93,.12); border: 1px solid rgba(244,201,93,.25); display: grid; place-items: center; margin-bottom: 18px; }
.dt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dt-two-r { grid-template-columns: 1.1fr .9fr; }
.dt-sec-head { max-width: 620px; margin: 0 auto 46px; text-align: center; }
.dt-sec-head.left { margin: 0 0 46px; text-align: left; }

/* ---- Safar ---- */
.dt-safar-stage { position: relative; border-radius: 28px; border: 1px solid var(--bd); overflow: hidden; min-height: 400px; display: grid; place-items: end center; padding: 0 0 42px; background: radial-gradient(70% 60% at 50% 78%, rgba(244,201,93,.14), transparent 72%), linear-gradient(180deg, #101835, #1D2A55); }
.dt-safar-stage .dt-crescent { position: absolute; top: 34px; left: 40px; width: 92px; opacity: .9; }
.dt-safar-stage .dt-palm { position: absolute; bottom: 2%; right: 3%; width: 30%; opacity: .8; }
.dt-safar-stage .dt-rocks { position: absolute; bottom: 3%; left: 4%; width: 26%; opacity: .55; }
.dt-safar-stage .dt-safar { position: relative; z-index: 2; width: 260px; filter: drop-shadow(0 24px 30px rgba(0,0,0,.4)); animation: dt-float 4s ease-in-out infinite; }
@keyframes dt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .dt-safar-stage .dt-safar { animation: none; } }
.dt-stages { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.dt-stage { display: flex; align-items: center; gap: 14px; border: 1px solid var(--bd); background: rgba(32,44,82,.5); border-radius: 16px; padding: 13px 16px; }
.dt-stage-n { width: 30px; height: 30px; flex: none; border-radius: 10px; background: rgba(244,201,93,.14); color: var(--gold); display: grid; place-items: center; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 15px; }
.dt-stage strong { display: block; font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 16.5px; color: var(--ink); }
.dt-stage span:last-child { font-size: 13px; font-weight: 700; color: var(--sub); }

/* ---- parents ---- */
.dt-plist { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.dt-p { display: flex; gap: 16px; }
.dt-p-ic { width: 42px; height: 42px; flex: none; border-radius: 13px; background: rgba(244,201,93,.1); border: 1px solid rgba(244,201,93,.22); display: grid; place-items: center; }
.dt-parent-art { display: flex; justify-content: center; }

/* ---- screens rail ---- */
.dt-rail { display: flex; gap: 24px; overflow-x: auto; padding: 8px 40px 34px; scrollbar-width: thin; justify-content: safe center; }
.dt-rail::-webkit-scrollbar { height: 8px; }
.dt-rail::-webkit-scrollbar-thumb { background: #2F3D6E; border-radius: 99px; }

/* ---- faq ---- */
.dt-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.dt-q { border: 1px solid var(--bd); background: rgba(32,44,82,.55); border-radius: 18px; padding: 4px 22px; }
.dt-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 18px; color: var(--ink); }
.dt-q summary::-webkit-details-marker { display: none; }
.dt-q-x { position: relative; width: 15px; height: 15px; flex: none; }
.dt-q-x::before, .dt-q-x::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; transition: transform .18s ease; }
.dt-q-x::before { left: 0; top: 6.5px; width: 15px; height: 2px; }
.dt-q-x::after { left: 6.5px; top: 0; width: 2px; height: 15px; }
.dt-q[open] .dt-q-x::after { transform: scaleY(0); }
.dt-q p { padding: 0 0 20px; max-width: 70ch; }

/* ---- cta + footer ---- */
.dt-cta { padding: 74px 0; background: linear-gradient(180deg, #182246, #101733); }
.dt-cta-in { display: flex; align-items: center; gap: 40px; border: 1px solid var(--bd); border-radius: 28px; padding: 40px 44px; background: radial-gradient(60% 120% at 88% 20%, rgba(244,201,93,.14), transparent 70%), rgba(32,44,82,.55); }
.dt-foot { border-top: 1px solid var(--bd); background: #0D1430; padding: 56px 0 26px; }
.dt-foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, .8fr); gap: 40px; }
.dt-foot-brand { display: flex; flex-direction: column; gap: 14px; }
.dt-foot-col h4 { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 15px; color: var(--ink); margin: 6px 0 14px; letter-spacing: .2px; }
.dt-foot-col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.dt-foot-col a { font-size: 14.5px; font-weight: 700; color: var(--sub); }
.dt-foot-col a:hover { color: var(--gold); }
.dt-foot-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(47,61,110,.6); font-size: 13px; font-weight: 600; color: #7C87B4; }

/* ---- legal pages ---- */
.dt-legal { max-width: 760px; margin: 0 auto; padding: 60px 0 90px; }
.dt-legal .dt-h1 { font-size: clamp(32px, 4vw, 46px); }
.dt-legal-meta { font-size: 14px; font-weight: 700; color: var(--sub); margin: 0 0 8px; }
.dt-legal h2 { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 24px; color: var(--ink); margin: 44px 0 12px; letter-spacing: -.3px; }
.dt-legal h3 { font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 18px; color: var(--ink); margin: 26px 0 8px; }
.dt-legal p, .dt-legal li { font-size: 16px; line-height: 1.68; color: #C7CFEC; }
.dt-legal p { margin: 0 0 16px; }
.dt-legal ul { margin: 0 0 16px; padding-left: 22px; }
.dt-legal li { margin: 0 0 9px; }
.dt-legal strong { color: var(--ink); }
.dt-legal a { text-decoration: underline; text-underline-offset: 2px; }
.dt-legal .dt-callout { border: 1px solid var(--bd); border-left: 3px solid var(--gold); background: rgba(32,44,82,.5); border-radius: 14px; padding: 16px 20px; margin: 0 0 20px; }
.dt-legal .dt-callout p:last-child { margin: 0; }
.dt-back { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .dt-hero-grid, .dt-two, .dt-two-r { grid-template-columns: 1fr; gap: 44px; }
  .dt-grid3 { grid-template-columns: 1fr 1fr; }
  .dt-nav-links { display: none; }
  .dt-foot-in { grid-template-columns: 1fr 1fr; }
  .dt-cta-in { flex-direction: column; align-items: flex-start; padding: 32px; }
  .dt-sec { padding: 70px 0; }
}
@media (max-width: 640px) {
  .dt-grid3 { grid-template-columns: 1fr; }
  .dt-wrap { width: calc(100% - 40px); }
  .dt-rail { padding-left: 20px; padding-right: 20px; }
  .dt-foot-base { flex-direction: column; }
  .dt-hero-phone { width: 250px; }
}
