/* Avora website — night palette from the app. */
:root {
  --bg: #090C16; --bg2: #0E1020; --raised: #13122A; --line: #26223F;
  --fg: #ECE8F6; --muted: #A49FB8; --dim: #7D7896;
  --gold: #F2D9A6; --violet: #CBB3FF; --violet-2: #8F7BEA;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(9, 12, 22, .72); border-bottom: 1px solid rgba(38, 34, 63, .6); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 600 26px/1 var(--display); letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); background: rgba(203, 179, 255, .08); }
@media (max-width: 560px) { .site-nav .opt { display: none; } .site-nav a { padding: 8px 9px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--fg); color: #0B0D18; }
.btn-primary:hover { background: #fff; color: #0B0D18; }
.btn-ghost { color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet); color: var(--fg); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { display: block; font-weight: 400; font-size: 11px; opacity: .7; margin-bottom: 3px; letter-spacing: .02em; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 380px at 72% 38%, rgba(143, 123, 234, .30), transparent 70%),
    radial-gradient(520px 320px at 62% 70%, rgba(242, 217, 166, .14), transparent 70%),
    radial-gradient(700px 400px at 10% 0%, rgba(60, 50, 130, .35), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font: 600 clamp(44px, 7vw, 76px)/1.02 var(--display); margin: 0 0 22px; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--violet); }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 19px); max-width: 34em; margin: 0 0 32px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { color: var(--dim); font-size: 13px; margin-top: 16px; }
.hero-art { position: relative; display: flex; justify-content: center; }
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
}

/* Phone frame */
.phone {
  width: min(300px, 74vw); aspect-ratio: 1206 / 2622; border-radius: 46px; padding: 9px;
  background: linear-gradient(160deg, #2C2846, #12101F 40%, #2A2540);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 120px -30px rgba(143, 123, 234, .45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone.sm { width: min(260px, 68vw); }
.hero-art .phone.back { position: absolute; width: min(250px, 60vw); transform: translate(46%, 8%) rotate(7deg); opacity: .55; filter: saturate(.8); z-index: -1; }
@media (max-width: 860px) { .hero-art .phone.back { display: none; } }

/* Verse band */
.verse { padding: 56px 0; text-align: center; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(19, 18, 42, .0), rgba(19, 18, 42, .7), rgba(19, 18, 42, .0)); }
.verse blockquote { margin: 0 auto; max-width: 30em; font: italic 500 clamp(24px, 3.4vw, 34px)/1.35 var(--display); text-wrap: balance; }
.verse cite { display: block; margin-top: 14px; font: 600 12px var(--body); letter-spacing: .18em; color: var(--gold); font-style: normal; }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
h2 { font: 600 clamp(34px, 4.6vw, 52px)/1.08 var(--display); margin: 0 0 14px; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-art { order: -1; }
.feature-art { display: flex; justify-content: center; }
.feature h3 { font: 600 clamp(30px, 3.6vw, 40px)/1.12 var(--display); margin: 0 0 14px; }
.feature p { color: var(--muted); font-size: 17px; margin: 0 0 14px; max-width: 30em; }
.tag { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; text-align: center; padding: 48px 0; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .feature p { margin-inline: auto; }
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; }
.card h4 { font: 600 17px/1.3 var(--body); margin: 14px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(203, 179, 255, .1); color: var(--violet); }
.icon svg { width: 20px; height: 20px; }

/* Privacy promise */
.promise { text-align: center; }
.promise .pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 24px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; background: rgba(19, 18, 42, .6); }
.pill span { color: var(--gold); margin-right: 6px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--body); color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }
.contact { text-align: center; margin-top: 48px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--dim); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--fg); }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 0 96px; }
.doc h1 { font: 600 clamp(38px, 6vw, 54px)/1.08 var(--display); margin: 0 0 10px; text-wrap: balance; }
.doc h2 { font: 600 27px/1.25 var(--display); color: var(--gold); margin: 44px 0 10px; }
.doc h3 { font-size: 16px; margin: 24px 0 6px; }
.doc p, .doc li { color: #DCD7EA; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.summary { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 28px 0; }
.summary h2 { margin-top: 4px; font-size: 22px; }
.summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .04em; background: rgba(19, 18, 42, .7); }
@media (max-width: 860px) { .section-head { text-align: center; margin-inline: auto; } }

/* Hero showcase: lock screen with widgets and a notification, like the App Store shot */
.showcase { position: relative; width: min(310px, 70vw); container-type: inline-size; }
.showcase .phone { width: 100%; }
.lock-widgets { position: absolute; top: 25.5%; left: -10%; right: -10%; display: flex; gap: 4%; animation: rise .9s .25s both cubic-bezier(.2, .7, .2, 1); }
.lw {
  flex: 1; text-align: center; color: #fff; padding: 4.6cqw 3cqw 3.6cqw; border-radius: 6cqw;
  background: rgba(42, 38, 46, .62); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.lw b { display: block; font: 600 4.1cqw/1.3 var(--body); }
.lw span { display: block; margin-top: 2.2cqw; font: 600 2.7cqw/1 var(--body); letter-spacing: .08em; opacity: .75; }
.notif {
  position: absolute; left: -8%; right: -8%; bottom: 8%; display: flex; align-items: center; gap: 3.4cqw;
  padding: 3.6cqw 4.4cqw; border-radius: 6cqw; color: #fff; text-align: left;
  background: rgba(46, 42, 46, .7); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 22px 50px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: rise .9s .55s both cubic-bezier(.2, .7, .2, 1);
}
.notif img { width: 10.5cqw; height: 10.5cqw; border-radius: 2.6cqw; flex: none; }
.notif div { flex: 1; min-width: 0; }
.notif b { display: block; font: 600 3.7cqw/1.3 var(--body); }
.notif span { display: block; font: 400 3.5cqw/1.35 var(--body); opacity: .85; }
.notif i { align-self: flex-start; font: 400 3cqw/1.6 var(--body); font-style: normal; opacity: .6; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lock-widgets, .notif { animation: none; } }

/* Home Screen widget board */
.widget-board {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(420px, 100%); padding: 22px; border-radius: 34px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(143, 123, 234, .35), transparent 60%), radial-gradient(100% 80% at 100% 100%, rgba(242, 217, 166, .18), transparent 60%), var(--raised);
  border: 1px solid var(--line); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .7);
}
.widget-board img { width: 100%; height: auto; border-radius: 9%; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.widget-board img.wide { grid-column: span 2; border-radius: 4.3% / 9.2%; }
@media (max-width: 860px) { .widget-board { margin-inline: auto; } }
