/* ==========================================================================
   Aurous Digital – stylesheet
   --------------------------------------------------------------------------
    1. Tokens (colours, fonts)       7. Courses carousel
    2. Base & utilities              8. About
    3. Buttons                       9. Features (tabs + panel)
    4. Navigation                   10. Steps
    5. Hero                         11. Join (app buttons + socials)
    6. Marquee & section heads      12. CTA, footer, motion preferences
   Breakpoints: 900 (hero) · 860 (layouts) · 820 (nav) · 700 · 640 · 560 · 480 · 400 · 360
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --wine: #A52036;
  --wine-d: #5E0F1F;
  --rose: #C73450;
  --gold: #B8862B;
  --bg: #FCF9F9;
  --bg2: #F5EAEC;
  --surface: #fff;
  --text: #2A1218;
  --muted: #6F5A60;
  --line: rgba(42, 18, 24, .13);
  --logo: #A52036;
  --glass: rgba(255, 255, 255, .72);
  --blob: .16;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #150B0E;
  --bg2: #1D1115;
  --surface: #231519;
  --text: #F6EBEE;
  --muted: #B79EA5;
  --line: rgba(255, 255, 255, .14);
  --logo: #E4506C;
  --glass: rgba(35, 21, 25, .68);
  --gold: #E9BE5C;
  --blob: .26;
  color-scheme: dark;
}

/* 2. Base & utilities ------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem) / 1.65 var(--body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.03em; }

.wrap { width: min(1120px, 100% - clamp(32px, 6vw, 64px)); margin-inline: auto; }
section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.band { background: var(--bg2); }

.section-title,
.section-head h2,
.about h2 { font-size: clamp(1.75rem, 3.4vw + .4rem, 2.8rem); font-weight: 800; line-height: 1.08; }
.section-title--narrow { max-width: 18ch; }

/* smooth light/dark switch (class is added briefly by main.js) */
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color .6s, color .6s, border-color .6s, fill .6s, box-shadow .6s !important;
}

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ambient background blobs */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient i {
  position: absolute; left: -12vmax; top: -10vmax; width: 46vmax; height: 46vmax;
  border-radius: 50%; filter: blur(90px); opacity: var(--blob); background: var(--wine);
  animation: drift 30s ease-in-out infinite alternate;
}
.ambient i:nth-child(2) { left: auto; right: -14vmax; top: 35vh; background: var(--gold); opacity: calc(var(--blob) * .7); animation-duration: 38s; }
.ambient i:nth-child(3) { left: 25vw; top: auto; bottom: -26vmax; background: var(--rose); opacity: calc(var(--blob) * .7); animation-duration: 44s; }
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(var(--line) 1px, transparent 1.2px) 0 0 / 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 75%);
}
@keyframes drift { to { transform: translate(12vw, 10vh) scale(1.15); } }

/* 3. Buttons --------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: 999px;
  font: 600 .95rem var(--body); cursor: pointer;
  transition: transform .25s var(--ease), background .25s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--wine); color: #fff; box-shadow: 0 10px 26px -10px rgba(165, 32, 54, .85); }
.btn--primary:hover { background: var(--rose); }
.btn--primary::after { /* shine sweep */
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn--primary:hover::after { left: 130%; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--bg2); }
.btn--white { background: #fff; color: var(--wine); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* 4. Navigation ------------------------------------------------------------ */
.nav {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  top: calc(14px + env(safe-area-inset-top, 0px));
  width: min(980px, 100% - 24px);
}
.nav-pill {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .4rem .45rem .4rem 1.1rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 14px 40px -18px rgba(60, 10, 20, .35);
  transition: padding .4s var(--ease);
}
.nav.is-scrolled .nav-pill { padding-block: .35rem; }

.logo svg, .footer-logo { display: block; width: auto; fill: var(--logo); }
.logo svg { height: clamp(22px, 3vw, 26px); }

.nav-links { display: flex; gap: 2rem; font-size: .95rem; font-weight: 500; }
.nav-links a { position: relative; opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: none; }

.nav-actions { display: flex; align-items: center; gap: .45rem; }
.nav-actions .btn { padding: .6rem 1.2rem; }

.theme-toggle, .menu-toggle {
  position: relative; overflow: hidden; flex: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--text); cursor: pointer;
}
.theme-toggle:hover, .menu-toggle:hover { background: var(--bg2); }
.theme-toggle svg { position: absolute; left: 10px; top: 10px; width: 22px; height: 22px; transition: transform .7s var(--ease), opacity .4s; }
.theme-toggle .moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .sun { transform: rotate(90deg) scale(.4); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .moon { transform: none; opacity: 1; }

.menu-toggle { display: none; }
.menu-toggle i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: .3s var(--ease); }
.menu-toggle i:first-child { top: 16px; }
.menu-toggle i:last-child { top: 24px; }
.nav.is-open .menu-toggle i:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .menu-toggle i:last-child { top: 20px; transform: rotate(-45deg); }

