/* ============================================================
   SuperCurate — landing page styles
   Aesthetic: airy, refined minimalism with photographic warmth.
   Brand palette pulled from the app icon (blue / orange / green).
   ============================================================ */

:root {
  --blue:   #2f5fb0;
  --blue-2: #4a86e8;
  --orange: #f5a623;
  --green:  #34a853;

  --ink:    #14181f;
  --ink-soft:#4a525e;
  --ink-mute:#7d8794;

  --bg:     #f6f5f2;   /* warm off-white */
  --bg-2:   #ffffff;
  --bg-card:#ffffffcc;
  --line:   #e6e3dc;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(20,24,31,.05), 0 8px 24px -12px rgba(20,24,31,.18);
  --shadow-lg: 0 40px 90px -40px rgba(20,24,31,.45), 0 8px 24px -16px rgba(20,24,31,.25);

  --display: "Inter", ui-sans-serif, system-ui, sans-serif;
  --hero: "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--blue); font-weight: 600; }

/* ---------- Atmosphere: grain + color blooms ---------- */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bloom {
  position: fixed; z-index: 0; border-radius: 50%; filter: blur(90px);
  opacity: .5; pointer-events: none; will-change: transform;
}
.bloom--blue   { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle, #9bc0ff, transparent 70%); }
.bloom--orange { width: 420px; height: 420px; top: 38%; left: -180px; background: radial-gradient(circle, #ffd79b, transparent 70%); opacity: .45; }
.bloom--green  { width: 460px; height: 460px; bottom: -200px; right: -80px; background: radial-gradient(circle, #a7e6bc, transparent 70%); opacity: .4; }

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5ch;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.25rem; border-radius: 999px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--pill { background: var(--ink); color: #fff; }
.btn--pill:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(20,24,31,.6); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); background: var(--bg-2); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--ink); }

/* Official App Store badge (Apple-supplied SVG) */
.asb-link {
  display: inline-block; line-height: 0; border-radius: 9px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.asb-link:hover { transform: translateY(-2px); }
.asb-link img { height: 48px; width: auto; display: block; border-radius: 9px; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand__icon { border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--blue); transition: width .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 1.25rem;
}
.eyebrow--center { justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #34a85322; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 5rem;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.hero > * { min-width: 0; }
.hero__copy > * { animation: rise .8s cubic-bezier(.16,1,.3,1) both; }
.hero__copy .eyebrow { animation-delay: .05s; }
.hero__title { animation-delay: .12s; }
.hero__sub { animation-delay: .2s; }
.hero__actions { animation-delay: .28s; }
.hero__proof { animation-delay: .36s; }

.hero__title {
  font-family: var(--hero); font-weight: 800; font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.035em; margin-bottom: 1.4rem;
}
.rotator { white-space: nowrap; }
.rotator__static { }
.rotator__hl { color: var(--ink); }
.hero__sub {
  font-size: 1.18rem; color: var(--ink-soft); max-width: 33ch; margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2.4rem; }
.hero__proof {
  display: flex; gap: 2.2rem; list-style: none;
}
.hero__proof li { font-size: .9rem; color: var(--ink-mute); }
.hero__proof strong { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--ink); font-weight: 700; }

/* ---------- Phone mockup ---------- */
.hero__device { position: relative; display: flex; justify-content: center; animation: rise 1s cubic-bezier(.16,1,.3,1) .25s both; }
.phone {
  width: 290px; aspect-ratio: 9/19; background: #0c0e12;
  border-radius: 44px; padding: 12px; box-shadow: var(--shadow-lg);
  position: relative;
}
.phone__island {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 26px; background: #000; border-radius: 999px; z-index: 3;
  box-shadow: inset 0 0 1px rgba(255,255,255,.12);
}
.phone__screen {
  width: 100%; height: 100%; background: linear-gradient(180deg, #fbfbfa, #f1efe9);
  border-radius: 34px; overflow: hidden; padding: 44px 14px 16px; display: flex; flex-direction: column;
}
.app-bar { padding: 0 4px 10px; }
.app-bar__title { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.searchbar {
  display: flex; align-items: center; gap: .5rem; padding: 0 .75rem;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); color: var(--ink-mute);
  font-size: .85rem; margin-bottom: 12px; height: 40px; flex: 0 0 auto;
  white-space: nowrap; overflow: hidden;
}
.searchbar svg { flex: 0 0 auto; }
.searchbar__text { color: var(--ink); font-weight: 500; white-space: nowrap; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--blue); animation: blink 1s step-end infinite; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; flex: 1; align-content: start; }
.tile {
  aspect-ratio: 3 / 4; border-radius: 9px; overflow: hidden; position: relative;
  background: #e6e3dc center / cover no-repeat;
  opacity: 0; transform: scale(.92);
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1);
}
.tile.in { opacity: 1; transform: none; }
.tile::after { content:""; position:absolute; inset:0; background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 60%); }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem; }
.section--alt {
  max-width: none; background:
    radial-gradient(900px 400px at 80% 0%, #e9f0ff66, transparent 70%),
    radial-gradient(700px 360px at 10% 100%, #eafff066, transparent 70%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section--alt .steps, .section--alt .section__head { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 42rem; margin: 0 auto 3.2rem; }
.section__head h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.025em; line-height: 1.1;
}
.section__lead { color: var(--ink-soft); margin: 1rem auto 0; font-size: 1.1rem; max-width: 38ch; }

/* ---------- Feature cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.card {
  background: var(--bg-card); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d6d2c8; }
.card--wide { grid-column: span 2; }
.card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.i-blue   { background: #2f5fb014; color: var(--blue); }
.i-orange { background: #f5a62318; color: #d9890b; }
.i-green  { background: #34a85316; color: #2e9249; }
.card h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none;
  counter-reset: step;
}
.step {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; position: relative; overflow: hidden;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 1.1rem;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: #fff;
  background: var(--blue);
}
.step:nth-child(2) .step__num { background: var(--orange); }
.step:nth-child(3) .step__num { background: var(--green); }
.step h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: var(--ink-soft); }

/* ---------- Pricing ---------- */
#pricing .section__head { margin-bottom: 1.6rem; }
#pricing .eyebrow { margin-bottom: 0; }
.plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem; max-width: 760px; margin: 0 auto; align-items: stretch;
}
.plan {
  display: flex; flex-direction: column; position: relative;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d6d2c8; }
.plan--featured {
  border-color: var(--blue); box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
}
.plan__name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink-mute); letter-spacing: .02em; text-transform: uppercase; }
.plan__price { display: flex; align-items: baseline; gap: .5ch; margin: .6rem 0 .2rem; }
.plan__amount { font-family: var(--display); font-weight: 800; font-size: 3rem; letter-spacing: -.03em; line-height: 1; }
.plan__per { color: var(--ink-mute); font-size: .95rem; font-weight: 500; }
.plan__tag { color: var(--ink-soft); margin-bottom: 1.4rem; }
.plan__feats { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.8rem; }
.plan__feats li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); }
.plan__feats li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 18px; height: 18px;
  border-radius: 50%; background: #34a85316 center / 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e9249' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.plan__feats strong { color: var(--ink); font-weight: 600; }
