/* Gigi · AI Girls. Minimal luxe: bone, blush, charcoal, a touch of gold. One font. */
:root {
  color-scheme: light;
  --bone: #F5EFE7;
  --bone-2: #EFE6DB;
  --paper: #FFFCF8;
  --blush: #EBCFC6;
  --blush-2: #F3DED7;
  --rose: #B97C70;
  --gold: #B8925A;
  --gold-2: #D9BC8C;
  --ink: #26211E;
  --ink-2: #5E5550;
  --ink-3: #9A8F87;
  --line: rgba(38, 33, 30, .09);
  --glass: rgba(255, 252, 248, .66);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 1px rgba(38, 33, 30, .03), 0 12px 32px -12px rgba(80, 52, 38, .18), 0 40px 80px -40px rgba(80, 52, 38, .22);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bone);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* soft blush light behind everything + film grain */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42vmax 36vmax at 18% 12%, rgba(235, 207, 198, .75), transparent 70%),
    radial-gradient(38vmax 30vmax at 88% 30%, rgba(217, 188, 140, .28), transparent 70%),
    radial-gradient(50vmax 40vmax at 60% 110%, rgba(235, 207, 198, .55), transparent 70%);
  animation: drift 28s var(--ease) infinite alternate;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .33 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift { to { transform: translate3d(3vmax, -2vmax, 0) scale(1.06); } }

main { max-width: 1080px; margin: 0 auto; padding: 20px 20px 80px; min-height: 100dvh; }
.screen { animation: enter .7s var(--ease) both; }
.screen > * { animation: rise .8s var(--ease) both; }
.screen > *:nth-child(2) { animation-delay: .06s; } .screen > *:nth-child(3) { animation-delay: .12s; }
.screen > *:nth-child(4) { animation-delay: .18s; } .screen > *:nth-child(5) { animation-delay: .24s; }
.screen > *:nth-child(6) { animation-delay: .3s; }
@keyframes enter { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* type: Instrument Serif for display, Plus Jakarta Sans for everything else */
h1 { font-family: "Instrument Serif", "Times New Roman", serif; font-size: clamp(42px, 6.4vw, 78px); line-height: .98; font-weight: 400; letter-spacing: -.02em; margin: 0 0 18px; }
h1 em, .display em { font-style: italic; }
h2 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin: 0 0 14px; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 12px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 36ch; line-height: 1.65; }
.muted { color: var(--ink-3); font-size: 14px; }
.soft { color: var(--ink-2); }
em.script { font-style: italic; font-weight: 400; color: var(--rose); }
.display { font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: -.01em; }
h2.display { font-size: 30px; line-height: 1.05; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 18px; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; color: inherit; }
.brand .logo { height: 40px; width: auto; display: block; filter: drop-shadow(0 1px 1px rgba(120, 88, 60, .25)) drop-shadow(0 6px 12px rgba(120, 88, 60, .22)); }
.brand .sep { width: 1px; height: 22px; background: rgba(38, 33, 30, .14); }
.brand .who { font-family: "Instrument Serif", serif; font-size: 24px; font-weight: 400; line-height: 1; font-style: italic; }
.brand .mark { width: 34px; height: 34px; border-radius: 50%; background: var(--paper) url(/gigi.webp) center 18% / 150% no-repeat; box-shadow: inset 0 0 0 1px var(--line), 0 6px 14px -8px rgba(80, 52, 38, .35); }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; }
.link { background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; padding: 8px 10px; border-radius: 999px; transition: background .3s var(--ease), color .3s; }
.link:hover { background: rgba(38, 33, 30, .05); color: var(--ink); }

