/* ======================================================
   GoodDrama for iPhone — gooddrama.org/ios
   Light, premium, Apple-inspired. Deliberately distinct
   from the dark cinematic Android site.
   ====================================================== */

:root {
  --bg: #ffffff;
  --bg-tint: #f5f5f7;        /* Apple's signature light grey */
  --bg-card: #ffffff;
  --ink: #1d1d1f;            /* Apple near-black */
  --ink-soft: #424245;
  --ink-dim: #6e6e73;
  --ink-mute: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);

  --violet: #8b5cf6;
  --pink: #ec4899;
  --rose: #ff7a9a;
  --blue: #0a84ff;

  --grad: linear-gradient(135deg, #ff7a9a 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, #ffe1ea 0%, #ece4ff 100%);

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
          'Plus Jakarta Sans', 'Segoe UI', sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --max-w: 1140px;
  --max-w-narrow: 760px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 40px -12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 40px 100px -30px rgba(80, 30, 120, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--max-w-narrow); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.85);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
}
.brand__mark { width: 30px; height: 30px; }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.brand__chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--violet);
  background: rgba(139, 92, 246, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
}
.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 22px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s ease; }

/* ============ HERO ============ */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__mesh {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 800px;
  background:
    radial-gradient(50% 50% at 20% 20%, rgba(255, 122, 154, 0.30), transparent 60%),
    radial-gradient(50% 50% at 80% 10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(50% 50% at 60% 50%, rgba(10, 132, 255, 0.14), transparent 60%);
  filter: blur(20px);
  z-index: -1;
}
.hero__inner { position: relative; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  backdrop-filter: blur(8px);
}
.hero__title {
  margin: 26px auto 20px;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.045em;
  max-width: 14ch;
  background: linear-gradient(180deg, #1d1d1f 30%, #4a3a6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin: 0 auto 34px;
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-dim);
  font-weight: 400;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-dim);
}
.hero__stars { color: #ff9f0a; letter-spacing: 2px; }
.hero__rating-text strong { color: var(--ink); }

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.25); }
.appstore-badge__text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.appstore-badge__text small { font-size: 11px; opacity: 0.8; font-weight: 400; }
.appstore-badge__text strong { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.appstore-badge--sm { padding: 10px 18px; margin-top: 28px; }
.appstore-badge--sm .appstore-badge__text strong { font-size: 17px; }
.appstore-badge--light { background: #fff; color: var(--ink); }
.appstore-badge--light:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.15); }

/* iPhone mockup */
.hero__device {
  position: relative;
  margin: 56px auto 0;
  width: fit-content;
  padding-bottom: 60px;
}
.hero__device-glow {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 520px; height: 260px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(139, 92, 246, 0.35), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.iphone {
  position: relative;
  width: 300px;
  height: 620px;
  background: #1d1d1f;
  border-radius: 54px;
  padding: 11px;
  box-shadow:
    inset 0 0 0 2px #3a3a3c,
    0 0 0 1px rgba(0,0,0,0.1),
    var(--shadow-lg);
}
.iphone__island {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 32px;
  background: #000;
  border-radius: 20px;
  z-index: 4;
}
.iphone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(165deg, var(--g1, #8b5cf6), var(--g2, #ec4899));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.iphone__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22), transparent 55%),
    linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.8) 100%);
}
.iphone__status {
  position: absolute;
  top: 22px; left: 0; right: 0;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  z-index: 3;
}
.iphone__status-right { display: flex; align-items: center; gap: 5px; }
.iphone__badge {
  position: absolute;
  top: 70px; left: 24px;
  padding: 4px 11px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  z-index: 2;
}
.iphone__caption { position: relative; z-index: 2; color: #fff; padding-right: 60px; }
.iphone__caption .tag {
  display: inline-block;
  padding: 4px 11px;
  background: rgba(255,255,255,0.95);
  color: #1d1d1f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  margin-bottom: 11px;
  text-transform: uppercase;
}
.iphone__caption .tag--alt { background: var(--violet); color: #fff; }
.iphone__caption h3 { font-size: 23px; font-weight: 700; margin-bottom: 8px; text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.iphone__caption p { font-size: 13.5px; margin: 0; opacity: 0.92; }
.iphone__rail {
  position: absolute;
  right: 16px;
  bottom: 130px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 3;
}
.iphone__rail button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
}
.iphone__rail i { font-size: 10px; font-style: normal; opacity: 0.9; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.iphone__progress {
  position: absolute;
  left: 24px; right: 24px;
  bottom: 26px;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
  z-index: 3;
}
.iphone__progress span { display: block; height: 100%; width: 42%; background: #fff; border-radius: 2px; }

/* ============ TRUST ============ */
.trust {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--line);
}
.trust__inner { text-align: center; }
.trust__label {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin: 0 0 22px;
}
.trust__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.trust__stats div:not(.trust__sep) {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust__stats strong {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust__stats span { font-size: 13px; color: var(--ink-dim); }
.trust__sep { width: 1px; height: 40px; background: var(--line); }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 720px; margin: 0 0 60px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 100%;
}
.kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--violet);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.035em;
}
.section__lede {
  margin: 18px 0 0;
  font-size: 19px;
  color: var(--ink-dim);
  font-weight: 400;
  max-width: 620px;
}
.section__head--center .section__lede { margin-left: auto; margin-right: auto; }
.link-arrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--violet);
}
.link-arrow:hover { text-decoration: underline; }