.drawer { display: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .drawer {
    display: grid; gap: .3rem; margin-top: 8px; padding: 1rem; border-radius: 28px;
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 20px 50px -20px rgba(60, 10, 20, .4);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: .35s var(--ease);
  }
  .nav.is-open .drawer { opacity: 1; transform: none; pointer-events: auto; }
  .drawer a { padding: .8rem 1rem; border-radius: 16px; font-weight: 500; }
  .drawer a:hover { background: var(--bg2); }
  .drawer .drawer-cta { background: var(--wine); color: #fff; }
}
@media (max-width: 560px) { .nav-actions .btn--primary { display: none; } }

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(clamp(128px, 16vw, 170px) + env(safe-area-inset-top, 0px)) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 85% 20%, rgba(165, 32, 54, .16), transparent 70%); }

.hero-grid {
  display: grid; align-items: center; gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "visual text";
}
.hero-text { grid-area: text; }
.hero-visual { grid-area: visual; }

.hero h1 { font-size: clamp(2.05rem, 4.6vw + .5rem, 3.9rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line i { display: block; font-style: normal; transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * .12s + .15s); }
.line--accent i { color: var(--logo); }
.fade { opacity: 0; transform: translateY(18px); animation: rise-fade 1s var(--ease) forwards; animation-delay: calc(var(--i) * .1s + .15s); }
@keyframes rise { to { transform: none; } }
@keyframes rise-fade { to { opacity: 1; transform: none; } }

.hero-sub { max-width: 32rem; margin: 1.25rem 0 1.75rem; color: var(--muted); font-size: clamp(1rem, .9rem + .4vw, 1.12rem); }

/* portrait (height-aware so the head never reaches the navbar) */
.hero-visual {
  position: relative; width: 100%; min-width: min(100%, 280px);
  max-width: min(clamp(300px, 44vw, 520px), calc((100vh - 230px) * .93));
  margin: clamp(.5rem, 2vw, 1.5rem) auto 1.6rem 0;
}
.arch { position: relative; aspect-ratio: 1 / 1.08; }
.arch-bg {
  position: absolute; inset: 20% 2% 0; overflow: hidden; border-radius: 999px 999px 40px 40px;
  background: linear-gradient(165deg, var(--wine), var(--wine-d)); box-shadow: 0 40px 70px -40px rgba(94, 15, 31, .6);
}
.arch-bg::before { content: ""; position: absolute; right: -30%; top: -20%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 65%); }
.arch-glyph { position: absolute; left: -30%; bottom: -6%; width: 150%; filter: brightness(0) invert(1); opacity: .09; animation: drift-glyph 18s ease-in-out infinite alternate; }
@keyframes drift-glyph { to { transform: translate(4%, -4%) rotate(2deg); } }
.portrait { position: absolute; left: -6%; bottom: 0; width: 112%; max-width: none; height: auto; filter: drop-shadow(0 28px 28px rgba(40, 5, 15, .4)); animation: bob 8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.name-tag {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  padding: .55rem 1.3rem; border-radius: 16px; text-align: center; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -24px rgba(60, 10, 20, .55);
}
.name-tag b { display: block; font: 800 1.15rem var(--display); letter-spacing: -.01em; }
.name-tag span { font-size: .8rem; color: var(--muted); }

@media (max-height: 620px) and (min-width: 901px) {
  .hero-visual { max-width: min(clamp(300px, 36vw, 420px), calc((100vh - 200px) * .93)); }
}
@media (max-width: 900px) {
  .hero { padding-top: calc(112px + env(safe-area-inset-top, 0px)); }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "text" "visual"; gap: 2.75rem; }
  .hero-sub { max-width: 36rem; }
  .hero-visual { max-width: min(440px, 92vw); margin: .5rem auto 1.6rem; }
}
@media (max-width: 560px) {
  .hero h1 { letter-spacing: -.03em; }
  .btn-row .btn { flex: 1 1 140px; }
}
@media (max-width: 480px) {
  .hero { padding-top: calc(104px + env(safe-area-inset-top, 0px)); }
  .hero-visual { max-width: min(380px, 94vw); }
  .portrait { left: -4%; width: 108%; }
}