/* glass cards */
.card {
  position: relative; background: var(--glass); border-radius: var(--r-lg); padding: 24px;
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
}
.card::before { /* hairline gold edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(217, 188, 140, .55), transparent 40%, transparent 70%, rgba(185, 124, 112, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.stack > * + * { margin-top: 12px; }

/* fields */
label { display: block; font-weight: 600; font-size: 13px; letter-spacing: .01em; margin: 18px 0 8px; color: var(--ink-2); }
input[type=text], input[type=password], textarea {
  width: 100%; font: inherit; color: var(--ink); background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 15px 16px; outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, textarea:focus { background: #fff; border-color: rgba(185, 124, 112, .55); box-shadow: 0 0 0 5px rgba(235, 207, 198, .55); }
textarea { resize: none; min-height: 96px; line-height: 1.5; }
.keynote { display: flex; gap: 10px; align-items: center; margin: 0 0 4px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(235, 207, 198, .35); color: var(--ink-2); font-size: 14px; }
.keynote span { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #fff; font-size: 12px; }
[hidden] { display: none !important; }
.code-input { font-size: 22px !important; font-weight: 600; letter-spacing: .06em; text-align: center; text-transform: lowercase; }

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden;
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: -.005em; border-radius: 999px; padding: 15px 26px; cursor: pointer;
  border: 0; color: #FBF6F0; background: linear-gradient(180deg, #3A322D, #211C19);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -10px rgba(38, 33, 30, .55);
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), opacity .3s;
  text-decoration: none;
}
.btn::after { /* shine sweep on hover */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transition: transform .9s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 16px 30px -12px rgba(38, 33, 30, .6); }
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn .arrow { transition: transform .4s var(--spring); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: rgba(255, 255, 255, .55); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.block { width: 100%; }

/* options */
.opts { display: grid; gap: 10px; }
.opt {
  position: relative; text-align: left; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px 16px 50px;
  transition: transform .35s var(--spring), background .3s, border-color .3s, box-shadow .3s;
}
.opt::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid rgba(38, 33, 30, .25); transition: all .3s var(--ease); }
.opt:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 10px 22px -16px rgba(80, 52, 38, .45); }
.opt[aria-pressed=true] { background: #fff; border-color: rgba(185, 124, 112, .5); box-shadow: 0 0 0 4px rgba(235, 207, 198, .5); font-weight: 600; }
.opt[aria-pressed=true]::before { border-color: var(--rose); background: radial-gradient(circle, var(--rose) 0 4px, transparent 5px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips .opt { padding: 10px 16px 10px 38px; border-radius: 999px; }
.chips .opt::before { left: 13px; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 5px; }
.chips .opt[aria-pressed=true]::before { background: var(--rose); border-color: var(--rose); box-shadow: inset 0 0 0 3px #fff; }

/* ---------- Gigi ---------- */
.gigi { --size: 260px; position: relative; width: var(--size); aspect-ratio: 963 / 1030; flex: none; user-select: none; }
.gigi-body { position: absolute; inset: 0 0 auto 0; aspect-ratio: 963 / 952; animation: float 5.5s ease-in-out infinite; transform-origin: 50% 95%; will-change: transform; }
.gigi-body img, .gigi-face { position: absolute; inset: 0; width: 100%; height: 100%; }
.gigi-body { opacity: 0; transition: opacity .6s var(--ease); }
.gigi.ready .gigi-body { opacity: 1; }
.gigi-body img { filter: drop-shadow(0 18px 24px rgba(90, 58, 40, .16)); }
.gigi-shadow {
  position: absolute; left: 22%; right: 22%; bottom: 0; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(80, 52, 38, .32), rgba(80, 52, 38, 0)); animation: shadow 5.5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4.5%) rotate(.6deg); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.82); opacity: .6; } }
.g-eyes { --lx: 0px; --ly: 0px; transform: translate(var(--lx), var(--ly)); transition: transform .5s var(--ease); }
.g-eye, .g-dots circle { fill: #FFF1D3; }
.g-open { transform-box: view-box; transform-origin: 50% 30.4%; transition: transform .09s ease-in, opacity .2s; }
.blink .g-open { transform: scaleY(.08); }
.g-happy path, .g-smile { fill: none; stroke: #FFF1D3; stroke-linecap: round; }
.g-happy path { stroke-width: 11; }
.g-smile { stroke-width: 7; transition: opacity .2s; }
.g-happy, .g-mouth { opacity: 0; transition: opacity .2s; }
.g-mouth { fill: #FFF1D3; transform-box: fill-box; transform-origin: center; }
.g-dots circle { opacity: 0; }
.g-sheen { animation: sheen 9s var(--ease) infinite; animation-delay: 2s; }
@keyframes sheen { 0%, 70% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(1300px) skewX(-18deg); } }

.gigi[data-mood=happy] .g-open, .gigi[data-mood=wave] .g-open { opacity: 0; }
.gigi[data-mood=happy] .g-happy, .gigi[data-mood=wave] .g-happy { opacity: 1; }
.gigi[data-mood=happy] .gigi-body { animation: hop .7s var(--spring) 1, float 5.5s ease-in-out .7s infinite; }
.gigi[data-mood=wave] .gigi-body { animation: wave 1.8s var(--ease) 1, float 5.5s ease-in-out 1.8s infinite; }
.gigi[data-mood=think] .gigi-body { animation: think 2.6s ease-in-out infinite; }
.gigi[data-mood=think] .g-dots circle { animation: dot 1.2s ease-in-out infinite; }
.gigi[data-mood=think] .g-dots circle:nth-child(2) { animation-delay: .18s; }
.gigi[data-mood=think] .g-dots circle:nth-child(3) { animation-delay: .36s; }
.gigi[data-mood=think] .g-sheen { animation-duration: 2.4s; animation-delay: 0s; }
.gigi[data-mood=talk] .g-smile { opacity: 0; }
.gigi[data-mood=talk] .g-mouth { opacity: 1; animation: talk .32s ease-in-out infinite alternate; }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(2%) scale(1.04, .95); } 60% { transform: translateY(-7%) scale(.98, 1.03); } 100% { transform: translateY(0) scale(1); } }
@keyframes wave { 0% { transform: rotate(0); } 15% { transform: rotate(-5deg) translateY(-2%); } 35% { transform: rotate(5deg) translateY(-3%); } 55% { transform: rotate(-4deg) translateY(-2%); } 75% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
@keyframes think { 0%, 100% { transform: translateY(-1%) rotate(-1.4deg); } 50% { transform: translateY(-3.5%) rotate(1.4deg); } }
@keyframes dot { 0%, 100% { opacity: 0; transform: scale(.7); } 45% { opacity: 1; transform: scale(1.15); } }
@keyframes talk { from { transform: scaleY(.35); } to { transform: scaleY(1.05); } }
.g-dots circle { transform-box: fill-box; transform-origin: center; }

/* speech bubble */
.bubble {
  position: relative; background: var(--paper); border-radius: 22px; padding: 16px 20px; font-size: 16px; line-height: 1.55;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, var(--shadow); border: 1px solid rgba(38, 33, 30, .05); white-space: pre-wrap;
}
.bubble.tail-left::after { content: ""; position: absolute; left: -7px; top: 26px; width: 16px; height: 16px; background: var(--paper); transform: rotate(45deg); border-radius: 3px; border-left: 1px solid rgba(38, 33, 30, .05); border-bottom: 1px solid rgba(38, 33, 30, .05); }
.bubble.tail-down::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 16px; height: 16px; margin-left: -8px; background: var(--paper); transform: rotate(45deg); border-radius: 3px; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--rose); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* sign-in hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; min-height: calc(100dvh - 140px); }
.hero-stage { position: relative; display: grid; justify-items: center; align-content: center; }
.hero-stage { padding: 56px 0 34px; align-self: start; position: sticky; top: 24px; }
.hero-stage::before { /* soft light behind Gigi, no frame */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 46%; width: min(110%, 560px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 252, 248, .95) 0%, rgba(255, 252, 248, .55) 38%, rgba(255, 252, 248, 0) 70%);
}
.hero-stage .bubble { margin-bottom: -6px; z-index: 2; max-width: 300px; text-align: center; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: var(--ink-3); font-size: 13px; }
.trust span::before { content: "✦"; color: var(--gold-2); margin-right: 6px; }
.howto { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: s; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.howto li > span { padding-top: 4px; }
.howto li::before { content: counter(s); font-family: "Instrument Serif", serif; font-size: 18px; line-height: 1; color: var(--gold); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(184, 146, 90, .35); background: rgba(255, 255, 255, .5); }
.howto b { color: var(--ink); font-weight: 600; }
.matches { display: grid; gap: 8px; margin-top: 14px; }
.match { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; cursor: pointer; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, .7); transition: all .3s var(--ease); }
.match:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(80, 52, 38, .45); }
.match .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--rose); background: var(--blush-2); }
.match small { display: block; color: var(--ink-3); font-size: 12px; }