.plan__cta { margin-top: auto; justify-content: center; }

/* ---------- Privacy band ---------- */
.privacy {
  background: var(--ink); color: #fff; padding: 5.5rem 1.5rem;
  position: relative; overflow: hidden;
}
.privacy::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -10%, #3a6fc055, transparent 70%);
}
.privacy__inner { max-width: 50ch; margin: 0 auto; text-align: center; position: relative; }
.privacy__lock {
  width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 1.5rem;
  display: grid; place-items: center; background: #ffffff14; color: var(--green);
}
.privacy__lock svg { width: 30px; height: 30px; }
.privacy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.025em; line-height: 1.08; }
.privacy p { color: #c9ccd2; margin: 1.2rem 0 2.2rem; font-size: 1.1rem; }
.privacy__link { margin: 1.4rem 0 0 !important; font-size: .95rem !important; }
.privacy__link a { color: #fff; font-weight: 600; opacity: .85; transition: opacity .2s ease; }
.privacy__link a:hover { opacity: 1; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
}
.footer__brand { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.footer__brand img { border-radius: 8px; }
.footer__brand strong { font-family: var(--display); font-size: 1.05rem; display: block; }
.footer__brand span { font-size: .85rem; color: var(--ink-mute); }
.footer__links { display: flex; gap: 1.4rem; }
.footer__links a { font-size: .9rem; color: var(--ink-soft); }
.footer__links a:hover { color: var(--ink); }
.footer__meta { width: 100%; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-mute); }

/* ---------- Legal / prose pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.legal__head { margin-bottom: 2.5rem; }
.legal__head h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -.02em; line-height: 1.05;
}
.legal__updated { margin-top: .6rem; font-size: .9rem; color: var(--ink-mute); }
.legal h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -.01em; margin: 2.4rem 0 .6rem;
}
.legal p { color: var(--ink-soft); margin-bottom: 1rem; }
.legal ul { color: var(--ink-soft); margin: 0 0 1rem 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--blue); font-weight: 600; }
.legal a:hover { text-decoration: underline; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop  { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .hero__sub { max-width: 46ch; }
  .hero__device { order: -1; }
  .nav__links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; }
  .rotator { white-space: normal; }
  .hero__proof { gap: 1.4rem; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer__brand { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .caret { animation: blink 1s step-end infinite !important; }
}
