/* getautoreply.com — matches the iOS app's brand (Shared/Brand.swift) */
:root {
  --bg: #070a14;
  --bg-2: #0b1230;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #eef2ff;
  --muted: #a3afcf;
  --blue: #2e5bff;
  --cyan: #1ec8e8;
  --mint: #5ee2a0;
  --violet: #7b5cff;
  --amber: #ffb020;
  --coral: #ff6b5e;
  --grad: linear-gradient(100deg, #2e5bff 0%, #2d8bff 45%, #1ec8e8 100%);
  --grad-aurora: linear-gradient(120deg, #2e5bff, #1ec8e8 55%, #5ee2a0);
  --grad-pro: linear-gradient(120deg, #ffb020, #ff8a3d 55%, #ff6b5e);
  --radius: 24px;
  --max: 1160px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.center { text-align: center; }
.narrow { max-width: 620px; margin-inline: auto; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); margin-top: 16px; }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 18px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
p.eyebrow.center { display: block; }
.ic { width: 22px; height: 22px; flex: none; }
.ic.big { width: 30px; height: 30px; }

/* Aurora background */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 60vw; height: 60vw; background: var(--blue); top: -25vw; inset-inline-start: -15vw; }
.aurora i:nth-child(2) { width: 45vw; height: 45vw; background: var(--cyan); top: 10vh; inset-inline-end: -15vw; opacity: 0.35; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 40vw; height: 40vw; background: var(--mint); bottom: -20vw; inset-inline-start: 10vw; opacity: 0.22; animation-delay: -12s; }
.aurora i:nth-child(4) { width: 30vw; height: 30vw; background: var(--violet); bottom: 10vh; inset-inline-end: 5vw; opacity: 0.25; }
@keyframes drift { to { transform: translate3d(4vw, 3vh, 0) scale(1.08); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 16px; font-weight: 800;
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(46, 91, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(46, 91, 255, 0.85); }
.btn.small { padding: 10px 16px; border-radius: 12px; font-size: 0.92rem; }
.btn.ghost { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--stroke); }
.badge img { height: 54px; width: auto; transition: transform 0.2s ease; }
.badge:hover img { transform: translateY(-2px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 14px max(20px, calc((100% - var(--max)) / 2 + 20px));
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(7, 10, 20, 0.55);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand img { border-radius: 9px; box-shadow: 0 6px 18px -6px rgba(30, 200, 232, 0.6); }
.links { display: flex; gap: 22px; margin-inline-start: auto; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--stroke);
  color: var(--muted); font-weight: 600; font-size: 0.9rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary .ic { width: 18px; height: 18px; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; max-height: 70vh; overflow: auto;
  display: grid; padding: 8px; border-radius: 16px;
  background: rgba(14, 20, 40, 0.96); box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--stroke);
}
.lang-menu a { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--surface-2); color: var(--text); }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 72px 20px 40px; overflow-x: clip;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--stroke); color: var(--text); font-weight: 700; font-size: 0.88rem;
  margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.hero h1 {
  background: linear-gradient(180deg, #fff 30%, #c9d6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.hero-media { position: relative; height: 620px; }
.phone {
  position: absolute; width: 270px; aspect-ratio: 600 / 1304;
  border-radius: 42px; padding: 9px;
  background: linear-gradient(145deg, #9aa3b5, #3a3f4b 35%, #8b93a6 70%, #2b2f38);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #050608; }
.hero-media .center { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; width: 300px; }
.hero-media .side { top: 70px; opacity: 0.9; z-index: 1; width: 230px; }
.hero-media .left { left: 50%; transform: translateX(calc(-50% - 140px)) rotate(-7deg); }
.hero-media .right { left: 50%; transform: translateX(calc(-50% + 140px)) rotate(7deg); }
.hero-media::after {
  content: ""; position: absolute; inset: 20% 10%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 200, 232, 0.45), transparent); filter: blur(30px);
}

/* Sections */
section { position: relative; }
.how, .grid-sec, .pricing, .faq { max-width: var(--max); margin: 0 auto; padding: 90px 20px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.step, .tile, .plan, .qa {
  background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--stroke);
}
.step { padding: 28px; position: relative; }
.step .ic { color: var(--cyan); margin-bottom: 16px; }
.step p, .tile p { color: var(--muted); margin-top: 8px; }
.step .num {
  position: absolute; top: 22px; inset-inline-end: 24px; font-weight: 900; font-size: 2.4rem; line-height: 1;
  background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.55;
}

.feature {
  max-width: var(--max); margin: 0 auto; padding: 70px 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.feature.reverse .feature-copy { order: 2; }
.feature-media { position: relative; display: flex; justify-content: center; min-height: 600px; }
.feature-media .phone { position: relative; width: 290px; }
.feature-media::before {
  content: ""; position: absolute; width: 70%; height: 70%; top: 15%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 91, 255, 0.5), transparent); filter: blur(40px);
}
.checks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.tick { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--grad-aurora); color: #fff; stroke-width: 3; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.tile { padding: 24px; }
.tile-ic {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: 0 10px 24px -12px rgba(46, 91, 255, 0.9);
}

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; margin-top: 44px; }
.plan { padding: 32px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.6rem; }
.plan .tag { color: var(--muted); margin-top: 4px; }
.plan .checks { flex: 1; margin-bottom: 28px; }
.plan.pro { box-shadow: inset 0 0 0 2px rgba(255, 176, 32, 0.7), 0 30px 80px -40px rgba(255, 138, 61, 0.7); }
.plan.pro .tick { background: var(--grad-pro); }
.plan.pro .btn { background: var(--grad-pro); box-shadow: 0 10px 30px -10px rgba(255, 138, 61, 0.8); }
.ribbon {
  position: absolute; top: -13px; inset-inline-end: 24px; padding: 5px 12px; border-radius: 999px;
  background: var(--grad-pro); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase;
}

.qas { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.qa { padding: 0 24px; }
.qa summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--cyan); transition: transform 0.2s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--muted); padding-bottom: 20px; }

