/* Lidsong home page. The support, privacy, terms and gift pages use style.css only.
   A night stage in the app's colors: navy sky, velvet curtains, brass and cream. */
:root {
  --navy: #17193A; --navy-2: #22245A; --velvet: #A3203F; --velvet-2: #6A1A38;
  --cream: #F3E6D0; --muted: #C9C2E8; --gold: #E9C46A; --brass: #C9A24A; --ink: #2A1A33;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--navy); color: var(--cream); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--gold); }
img, video { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
section { scroll-margin-top: 24px; }
h1, h2, h3 { font-family: var(--serif); font-style: italic; font-weight: 600; line-height: 1.05; letter-spacing: -.005em; }
h2 { font-size: clamp(2.3rem, 5.5vw, 3.4rem); text-align: center; }
.sub { text-align: center; color: var(--muted); max-width: 560px; margin: 12px auto 0; font-size: 1.08rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* Night sky: twinkling stars and the moon, behind the hero */
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(70% 60% at 70% 30%, #2C2F72 0%, transparent 70%), linear-gradient(180deg, #121430, var(--navy) 85%); }
.sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 3.2s ease-in-out infinite; }
.sky .moon { position: absolute; top: 70px; right: 7%; width: 74px; height: 74px; border-radius: 50%; box-shadow: -14px 10px 0 0 #F6E7B8; transform: rotate(-12deg); filter: drop-shadow(0 0 18px rgba(246,231,184,.35)); }
@keyframes twinkle { 50% { opacity: .15; transform: scale(.6); } }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: italic 600 1.7rem/1 var(--serif); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--cream); }
.top nav .get { background: var(--gold); color: var(--ink); padding: 9px 16px; }
.top nav .get:hover { color: var(--ink); background: #F3D98E; }

/* Hero */
.hero { position: relative; isolation: isolate; padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-top: 28px; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 430px 1fr; gap: 48px; padding-top: 56px; } }
.hero h1 { font-size: clamp(3rem, 7.4vw, 4.9rem); margin: 18px 0 20px; }
.hero h1 em { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 460px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.also { font-size: .92rem; color: var(--muted); }

/* App Store button */
.store { display: inline-flex; align-items: center; gap: 11px; background: #000; color: #fff; text-decoration: none; padding: 11px 22px 11px 18px; border-radius: 14px; border: 1px solid rgba(243,230,208,.3); transition: transform .2s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; fill: #fff; }
.store small { display: block; font-size: .68rem; line-height: 1.1; opacity: .85; }
.store strong { display: block; font-size: 1.2rem; line-height: 1.1; letter-spacing: -.01em; }

/* The fold demo: an iPhone Duo that opens like a book. --a is the hinge angle, 0–180. */
.demo { display: flex; flex-direction: column; align-items: center; }
.stage { --w: min(270px, 44vw); width: calc(var(--w) * 2); height: calc(var(--w) * 1.407); perspective: 1800px; touch-action: pan-y; cursor: grab; }
.stage:active { cursor: grabbing; }
.duo { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(8deg) translateX(calc((1 - var(--a) / 180) * -25%)); transition: transform .08s linear; }
.half, .face { position: absolute; top: 0; width: 50%; height: 100%; padding: 7px; background: #0B0C18; border: 1px solid #3A3C5E; }
/* The inner display runs across the fold with no bezel, so the two inner halves have none on the hinge side. */
.half { left: 50%; border-radius: 0 26px 26px 0; padding-left: 0; border-left: 0; box-shadow: 0 40px 60px -30px rgba(0,0,0,.7); }
.lid { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d;
  transform: rotateY(calc(var(--a) * -1deg)); }
.face { left: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.front { border-radius: 6px 26px 26px 6px; }
.face.back { transform: rotateY(180deg); border-radius: 26px 0 0 26px; padding-right: 0; border-right: 0; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.half .screen { border-radius: 0 20px 20px 0; }
.face.front .screen { border-radius: 2px 20px 20px 2px; }
.face.back .screen { border-radius: 20px 0 0 20px; }
.screen img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: cover; }
.half .screen img { left: -100%; }
.face.back .screen img { left: 0; }
.face.front .screen img { width: 100%; left: 0; }
.face.front .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,calc(var(--a) / 300)), transparent); }
.controls { width: min(420px, 100%); margin-top: 26px; }
.readout { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; color: var(--muted); }
.readout b { font: 700 1.1rem var(--sans); color: var(--cream); font-variant-numeric: tabular-nums; }
.readout .state.playing { color: var(--gold); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--gold) var(--p, 0%), rgba(243,230,208,.2) var(--p, 0%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(243,230,208,.2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--gold); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--cream); border: 3px solid var(--gold); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--cream); border: 3px solid var(--gold); }
.hint { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 2px; }

/* Sections */
.block { padding: 88px 0 0; }
.card { background: linear-gradient(160deg, var(--navy-2), #1A1C44); border: 1px solid rgba(201,162,74,.35); border-radius: 24px; }

/* Postures */
.postures { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 44px; }
@media (min-width: 860px) { .postures { grid-template-columns: .8fr 1.6fr 1fr; align-items: end; } }
.posture { padding: 18px 18px 22px; }
.posture .shot { display: grid; place-items: center; min-height: 200px; }
.posture img { border-radius: 16px; border: 5px solid #0B0C18; box-shadow: 0 0 0 1px #3A3C5E, 0 24px 40px -24px rgba(0,0,0,.8); }
.posture.closed img { max-height: 300px; }
.posture.table img { max-height: 300px; transform: perspective(700px) rotateX(14deg); }
.posture h3 { font-size: 1.75rem; margin-top: 18px; }
.posture p { color: var(--muted); font-size: .98rem; margin-top: 4px; }

/* Video */
.film { position: relative; margin-top: 40px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(201,162,74,.35); background: #2A2959; }
.film video { width: 100%; height: auto; }
.sound { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 .9rem var(--sans); color: var(--ink); background: var(--gold); border-radius: 999px; padding: 10px 16px; min-height: 44px; }

/* The hinge is the lid */
.feel { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }
@media (min-width: 760px) { .feel { grid-template-columns: repeat(3, 1fr); } }
.feel .card { padding: 26px; }
.feel .num { font: italic 600 2.6rem/1 var(--serif); color: var(--gold); }
.feel h3 { font-size: 1.55rem; margin: 10px 0 6px; }
.feel p { color: var(--muted); font-size: .98rem; }

/* Make it yours */
.yours { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; margin-top: 44px; }
@media (min-width: 860px) { .yours { grid-template-columns: 1fr 1fr; } }
.yours .pics { display: flex; justify-content: center; gap: 16px; }
.yours .pics img { width: 44%; max-width: 230px; border-radius: 18px; border: 5px solid #0B0C18; box-shadow: 0 0 0 1px #3A3C5E, 0 24px 40px -24px rgba(0,0,0,.8); }
.yours .pics img:last-child { transform: translateY(28px); }
.list { list-style: none; display: grid; gap: 12px; }
.list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 18px; }
.list b { font: italic 600 1.4rem var(--serif); color: var(--gold); min-width: 104px; }
.list span { color: var(--muted); }
.tunes { margin-top: 18px; padding: 18px 22px; }
.tunes h3 { font-size: 1.4rem; margin-bottom: 8px; }
.tunes ul { list-style: none; display: grid; gap: 6px; font-size: .96rem; }
.tunes li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.tag.paid { color: #E79AAF; }

/* Price */
.price { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 820px; margin: 44px auto 0; }
@media (min-width: 720px) { .price { grid-template-columns: 1fr 1fr; } }
.price .card { padding: 28px; }
.price h3 { font-size: 1.8rem; }
.price .big { font: 700 2.6rem/1.1 var(--sans); margin: 8px 0 12px; letter-spacing: -.02em; }
.price .big small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price ul { list-style: none; display: grid; gap: 6px; color: var(--muted); }
.price li::before { content: "✦ "; color: var(--gold); }
.price .best { background: linear-gradient(160deg, var(--velvet), var(--velvet-2)); border-color: var(--gold); }
.price .best ul { color: #F2D6DD; }

/* Any iPhone */
.any { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 32px; margin-top: 88px; }
@media (min-width: 760px) { .any { grid-template-columns: 180px 1fr; gap: 40px; padding: 36px 48px; } }
.any img { width: 160px; margin: 0 auto; border-radius: 18px; border: 5px solid #0B0C18; box-shadow: 0 0 0 1px #3A3C5E; }
.any h2 { text-align: left; font-size: clamp(2rem, 4.5vw, 2.6rem); }
.any p { color: var(--muted); margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(201,162,74,.45); color: var(--cream); }
.soon { color: var(--gold) !important; border-color: var(--gold) !important; }

/* End */
.end { text-align: center; padding: 110px 0 20px; }
.end img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 18px 40px -12px rgba(233,196,106,.45); }
.end .store { margin-top: 26px; }
.foot { border-top: 1px solid rgba(233,196,106,.25); margin-top: 88px; padding: 28px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--cream); }

@media (max-width: 640px) {
  .top nav a:not(.get) { display: none; }
  .sky .moon { top: 150px; right: 22px; width: 46px; height: 46px; box-shadow: -9px 6px 0 0 #F6E7B8; }
  .foot { flex-direction: column; }
  .list b { min-width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
