/* younique — ynq.me placeholder
   Minimal single-screen brand holding-page.
   Tokens lifted from younique-dev/src/app/globals.css
*/

:root {
  --ink: #0c0c0c;
  --paper: #f0ede8;
  --orange-hi: #ffa266;
  --orange-mid: #f77e2d;
  --orange-lo:  #c75a1a;
  --orange-deeper: #a04b13;
  --koper: #f77e2d;
  --koper-hover: #C75A1A;
  --koper-tint:  rgba(247, 126, 45, 0.10);
  --sheen-fill:  linear-gradient(180deg, var(--orange-hi) 0%, var(--orange-mid) 45%, var(--orange-lo) 100%);
  --sheen-edge:  inset 0 1px 0 rgba(255, 255, 255, 0.32),
                 inset 0 -1px 0 rgba(0, 0, 0, 0.18),
                 0 1px 0 rgba(255, 255, 255, 0.10) inset;
  --mid: #a8a49e;
  --font-brand: 'Manrope', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Subtle SVG film grain (3% opacity) — kills banding + adds tactility without the AI-blob feel. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

/* Single off-center cosmic-orange edge-light — sober, one source, top-left only. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(700px 360px at 0% 0%, rgba(255, 162, 102, 0.22), transparent 55%),
    radial-gradient(520px 320px at 0% 0%, rgba(247, 126, 45, 0.16), transparent 60%);
}

/* Hairline brand stripe at top edge — sheen gradient mirroring iPhone 17 chamfer. */
body {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--orange-hi), var(--orange-mid) 50%, var(--orange-lo)) 1;
}

main {
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vh, 32px) clamp(20px, 4vw, 32px);
  min-height: 0;
}

.card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(8px, 1.6vh, 16px);
  max-width: 28rem;
  width: 100%;
}

.mark {
  display: block;
  width: clamp(72px, min(20vw, 16vh), 144px);
  height: auto;
  margin-bottom: clamp(2px, 0.8vh, 8px);
  filter:
    drop-shadow(0 0 28px rgba(255, 162, 102, 0.32))
    drop-shadow(0 14px 36px rgba(247, 126, 45, 0.45));
}

