/* Arkaan, auth handoff + landing.
   Palette and type lifted straight from the app (ArkaanTokens / ArkaanType)
   so the web endpoint reads as the same product, not a bolt-on site. */

:root {
  --cream: #f7f4ee;
  --card: #ffffff;
  --deep: #234a3f;
  --myrtle: #2f5d50;
  --leaf: #5e8c7a;
  --mint: #eaf2ec;
  --mint-deep: #dce9e0;
  --hair: #e8dfd3;
  --gold: #b87d22;
  --ink: #33323a;
  --muted: #7a7365;
  --night: #1e1b30;
  --lilac: #5b4c82;

  --field: var(--cream);
  --panel: var(--card);
  --text: var(--ink);
  --text-soft: var(--muted);
  --rule: var(--hair);
  --accent: var(--deep);
  --accent-ink: #ffffff;

  /* Sky, the garden-gate arch. Defaults to a calm daylight. */
  --sky-top: #dce9e0;
  --sky-bot: #f4efe6;
  --orb: #de9f55;
  --orb-glow: rgba(243, 217, 168, 0.7);
  --orb-x: 214px;
  --orb-y: 54px;
  --ground: #cADBCF;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --field: var(--night);
    --panel: #2e3a44;
    --text: #f7f4ee;
    --text-soft: #b9b2c9;
    --rule: rgba(220, 233, 224, 0.14);
    --accent: #85ae9b;
    --accent-ink: #1e1b30;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--field);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: grid;
  place-items: center;
  padding: 28px 20px;
}

.shell {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

/* ---- The garden-gate arch: the app's live sky under a pointed arch ---- */
.gate {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 26px;
  aspect-ratio: 300 / 208;
}

.gate svg { display: block; width: 100%; height: auto; }

.sky-top { stop-color: var(--sky-top); }
.sky-bot { stop-color: var(--sky-bot); }

.orb {
  fill: var(--orb);
  transform: translate(var(--orb-x), var(--orb-y));
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    fill 0.8s ease;
}
.orb-glow { fill: var(--orb-glow); opacity: 0.55; }

.tree-trunk { fill: #7a5a3c; }
.tree-leaf { fill: var(--leaf); }
.tree-leaf-2 { fill: var(--myrtle); }
.ground { fill: var(--ground); }

.arch-rule { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: 0.5; }

/* State variants recolor the sky and move the celestial body. */
[data-sky="day"] {
  --sky-top: #cfe2d6;
  --sky-bot: #f4efe6;
  --orb: #e0a95e;
  --orb-glow: rgba(243, 217, 168, 0.8);
  --orb-x: 150px;
  --orb-y: 40px;
  --ground: #c3d6c9;
}
[data-sky="dawn"] {
  --sky-top: #e7d9c4;
  --sky-bot: #f6efe4;
  --orb: #de9f55;
  --orb-glow: rgba(243, 217, 168, 0.75);
  --orb-x: 214px;
  --orb-y: 78px;
  --ground: #cbdccf;
}
[data-sky="dusk"] {
  --sky-top: #2b2542;
  --sky-bot: #5b4c82;
  --orb: #e9e2f4;
  --orb-glow: rgba(198, 182, 230, 0.5);
  --orb-x: 92px;
  --orb-y: 52px;
  --ground: #3b3556;
  --tree-tint: #6f6a8e;
}
[data-sky="dusk"] .tree-leaf { fill: #7c8f88; }
[data-sky="dusk"] .tree-leaf-2 { fill: #566b63; }
[data-sky="dusk"] .tree-trunk { fill: #4a4363; }

/* ---- Wordmark ---- */
.mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 22px;
}
.mark .ar {
  font-family: "Noto Naskh Arabic", serif;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
}
.mark .latin {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--text-soft);
  text-transform: uppercase;
}

/* ---- Message block ---- */
h1 {
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
}

p.lede {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0 auto 26px;
  max-width: 34ch;
}

/* ---- Actions ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 15px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 22px -12px rgba(35, 74, 63, 0.7);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* The landing call to action while there is no store listing to link to:
   the button's shape and size, none of its affordance, nothing to click,
   so no accent fill, no pointer, no lift. */
.btn.soon {
  background: var(--panel);
  color: var(--text-soft);
  border: 1px dashed var(--rule);
  box-shadow: none;
  cursor: default;
}
.btn.soon:hover { transform: none; }

.btn.pulse { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 8px 22px -12px rgba(35, 74, 63, 0.7); }
  50% { box-shadow: 0 8px 30px -8px rgba(94, 140, 122, 0.85); }
}

:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

/* The rule above carries the same specificity as `.btn` and comes later, so
   without this the pill's corners would snap from 15px to 6px the instant a
   keyboard reached it, and back again on blur. */
.btn:focus-visible { border-radius: 15px; }

.hint {
  margin: 16px auto 0;
  font-size: 13.5px;
  color: var(--text-soft);
  max-width: 32ch;
  min-height: 1.2em;
}
.hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Footer ---- */
.foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--text-soft);
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.foot a { color: var(--text-soft); text-decoration: none; }
.foot a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .orb { transition: none; }
  .btn.pulse { animation: none; }
  .btn:hover { transform: none; }
}
