/* Trylune website — single stylesheet, no external dependencies. */

:root {
  color-scheme: light dark;
  --bg: #fdfbfa;
  --bg-soft: #f9eef4;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #241b21;
  --ink-soft: #5d4d56;
  --muted: #88747e;
  --pink: #d0267c;
  --pink-deep: #a5145f;
  --pink-soft: #fbe2ee;
  --pink-glow: rgba(208, 38, 124, 0.18);
  --plum: #2a1924;
  --plum-soft: #3d2634;
  --border: #f1dee8;
  --border-strong: #e6c6d6;
  --shadow: 0 24px 70px rgba(64, 24, 45, 0.13);
  --shadow-soft: 0 12px 32px rgba(64, 24, 45, 0.08);
  --radius: 26px;
  --radius-sm: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120e11;
    --bg-soft: #1c1218;
    --surface: #1b1419;
    --surface-strong: #241a21;
    --ink: #f8f0f4;
    --ink-soft: #d5c4cd;
    --muted: #a9929e;
    --pink: #f06aae;
    --pink-deep: #ff8fc2;
    --pink-soft: #341b29;
    --pink-glow: rgba(240, 106, 174, 0.22);
    --plum: #0c080b;
    --plum-soft: #1d1219;
    --border: #33232d;
    --border-strong: #4a3240;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--pink-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--pink); }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; color: var(--bg); }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--pink-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(3rem, 7.4vw, 5.6rem); font-weight: 850; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 820; }
h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.015em; }

p { margin: 0; }

.lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.section { padding: clamp(64px, 9vw, 110px) 0; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.section-heading .lead { max-width: 30rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 16px var(--pink-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover { color: var(--pink-deep); }

.header-cta { display: inline-flex; gap: 10px; align-items: center; }

.nav-menu { display: none; position: relative; }

.nav-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-menu summary::-webkit-details-marker { display: none; }

.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.nav-menu-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-menu-panel a:hover { background: var(--pink-soft); color: var(--pink-deep); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--pink);
  color: #ffffff;
  box-shadow: 0 12px 26px var(--pink-glow);
}

.btn-primary:hover { background: var(--pink-deep); color: #ffffff; }

.btn-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover { border-color: var(--pink); color: var(--pink-deep); }

.btn-small { min-height: 42px; padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 92px) 0 clamp(64px, 8vw, 104px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -160px;
  top: -180px;
  background: radial-gradient(circle, var(--pink-glow), transparent 68%);
}

.hero::after {
  width: 420px;
  height: 420px;
  left: -190px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(169, 132, 199, 0.16), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
}

.hero h1 { max-width: 11ch; }

.hero h1 em {
  color: var(--pink);
  font-style: normal;
}

.hero .lead { margin-top: 24px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

.hero-meta svg { width: 16px; height: 16px; color: var(--pink); }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 5%;
  border-radius: 44% 56% 50% 50% / 50% 44% 56% 50%;
  background: linear-gradient(145deg, #f9c7df, #ecd9ff 55%, #ffe0ee);
  opacity: 0.85;
}

@media (prefers-color-scheme: dark) {
  .hero-visual::before {
    background: linear-gradient(145deg, #4a1e33, #2f2042 55%, #4c2438);
    opacity: 0.9;
  }
}

.phone {
  position: relative;
  overflow: hidden;
  width: min(100%, 300px);
  border: 9px solid #1c1319;
  border-radius: 44px;
  background: #1c1319;
  box-shadow: 0 32px 70px rgba(35, 10, 24, 0.3), 0 4px 12px rgba(35, 10, 24, 0.18);
}

.phone img { width: 100%; aspect-ratio: 414 / 900; object-fit: cover; }

.hero .phone { transform: rotate(2.4deg); }

.phone-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--border-strong) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 91%, transparent);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.phone-note svg { width: 15px; height: 15px; color: var(--pink); }

.phone-note.one { top: 13%; left: -6%; }
.phone-note.two { top: 51%; right: -8%; }
.phone-note.three { bottom: 10%; left: -3%; }

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(42px, 6vw, 68px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
}

.hero-strip div {
  padding: 20px 22px;
  background: var(--surface);
}

.hero-strip strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.hero-strip span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.83rem;
}

/* ---------- Feature cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.feature-card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--pink-soft);
  color: var(--pink-deep);
}

.feature-card .icon svg { width: 23px; height: 23px; }

.feature-card h3 { margin-bottom: 8px; }

.feature-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Showcase ---------- */

.showcase {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--plum);
  color: #f8eef3;
}

.showcase::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -220px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 106, 174, 0.28), transparent 68%);
}

.showcase .container { position: relative; z-index: 1; }

.showcase .eyebrow { color: #f7a8ce; }
.showcase h2 { color: #ffffff; }
.showcase .lead { color: #d8c3ce; }

.showcase-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(16px, 3vw, 34px);
  margin-top: 46px;
}

.showcase-phones .phone { width: min(100%, 260px); margin-inline: auto; }

.showcase-phones figure:nth-child(2) .phone { width: min(100%, 300px); transform: translateY(-18px); }

.showcase-phones figcaption {
  margin-top: 16px;
  color: #d8c3ce;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 38px;
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-card.featured {
  border-color: var(--pink);
  background: linear-gradient(160deg, var(--surface), var(--pink-soft));
  box-shadow: 0 20px 44px var(--pink-glow);
}

.price-badge {
  align-self: start;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--pink);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card h3 { font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.price {
  margin: 18px 0 4px;
  font-size: 2.5rem;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.price span { font-size: 1rem; font-weight: 650; color: var(--muted); letter-spacing: 0; }

.credits { color: var(--pink-deep); font-weight: 750; }

.price-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.price-card li {
  display: flex;
  gap: 9px;
  padding: 7px 0;
}

.price-card li::before {
  content: "✓";
  color: var(--pink);
  font-weight: 850;
}

.price-note {
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq { max-width: 840px; margin-inline: auto; }

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 720;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 1.4rem;
  font-weight: 500;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  max-width: 68ch;
  padding: 0 40px 24px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Coming soon ---------- */

.soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--pink-soft), var(--surface) 62%);
}

.soon .icon {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 19px;
  box-shadow: var(--shadow-soft);
}

.soon-copy { flex: 1 1 auto; }
.soon h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.soon p { margin-top: 8px; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(56px, 8vw, 90px);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr));
  gap: 34px;
  padding: 52px 0 38px;
}

.footer-brand p {
  max-width: 26rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover { color: var(--pink-deep); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-bottom p { max-width: 44rem; }

/* ---------- Legal pages ---------- */

.legal-hero {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 74px) 0 18px;
}

.legal-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }

.legal-meta { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

.legal {
  max-width: 820px;
  margin-inline: auto;
  padding: 10px 0 clamp(60px, 9vw, 100px);
}

.legal h2 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.legal h3 { margin-top: 26px; }

.legal p, .legal li { color: var(--ink-soft); font-size: 0.98rem; }

.legal p { margin: 12px 0; }

.legal ul { margin: 12px 0; padding-left: 22px; }

.legal li { margin: 7px 0; }

.legal strong { color: var(--ink); }

.legal .callout {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--pink-soft);
  color: var(--ink);
  font-size: 0.92rem;
}

.legal a { font-weight: 600; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover { color: var(--pink-deep); }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 10px;
}

.support-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.support-card h3 { margin-bottom: 8px; }

.support-card p, .support-card li { color: var(--ink-soft); font-size: 0.92rem; }

.support-card ul { margin: 10px 0 0; padding-left: 20px; }

.support-card li { margin: 5px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }

  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero h1 { max-width: 12ch; }
  .hero-visual { min-height: 0; padding: 22px 0 8px; }
  .hero-visual::before { inset: 2% 14%; }
  .phone-note.one { top: 8%; left: 0; }
  .phone-note.two { top: 52%; right: 0; }
  .phone-note.three { bottom: 6%; left: 2%; }

  .feature-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .showcase-phones { gap: 14px; }
  .showcase-phones .phone { width: 100%; }
  .showcase-phones figure:nth-child(2) .phone { transform: none; }

  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 64px; }
  .header-cta { display: none; }

  .hero { padding-top: 38px; }
  .hero-visual { padding-inline: 6px; }
  .phone { width: min(100%, 270px); border-width: 7px; border-radius: 36px; }
  .phone-note { font-size: 0.7rem; padding: 8px 11px; }
  .phone-note.one { left: -2%; }
  .phone-note.two { right: -2%; }
  .phone-note.three { display: none; }

  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip div { padding: 16px 18px; }

  .section-heading { display: block; }
  .section-heading .lead { margin-top: 16px; }

  .feature-grid, .pricing-grid, .support-grid { grid-template-columns: 1fr; }
  .showcase { border-radius: 26px; }
  .showcase-phones { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; }
  .showcase-phones figcaption { margin-top: 8px; }
  .showcase-phones figure + figure { margin-top: 16px; }

  .soon { display: block; }
  .soon .icon { margin-bottom: 18px; }
  .soon .btn { margin-top: 20px; width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