.wordmark {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(34px, min(7vw, 8vh), 76px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  color: var(--paper);
}

.tag {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: rgba(240, 237, 232, 0.62);
  margin: 0;
}

.contact {
  display: inline-block;
  margin-top: clamp(12px, 2.4vh, 24px);
  font-family: var(--font-body);
  font-size: clamp(12.5px, 1.8vh, 14px);
  font-weight: 500;
  color: var(--orange-mid);
  text-decoration: none;
  padding: clamp(8px, 1.4vh, 10px) clamp(16px, 2.6vw, 20px);
  border-radius: 999px;
  border: 1px solid rgba(247, 126, 45, 0.42);
  background: rgba(247, 126, 45, 0.08);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.contact:hover {
  background: rgba(247, 126, 45, 0.14);
  border-color: rgba(247, 126, 45, 0.6);
  color: var(--orange-hi);
}
.contact:focus-visible {
  outline: 2px solid var(--orange-mid);
  outline-offset: 3px;
}
.contact:focus-visible {
  outline: 2px solid var(--koper);
  outline-offset: 3px;
}

footer {
  padding: clamp(16px, 2.4vh, 32px) clamp(20px, 4vw, 28px) clamp(12px, 2vh, 24px);
  border-top: 1px solid rgba(240, 237, 232, 0.06);
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--font-body);
}

.foot-meta {
  list-style: none;
  margin: 0 auto clamp(8px, 1.4vh, 14px);
  padding: 0;
  max-width: 64rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  font-size: clamp(10.5px, 1.6vh, 12.5px);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(240, 237, 232, 0.7);
  text-align: center;
}
.foot-meta li { padding: 0; display: inline-flex; align-items: center; gap: 8px; }
.foot-meta li:first-child {
  flex-basis: 100%;
  justify-content: center;
  margin-bottom: 4px;
  color: rgba(240, 237, 232, 0.78);
}
.foot-meta li:not(:first-child) + li::before {
  content: "·";
  color: rgba(240, 237, 232, 0.22);
}
.foot-meta a { color: inherit; text-decoration: none; }
.foot-meta a:hover { color: var(--koper); }

.foot-fine {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(9.5px, 1.4vh, 11px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.4);
  border-top: 1px solid rgba(240, 237, 232, 0.06);
  padding-top: clamp(10px, 1.6vh, 14px);
}
.foot-fine .foot-mark { opacity: 0.7; transform: translateY(-1px); }

@media (max-width: 480px) {
  /* Tiny viewports — drop separator dots so wrap doesn't leave orphans. */
  .foot-meta li + li::before { content: ""; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ──────────────────────── install prompt (fly-in card) */
.install-prompt {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;
  width: min(100%, 28rem);
  padding: 16px;
  pointer-events: none;
}
.install-card {
  pointer-events: auto;
  position: relative;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(247, 126, 45, 0.35);
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(247, 126, 45, 0.22) inset,
    0 -2px 0 rgba(247, 126, 45, 0.4) inset;
  /* fly-in start state */
  opacity: 0;
  transform: translateY(120%) scale(0.96);
  transition:
    opacity 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.install-prompt.is-visible .install-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.install-prompt.is-leaving .install-card {
  opacity: 0;
  transform: translateY(120%) scale(0.96);
  transition:
    opacity 240ms ease-out,
    transform 320ms cubic-bezier(0.5, 0, 0.75, 0);
}
.install-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px; height: 28px;
  border: none;
  background: transparent;
  color: rgba(240, 237, 232, 0.6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 120ms ease, color 120ms ease;
}
.install-close:hover {
  background: rgba(240, 237, 232, 0.08);
  color: var(--paper);
}
.install-close:focus-visible {
  outline: 2px solid var(--koper);
  outline-offset: 2px;
}

.install-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.install-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(247, 126, 45, 0.3));
}
.install-title {
  font-family: var(--font-brand);
  font-size: 15px; font-weight: 700;
  color: var(--paper);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.install-title strong { font-weight: 800; color: var(--paper); }
.install-sub {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: rgba(240, 237, 232, 0.6);
  margin: 0;
}

.install-actions {
  display: flex;
  gap: 10px;
}
.install-btn {
  flex: 1;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.install-btn-primary {
  background: var(--sheen-fill);
  color: #fff;
  border: 1px solid rgba(255, 162, 102, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 6px 18px -4px rgba(247, 126, 45, 0.55);
  position: relative;
  overflow: hidden;
}
.install-btn-primary::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(170deg, rgba(255,255,255,0.28) 0%, transparent 38%, transparent 64%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}
.install-btn-primary:hover {
  transform: translate(-1px, -1px);
  filter: brightness(1.06) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 10px 24px -4px rgba(247, 126, 45, 0.65);
}
.install-btn-primary:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

.install-btn-ghost {
  background: transparent;
  color: rgba(240, 237, 232, 0.7);
  border-color: rgba(240, 237, 232, 0.18);
}
.install-btn-ghost:hover {
  color: var(--paper);
  border-color: rgba(240, 237, 232, 0.4);
  background: rgba(240, 237, 232, 0.04);
}

.install-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.install-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-body);
  font-size: 13px; line-height: 1.45;
  color: rgba(240, 237, 232, 0.78);
}
.install-list li strong { color: var(--paper); font-weight: 600; }
.install-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-brand);
  font-size: 11px; font-weight: 800;
  color: var(--koper);
  background: var(--koper-tint);
  border: 1px solid rgba(247, 126, 45, 0.46);
  border-radius: 999px;
  letter-spacing: 0;
  margin-top: 1px;
}
.install-icon {
  vertical-align: -2px;
  color: var(--koper);
  margin: 0 2px;
}

.install-generic {
  font-family: var(--font-body);
  font-size: 13px; line-height: 1.5;
  color: rgba(240, 237, 232, 0.78);
  margin: 0;
}
.install-generic strong { color: var(--paper); font-weight: 600; }

/* iOS-only Safari arrow pointing to share button */
@supports (-webkit-touch-callout: none) {
  .install-prompt::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%) rotate(45deg);
    width: 14px; height: 14px;
    background: rgba(12, 12, 12, 0.92);
    border-right: 1px solid rgba(247, 126, 45, 0.35);
    border-bottom: 1px solid rgba(247, 126, 45, 0.35);
    opacity: 0;
    transition: opacity 360ms ease;
  }
  .install-prompt.is-visible::after { opacity: 1; }
}

@media (max-width: 480px) {
  .install-prompt { padding: 12px; }
  .install-card { padding: 16px 16px 14px; border-radius: 14px; }
  .install-title { font-size: 14px; }
  .install-sub { font-size: 12px; }
}