/* onboarding */
.flow { max-width: 620px; margin: 0 auto; }
.flow-head { display: flex; align-items: flex-end; gap: 14px; margin: 8px 0 24px; }
.flow-head .bubble { flex: 1; font-size: 19px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 30px; }
.progress { display: flex; gap: 6px; margin: 4px 0 8px; }
.progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(38, 33, 30, .08); overflow: hidden; position: relative; }
.progress i.on::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-2), var(--rose)); animation: fill .6s var(--ease) both; }
@keyframes fill { from { transform: translateX(-100%); } }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* home */
.home-hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin: 4px 0 30px; }
.home-hero .bubble { font-size: 17px; }
.home-hero h1 { margin-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.lessons { display: grid; gap: 12px; }
.lesson {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; text-decoration: none; color: inherit;
  padding: 18px 20px; border-radius: var(--r-md); background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 14px 30px -22px rgba(80, 52, 38, .45);
  transition: transform .45s var(--spring), box-shadow .45s var(--ease), background .3s;
}
.lesson:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 22px 40px -24px rgba(80, 52, 38, .55); }
.lesson .num { font-size: 13px; font-weight: 600; color: var(--gold); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #fff, var(--bone-2)); box-shadow: inset 0 0 0 1px rgba(184, 146, 90, .3); }
.lesson .course { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.lesson .why { font-size: 14px; color: var(--ink-2); margin: 5px 0 0; }
.lesson .go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(38, 33, 30, .05); transition: all .4s var(--spring); }
.lesson:hover .go { background: var(--ink); color: var(--bone); transform: translateX(3px); }
.lesson.mini { grid-template-columns: 1fr auto; padding: 13px 16px; }
.lesson.mini h3 { font-size: 15px; }

.composer { padding: 10px; }
.composer textarea { border: 0; background: transparent; box-shadow: none !important; min-height: 88px; padding: 12px 12px 6px; font-size: 16px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 4px 12px; gap: 10px; }
.pips { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--ink-3); }
.pips i { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); transition: all .4s var(--ease); }
.pips i.used { background: rgba(38, 33, 30, .12); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.suggest button { font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .55); transition: all .3s var(--ease); }
.suggest button:hover { background: #fff; color: var(--ink); }

.feed { display: grid; gap: 16px; margin-top: 18px; }
.msg-me { justify-self: end; max-width: 85%; background: var(--ink); color: var(--bone); padding: 12px 16px; border-radius: 20px 20px 6px 20px; font-size: 15px; animation: rise .5s var(--ease) both; }
.msg-gigi { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; animation: rise .6s var(--ease) both; }
.msg-gigi .bubble { border-radius: 6px 22px 22px 22px; }
.msg-gigi .lessons { margin-top: 10px; }
.msg-gigi .lessons > * { animation: rise .6s var(--ease) both; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--paper) url(/gigi.webp) center 16% / 150% no-repeat; box-shadow: inset 0 0 0 1px var(--line); }