/* 6. Marquee & section heads ----------------------------------------------- */
.marquee { overflow: hidden; padding: .8rem 0; background: var(--bg2); border-block: 1px solid var(--line); }
.marquee div { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover div { animation-play-state: paused; }
.marquee span {
  display: flex; align-items: center; gap: 2rem; padding-right: 2rem; opacity: .85;
  font: 700 clamp(1rem, 2vw, 1.3rem) var(--display); letter-spacing: -.02em;
}
.marquee span::after { content: ""; width: 9px; height: 9px; background: var(--wine); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head h2 { max-width: 15ch; }
.section-head p { max-width: 26rem; color: var(--muted); }
.head-side { display: grid; gap: 1.2rem; justify-items: start; }

/* 7. Courses carousel ------------------------------------------------------ */
.slider-controls { display: flex; gap: .5rem; }
.slider-controls button {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; transition: .25s;
}
.slider-controls button:hover { background: var(--wine); color: #fff; border-color: var(--wine); }

.track {
  display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; cursor: grab;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px max(16px, calc((100vw - 1120px) / 2)) 1.5rem;
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }

.card {
  position: relative; overflow: hidden; flex: 0 0 clamp(236px, 72vw, 296px); scroll-snap-align: start;
  padding: .6rem .6rem 1.2rem; border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
  user-select: none; transition: border-color .3s;
}
.card:hover { border-color: rgba(165, 32, 54, .35); }
.card::after { /* cursor-following glow, position set in main.js */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(165, 32, 54, .14), transparent 70%);
}
.card:hover::after { opacity: 1; }
.thumb {
  position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9;
  border: 1.5px solid var(--line); border-radius: 16px; color: var(--muted); font-size: .85rem;
  background: linear-gradient(135deg, rgba(165, 32, 54, .08), rgba(184, 134, 43, .08));
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.badge { position: absolute; z-index: 2; left: 10px; top: 10px; padding: .25rem .7rem; border-radius: 999px; background: #2F6FE4; color: #fff; font: 600 .75rem var(--body); font-style: normal; }
.card h3 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em; margin: 1rem .55rem .3rem; font-size: 1.05rem; line-height: 1.2;
}
.card .meta { margin: 0 .55rem .5rem; color: var(--muted); font-size: .85rem; }
.card .price { display: flex; align-items: baseline; gap: .6rem; margin: 0 .55rem .8rem; font: 700 1.2rem var(--display); }
.card .price s { font: 400 .95rem var(--body); color: var(--muted); }
.card > a { display: inline-flex; gap: .4rem; margin-inline: .55rem; font-size: .95rem; font-weight: 600; color: var(--logo); transition: gap .25s var(--ease); }
.card > a:hover { gap: .8rem; }

.slider-progress { height: 3px; margin-top: .5rem; overflow: hidden; border-radius: 3px; background: var(--line); }
.slider-progress i { display: block; width: 30%; height: 100%; border-radius: 3px; background: var(--wine); }

@media (max-width: 700px) {
  .section-head { align-items: start; }
  .section-head h2 { max-width: none; }
  .slider-controls { display: none; }
}

/* 8. About ----------------------------------------------------------------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4.5rem); }
.about blockquote { margin-top: 1.5rem; padding-left: 1.3rem; border-left: 3px solid var(--wine); font: 700 clamp(1.1rem, 1.5vw + .6rem, 1.35rem) / 1.3 var(--display); letter-spacing: -.02em; }
.about p { margin-bottom: 1.2rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.chips span { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; font-weight: 500; }

/* 9. Features (tabs + panel) ----------------------------------------------- */
.features {
  display: grid; align-items: stretch; gap: clamp(1rem, 3vw, 2rem);
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.feature-tabs { display: grid; align-content: start; gap: .25rem; }
.feature-tab {
  display: flex; align-items: center; justify-content: flex-start; gap: 1rem;
  padding: .8rem 1rem; border: 1px solid transparent; border-radius: 16px; background: none;
  color: var(--text); font: 700 1rem var(--display); text-align: left; cursor: pointer;
  transition: background .3s, border-color .3s, box-shadow .35s;
}
.feature-tab svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--logo); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.feature-tab:hover { background: var(--surface); }
.feature-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: 0 14px 30px -20px rgba(60, 10, 20, .5); }
.feature-tab[aria-selected="true"]::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--wine); }

.feature-panel {
  position: relative; overflow: hidden; min-height: clamp(260px, 30vw, 320px); border-radius: 26px; color: #fff;
  background: linear-gradient(155deg, var(--wine), var(--wine-d)); box-shadow: 0 40px 80px -44px rgba(94, 15, 31, .8);
}
.feature-panel::before { content: ""; position: absolute; right: -20%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 65%); }
.feature-pane {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.4rem, 3.5vw, 2.25rem); opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.feature-pane.is-active { opacity: 1; transform: none; pointer-events: auto; }
.pane-icon { position: absolute; right: 8%; top: 10%; width: min(34%, 150px); fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: .6; stroke-linecap: round; stroke-linejoin: round; }
.feature-pane h3 { position: relative; margin-bottom: .6rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.feature-pane p { position: relative; max-width: 28rem; color: rgba(255, 255, 255, .82); font-size: .98rem; }

/* 10. Steps ---------------------------------------------------------------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.steps::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps div { position: relative; padding-top: 4rem; }
.steps span { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--wine); color: #fff; font: 700 1rem var(--display); }
.steps h3 { margin-bottom: .4rem; font-size: 1.2rem; }
.steps p { color: var(--muted); }

/* 11. Join (app buttons + socials) ----------------------------------------- */
.join { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.75rem, 5vw, 4rem); }
.join > div:first-child { max-width: 34rem; }
.join p { max-width: 28rem; margin-top: 1rem; color: var(--muted); }

.store-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .7rem; margin-top: 1.8rem; }
.store {
  display: inline-flex; align-items: center; gap: .8rem; width: 100%;
  padding: .65rem 1.2rem .65rem 1rem; border-radius: 16px; background: var(--text); color: var(--bg);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.store:hover { background: var(--wine); color: #fff; transform: translateY(-3px); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store small { display: block; font-size: .7rem; line-height: 1.1; opacity: .7; }
.store span { font: 700 1.05rem var(--display); line-height: 1.2; }

.socials { display: grid; grid-template-columns: minmax(0, 1fr); padding: .5rem; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.social-link { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; border-radius: 18px; transition: background .3s; }
.social-link + .social-link { border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; }
.social-link:hover { background: var(--bg2); }
.social-link > div { min-width: 0; }
.social-link b { display: block; font: 700 1rem var(--display); }
.social-link span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; color: var(--muted); }
.social-link em { margin-left: auto; font-size: 1.2rem; font-style: normal; color: var(--muted); transition: transform .35s var(--ease), color .3s; }
.social-link:hover em { transform: translate(3px, -3px); color: var(--logo); }
.social-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bg2); color: var(--logo); transition: .35s var(--ease); }
.social-link:hover .social-icon { background: var(--wine); color: #fff; transform: rotate(-6deg); }
.social-icon svg { width: 24px; height: 24px; fill: currentColor; }
.social-icon svg.outline { fill: none; stroke: currentColor; stroke-width: 2; }

/* Tablet/phone layout for About, Features, Steps and Join ------------------ */
@media (max-width: 860px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .join { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .store-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .socials { padding: .35rem; }

  .features { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .feature-tabs { display: flex; align-items: center; gap: .5rem; overflow-x: auto; padding: .2rem 0 .4rem; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .feature-tabs::-webkit-scrollbar { display: none; }
  .feature-tab { flex: none; gap: .6rem; padding: .55rem 1rem; border-color: var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; white-space: nowrap; scroll-snap-align: start; }
  .feature-tab svg { width: 20px; height: 20px; }
  .feature-tab[aria-selected="true"] { background: var(--wine); border-color: var(--wine); color: #fff; box-shadow: none; }
  .feature-tab[aria-selected="true"] svg { stroke: #fff; }
  .feature-tab[aria-selected="true"]::after { display: none; }
  .feature-panel { min-height: 250px; border-radius: 22px; }
  .feature-pane { padding: 1.5rem; }
  .feature-pane p { font-size: .95rem; line-height: 1.6; }
  .pane-icon { right: 1.25rem; top: 1.25rem; width: 84px; }

  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps::before { display: none; }
  .steps div { min-height: 46px; padding: 0 0 0 3.5rem; }
}
@media (max-width: 480px) { .store { justify-content: center; } }
@media (max-width: 420px) { .store-buttons { grid-template-columns: minmax(0, 1fr); } }

/* 12. CTA, footer, motion -------------------------------------------------- */
.cta-section { padding-bottom: 0; }
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: clamp(24px, 4vw, 32px);
  background: linear-gradient(135deg, var(--wine), var(--wine-d)); color: #fff;
}
.cta::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%); }
.cta h2 { max-width: 18ch; margin-bottom: 1.5rem; font-size: clamp(1.7rem, 3.6vw + .5rem, 3rem); font-weight: 800; line-height: 1.05; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 480px) { .cta .btn { flex: 1 1 100%; } }

footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(2.25rem, 5vw, 3rem) 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg2); border-top: 1px solid var(--line);
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.footer-logo { height: clamp(24px, 3.5vw, 30px); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-bottom .call a { font-weight: 600; color: var(--logo); }

@media (max-width: 640px) {
  footer { padding: 2.25rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0px)); }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; width: 100%; }
  .footer-links a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .footer-bottom { flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 1.5rem; padding-top: 0; border-top: 0; line-height: 1.55; }
  .footer-bottom .call { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .95rem; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .nav-pill { padding-left: .9rem; }
}

/* touch devices: no hover-only effects */
@media (hover: none) {
  .store:hover { transform: none; }
  .nav-links a::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .line i, .fade { transform: none; opacity: 1; }
}