.final { max-width: 760px; margin: 0 auto; padding: 100px 20px 120px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.final img:first-child { border-radius: 22px; box-shadow: 0 20px 50px -15px rgba(30, 200, 232, 0.7); margin-bottom: 10px; }
.final .lead { margin: 0 0 14px; }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 40px 20px 60px; border-top: 1px solid var(--stroke);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; color: var(--muted); font-size: 0.92rem;
}
.foot-brand { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.foot-brand img { border-radius: 7px; }
.foot-brand span { color: var(--text); font-weight: 800; }
.foot-brand p { grid-column: 1 / -1; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.foot-links a:hover, .foot-langs a:hover { color: var(--text); }
.foot-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; }
.foot-langs a[aria-current] { color: var(--text); font-weight: 700; }
.copy { grid-column: 1 / -1; font-size: 0.82rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora i { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .links { display: none; }
  .nav-end { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .cta-row { justify-content: center; }
  .hero-media { height: 560px; margin-top: 10px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 30px; text-align: center; padding: 50px 20px; }
  .feature.reverse .feature-copy { order: 0; }
  .feature .checks { width: fit-content; margin-inline: auto; text-align: start; }
  .feature-media { min-height: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: minmax(0, 460px); }
  .foot { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .hero-media { height: 470px; }
  .hero-media .center { width: 230px; }
  .phone { width: 200px; border-radius: 32px; padding: 7px; }
  .phone img { border-radius: 26px; }
  .hero-media .side { top: 60px; width: 170px; }
  .hero-media .left { transform: translateX(calc(-50% - 100px)) rotate(-7deg); }
  .hero-media .right { transform: translateX(calc(-50% + 100px)) rotate(7deg); }
  [dir="rtl"] .hero-media .left { transform: translateX(calc(-50% + 100px)) rotate(7deg); }
  [dir="rtl"] .hero-media .right { transform: translateX(calc(-50% - 100px)) rotate(-7deg); }
  .feature-media .phone { width: 250px; }
  .grid { grid-template-columns: 1fr; }
  .lang summary span { display: none; }
  .how, .grid-sec, .pricing, .faq { padding: 64px 20px; }
}
[dir="rtl"] .hero-media .left { transform: translateX(calc(-50% + 140px)) rotate(7deg); }
[dir="rtl"] .hero-media .right { transform: translateX(calc(-50% - 140px)) rotate(-7deg); }