.plan-card { overflow: hidden; }
.plan-card .art { position: absolute; right: -30px; bottom: -40px; width: 170px; opacity: .9; pointer-events: none; }
.foot-note { margin-top: 36px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* search-first home */
.search-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: start; margin: 8px 0 34px; }
.search-gigi { position: sticky; top: 24px; padding-top: 10px; }
.search-gigi::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 45%; width: 340px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 252, 248, .95), rgba(255, 252, 248, 0) 68%); }
.search-main { max-width: 720px; min-width: 0; }
.search-hero > *, .extras > * { min-width: 0; }
.search-main h1 { margin-bottom: 14px; }
.search-main > .bubble { margin-bottom: 18px; font-size: 16px; }
.searchbox { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-radius: 999px; }
.searchbox::before { border-radius: 999px; }
.search-icon { font-size: 24px; color: var(--ink-3); line-height: 1; }
.search-input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 19px; color: var(--ink); padding: 10px 4px; outline: none; }
.search-input::-webkit-search-cancel-button { display: none; }
.results { margin-top: 18px; }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--spring); }
.icon-btn:hover { background: rgba(38, 33, 30, .06); color: var(--ink); }
.icon-btn.listening { background: var(--rose); color: #fff; animation: listen 1.2s ease-in-out infinite; }
@keyframes listen { 50% { box-shadow: 0 0 0 8px rgba(185, 124, 112, .18); } }
.shot-chip { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); animation: rise .4s var(--ease) both; }
.shot-chip img { width: 54px; height: 40px; object-fit: cover; border-radius: 10px; }
.shot-chip span { flex: 1; }
.msg-shot { display: block; max-width: 220px; max-height: 160px; border-radius: 12px; margin-bottom: 8px; }
.results .lessons { gap: 10px; }
.lesson.hit .why { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.answer { padding: 18px 20px; border-left: 3px solid var(--gold-2); animation: rise .5s var(--ease) both; }
.answer + .answer { margin-top: 10px; }
.empty { padding: 18px 20px; }
.ask-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 6px; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.side h2 { font-size: 26px; }
.spotlight { display: block; text-decoration: none; color: inherit; background: linear-gradient(150deg, rgba(255, 252, 248, .85), rgba(243, 222, 215, .7)); transition: transform .45s var(--spring), box-shadow .45s var(--ease); }
.spotlight:hover { transform: translateY(-3px); }
.go-line { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--rose); }
.news .eyebrow { color: var(--rose); }
.feed .msg-me { justify-self: end; }