/* ----- cards ----- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 14%, white);
  color: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card--feature h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.02em; }
.card--feature p { margin: 0; color: var(--ink-dim); font-size: 15.5px; }

/* ----- showcase ----- */
.showcase { background: var(--bg-tint); overflow: hidden; }
.showcase__inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.ticklist { display: flex; flex-direction: column; gap: 22px; margin: 36px 0 0; }
.ticklist li { display: flex; gap: 14px; align-items: flex-start; }
.ticklist strong { color: var(--ink); font-weight: 600; }
.ticklist div { color: var(--ink-dim); font-size: 15.5px; line-height: 1.45; }
.tick {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad);
  position: relative;
  margin-top: 2px;
}
.tick::after {
  content: "";
  position: absolute;
  left: 9px; top: 6px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.showcase__device { display: flex; justify-content: center; }
.iphone--showcase { transform: rotate(3deg); }

/* ----- privacy ----- */
.privacy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card--privacy { text-align: center; padding: 36px 24px; }
.card__pic {
  font-size: 40px;
  margin-bottom: 18px;
  line-height: 1;
}
.card--privacy h3 { font-size: 19px; margin-bottom: 10px; }
.card--privacy p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }

/* ----- genres ----- */
.genres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.genre {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--g1), var(--g2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.genre::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.28), transparent 60%),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
}
.genre::after {
  content: "→";
  position: absolute;
  top: 20px; right: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  transition: transform .25s ease, background .25s ease;
}
.genre:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.genre:hover::after { background: rgba(255,255,255,0.4); transform: translate(2px,-2px); }
.genre__title { position: relative; font-size: 22px; font-weight: 700; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.3); letter-spacing: -0.02em; }
.genre__count { position: relative; font-size: 13px; color: rgba(255,255,255,0.9); margin-top: 3px; }

/* ----- reviews ----- */
.reviews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card--review { margin: 0; padding: 28px; }
.review__stars { color: #ff9f0a; font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.card--review h4 { font-size: 16px; margin-bottom: 8px; }
.card--review p { font-size: 15px; color: var(--ink-soft); margin: 0 0 16px; }
.card--review footer { font-size: 13px; color: var(--ink-mute); }

/* ----- faq ----- */
.faq { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 22px 0;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 2px solid var(--ink-mute);
  border-bottom: 2px solid var(--ink-mute);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-right: 4px;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p { margin: 0 0 22px; color: var(--ink-dim); font-size: 16px; max-width: 640px; }
.faq__item a { color: var(--violet); font-weight: 500; }
.faq__item a:hover { text-decoration: underline; }

/* ============ CTA ============ */
.cta {
  padding: 110px 0;
  text-align: center;
  background: var(--grad);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255,255,255,0.25), transparent 70%);
}
.cta__inner { position: relative; color: #fff; }
.cta h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.04em; margin-bottom: 16px; }
.cta p { font-size: 19px; max-width: 540px; margin: 0 auto 32px; opacity: 0.95; }
.cta .appstore-badge { margin: 0 auto; }
.cta__note { font-size: 15px !important; margin-top: 28px !important; opacity: 0.92; }
.cta__note a { font-weight: 600; text-decoration: underline; }

/* ============ FOOTER ============ */
.footer { padding: 72px 0 32px; background: var(--bg); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer__brand p { margin: 16px 0 0; color: var(--ink-dim); font-size: 14px; max-width: 280px; }
.footer__col h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 16px; }
.footer__col ul li { margin-bottom: 11px; }
.footer__col ul a { font-size: 14px; color: var(--ink-dim); transition: color .2s ease; }
.footer__col ul a:hover { color: var(--ink); }
.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-mute);
  font-size: 12.5px;
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }

  .section { padding: 80px 0; }
  .features { grid-template-columns: 1fr; }
  .privacy__grid { grid-template-columns: 1fr 1fr; }
  .genres { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .showcase__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .showcase__copy .ticklist { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
  .showcase__copy .kicker, .showcase__copy .section__title { text-align: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__inner { height: 56px; }
  .brand__chip { display: none; }
  .hero { padding-top: 52px; }
  .iphone { width: 264px; height: 548px; }
  .privacy__grid { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .genres { grid-template-columns: 1fr 1fr; }
  .trust__sep { display: none; }
  .trust__stats { gap: 22px 36px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ LEGAL PAGES ============ */
.legal { padding: 96px 0 80px; max-width: 760px; margin: 0 auto; }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--violet);
  margin-bottom: 28px;
}
.legal__back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.04em; margin-bottom: 12px; }
.legal .updated { font-size: 14px; color: var(--ink-mute); margin-bottom: 44px; }
.legal h2 { font-size: 25px; margin: 44px 0 14px; letter-spacing: -0.02em; }
.legal h3 { font-size: 16px; font-weight: 600; margin: 24px 0 6px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 22px; margin: 14px 0; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--violet); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal__intro { font-size: 18px !important; color: var(--ink-dim) !important; }