/* plan */
.plan-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 6px 0 26px; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--rose) calc(var(--p) * 1%), rgba(38, 33, 30, .07) 0); transition: --p 1s; position: relative; }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.ring b { position: relative; font-size: 26px; letter-spacing: -.03em; }
.ring small { position: relative; display: block; text-align: center; font-size: 11px; color: var(--ink-3); margin-top: -4px; }
.phase { margin-top: 18px; }
.phase-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.phase-head .tag { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 6px 10px; border-radius: 999px; background: rgba(217, 188, 140, .18); }
.week { position: relative; padding: 16px 0 6px 28px; border-left: 1px solid rgba(184, 146, 90, .35); margin-left: 8px; }
.week::before { content: ""; position: absolute; left: -6px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--gold-2); }
.week.complete::before { background: var(--rose); box-shadow: inset 0 0 0 2px var(--rose); }
.week .wk { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.week .goal { font-weight: 600; margin: 2px 0 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; border: 1.5px solid rgba(38, 33, 30, .25); background: #fff; cursor: pointer; display: grid; place-items: center; transition: all .3s var(--spring); }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--spring); }
.check input:checked { background: var(--rose); border-color: var(--rose); transform: scale(1.06); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check a { color: var(--ink); font-weight: 600; text-decoration: none; background: linear-gradient(var(--blush), var(--blush)) 0 100% / 0 40% no-repeat; transition: background-size .4s var(--ease); }
.check a:hover { background-size: 100% 40%; }
.check.done a { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(185, 124, 112, .6); }

.err { color: #A6473B; font-size: 14px; margin-top: 10px; min-height: 1px; }
.center { display: grid; place-items: center; min-height: 70dvh; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bone); padding: 12px 18px; border-radius: 999px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow); animation: rise .5s var(--ease) both; z-index: 10; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 10px; min-height: 0; }
  .hero-stage .gigi { --size: 200px !important; }
  .hero-stage { padding: 40px 0 24px; position: relative; top: 0; }
  .brand .logo { height: 30px; }
  .grid-2 { grid-template-columns: 1fr; }
  .search-hero { grid-template-columns: 1fr; gap: 6px; }
  .search-gigi { position: relative; top: 0; justify-self: center; padding-top: 0; }
  .search-gigi .gigi { --size: 130px !important; }
  .extras { grid-template-columns: 1fr; }
  .search-input { font-size: 17px; }
  .searchbox { padding: 6px 6px 6px 14px; gap: 2px; }
  .searchbox .search-icon { display: none; }
  .searchbox .btn { padding: 10px 14px; }
  .searchbox .btn .arrow { display: none; }
  .icon-btn { width: 36px; height: 36px; }
  .home-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .home-hero .bubble { text-align: left; }
  .home-hero .bubble.tail-left::after { left: 50%; top: -7px; margin-left: -8px; border: 0; border-left: 1px solid rgba(38, 33, 30, .05); border-top: 1px solid rgba(38, 33, 30, .05); }
  .plan-hero { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  main { padding: 14px 16px 64px; }
  .card { padding: 20px; border-radius: 24px; }
  .lesson { grid-template-columns: 1fr auto; }
  .lesson .num { display: none; }
  .flow-head .gigi { --size: 92px !important; }
  .flow-head .bubble { font-size: 17px; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body::before, body::after, .noprint { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; backdrop-filter: none; background: #fff; }
}

/* ---------- welcome intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(60vmax 50vmax at 50% 45%, #FFFCF8 0%, var(--bone) 60%, #EFE4D8 100%);
  animation: intro-in .35s var(--ease) both;
}
.intro.leaving { animation: intro-out .7s var(--ease) both; }
@keyframes intro-in { from { opacity: 0; } }
@keyframes intro-out { to { opacity: 0; transform: scale(1.04); filter: blur(4px); } }
.intro-stage { position: relative; display: grid; justify-items: center; }
.intro-title { font-family: "Instrument Serif", serif; font-size: clamp(40px, 7vw, 76px); line-height: 1; letter-spacing: -.02em; margin: 0 0 6px; text-align: center; animation: rise .8s var(--ease) 1.5s both; }
.intro-title em { color: var(--rose); }
.intro-sub { color: var(--ink-3); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; animation: rise .8s var(--ease) 1.8s both; }
.intro .bubble { margin-bottom: -2px; animation: pop .5s var(--spring) 1.1s both; font-size: 18px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.85); } }
.intro-mover { animation: slide-in 1.1s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes slide-in { 0% { transform: translateX(-70vw) rotate(-12deg); } 70% { transform: translateX(3vw) rotate(4deg); } 100% { transform: translateX(0) rotate(0); } }
.gigi.dancing .gigi-body { animation: dance 2.4s ease-in-out 1.05s both !important; }
@keyframes dance {
  0% { transform: translateY(0) rotate(0) scaleX(1); }
  10% { transform: translateY(-9%) rotate(-7deg); }
  20% { transform: translateY(0) rotate(0) scale(1.05, .94); }
  30% { transform: translateY(-9%) rotate(7deg); }
  40% { transform: translateY(0) rotate(0) scale(1.05, .94); }
  52% { transform: translateY(-14%) scaleX(-1); }
  64% { transform: translateY(0) scaleX(1); }
  74% { transform: translateY(-4%) rotate(-4deg); }
  84% { transform: translateY(0) rotate(4deg); }
  100% { transform: translateY(0) rotate(0); }
}
.sparkle { position: absolute; width: 10px; height: 10px; pointer-events: none; opacity: 0; animation: sparkle 1.6s ease-out both; }
.sparkle::before, .sparkle::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; border-radius: 2px; }
.sparkle::before { width: 100%; height: 22%; } .sparkle::after { width: 22%; height: 100%; }
@keyframes sparkle { 0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(180deg); } }
.intro-skip { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--ink-3); font-size: 13px; animation: rise .6s var(--ease) 2s both; }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; border-radius: 2px; animation: fall linear both; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }
