/* Punlift website. Brand: Sunshine #FFC93C, Tangerine #FF6B4A, Midnight #2B2A4C, Cream #FFF8EC, Purple #7C6CF0, Teal #2EC4B6. */

@font-face { font-family: "Fredoka"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/fredoka-600.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/fredoka-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/nunito-400i.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/nunito-800.woff2") format("woff2"); }

:root {
  --sun: #FFC93C;
  --sun-deep: #E9AE17;
  --sun-tint: #FFF1C7;
  --tangerine: #FF6B4A;
  --tangerine-deep: #D9502F;
  --tangerine-tint: #FFE3DB;
  --midnight: #2B2A4C;
  --midnight-deep: #1B1A33;
  --midnight-surface: #26244A;
  --cream: #FFF8EC;
  --cream-deep: #F6EBD6;
  --purple: #7C6CF0;
  --purple-tint: #ECE9FF;
  --teal: #2EC4B6;
  --teal-tint: #DDF6F3;
  --white: #FFFFFF;
  --ink: var(--midnight);
  --ink-soft: rgba(43, 42, 76, 0.72);
  --ink-faint: rgba(43, 42, 76, 0.5);
  --line: rgba(43, 42, 76, 0.1);
  --radius: 24px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 0 rgba(43, 42, 76, 0.06), 0 8px 20px -12px rgba(43, 42, 76, 0.25);
  --shadow: 0 2px 0 rgba(43, 42, 76, 0.06), 0 22px 44px -22px rgba(43, 42, 76, 0.35);
  --shadow-lg: 0 30px 70px -30px rgba(43, 42, 76, 0.55);
  --font-head: "Fredoka", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* Scripts that the brand fonts don't cover get matching rounded Noto faces (loaded on demand). */
html[lang="hi"] { --font-body: "Nunito", "Noto Sans Devanagari", system-ui, sans-serif; --font-head: "Fredoka", "Noto Sans Devanagari", system-ui, sans-serif; }
html[lang="bn"] { --font-body: "Nunito", "Noto Sans Bengali", system-ui, sans-serif; --font-head: "Fredoka", "Noto Sans Bengali", system-ui, sans-serif; }
html[lang="ar"] { --font-body: "Nunito", "Noto Sans Arabic", system-ui, sans-serif; --font-head: "Fredoka", "Noto Sans Arabic", system-ui, sans-serif; }
html[lang="ur"] { --font-body: "Nunito", "Noto Nastaliq Urdu", "Noto Sans Arabic", system-ui, sans-serif; --font-head: "Fredoka", "Noto Nastaliq Urdu", "Noto Sans Arabic", system-ui, sans-serif; }
html[lang="zh"] { --font-body: "Nunito", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; --font-head: "Fredoka", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html[lang="ur"] body { line-height: 2; }
html[lang="ur"] .hero-title, html[lang="ur"] .section-title, html[lang="ur"] .page-title { line-height: 1.6; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--sun); color: var(--midnight); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--midnight); color: var(--cream); padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1180px, 100% - clamp(32px, 6vw, 80px)); margin-inline: auto; }

/* ---------- Sun mark ---------- */
.sun-mark { display: block; overflow: visible; }
.sun-rays { transform-origin: 60px 60px; transform-box: view-box; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--midnight); }
.wordmark-sun { width: 44px; height: 44px; transition: transform 0.5s var(--spring); }
.wordmark:hover .wordmark-sun { transform: rotate(-12deg) scale(1.08); }
.wordmark:hover .sun-rays { animation: spin 6s linear infinite; }
.wordmark-text { font-family: "Fredoka", var(--font-head); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; line-height: 1; }

/* ---------- Buttons and chips ---------- */
.btn {
  --btn-bg: var(--sun);
  --btn-edge: var(--sun-deep);
  --btn-ink: var(--midnight);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.82em 1.45em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-ink);
  font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--btn-edge), 0 14px 24px -14px rgba(43, 42, 76, 0.55);
  transition: transform 0.18s var(--spring), box-shadow 0.18s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-edge), 0 18px 28px -14px rgba(43, 42, 76, 0.55); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge), 0 6px 12px -8px rgba(43, 42, 76, 0.5); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
.btn-tangerine { --btn-bg: var(--tangerine); --btn-edge: var(--tangerine-deep); }
.btn-sun { --btn-bg: var(--sun); --btn-edge: var(--sun-deep); }
.btn-midnight { --btn-bg: var(--midnight); --btn-edge: #121126; --btn-ink: var(--cream); }
.btn-purple { --btn-bg: var(--purple); --btn-edge: #5A4BD0; --btn-ink: var(--white); }
.btn-white { --btn-bg: var(--white); --btn-edge: var(--cream-deep); }
.btn-ghost, .btn-ghost-dark { background: transparent; box-shadow: inset 0 0 0 2px var(--midnight); color: var(--midnight); }
.btn-ghost:hover, .btn-ghost-dark:hover { background: rgba(43, 42, 76, 0.06); box-shadow: inset 0 0 0 2px var(--midnight); }
.btn-ghost:active, .btn-ghost-dark:active { box-shadow: inset 0 0 0 2px var(--midnight); }
.btn-danger { --btn-bg: #FFE1DA; --btn-edge: #F2B3A4; --btn-ink: #9E2A14; }
.btn-big { font-size: 19px; padding: 0.95em 1.7em; }
.btn-small { font-size: 15px; padding: 0.62em 1.1em; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--tangerine-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.2; }
.chip-sun { background: var(--sun); color: var(--midnight); }
.chip-soft { background: var(--cream); color: var(--midnight); box-shadow: inset 0 0 0 1px var(--line); }
.chip-white { background: rgba(255, 255, 255, 0.9); color: var(--midnight); }
.chip-purple { background: var(--purple-tint); color: #4B3DC0; }

.kicker { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tangerine-deep); margin-bottom: 12px; }
.kicker-sun { color: var(--sun); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head.left { text-align: start; margin-inline: 0; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.section-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); margin-bottom: 0; }
.section-sub.left { text-align: start; }
section { position: relative; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 248, 236, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow 0.25s var(--ease), background 0.25s;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(43, 42, 76, 0.5); background: rgba(255, 248, 236, 0.94); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.main-nav { display: flex; gap: 6px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); transition: background 0.2s, color 0.2s; }
.main-nav a:hover { background: rgba(43, 42, 76, 0.06); color: var(--midnight); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 0; box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); padding: 9px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15px; }
.lang-btn:hover { box-shadow: inset 0 0 0 1.5px rgba(43, 42, 76, 0.22), var(--shadow-sm); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: min(420px, calc(100vw - 32px));
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); padding: 18px;
  transform-origin: top right; animation: pop-in 0.22s var(--spring);
}
[dir="rtl"] .lang-menu { transform-origin: top left; }
.lang-menu-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lang-list button { width: 100%; text-align: start; border: 0; background: var(--cream); border-radius: 14px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; transition: background 0.15s, transform 0.15s var(--spring); }
.lang-list button:hover { background: var(--sun-tint); transform: translateY(-1px); }
.lang-list button[aria-checked="true"] { background: var(--sun); }
.lang-native { font-weight: 800; font-size: 16px; line-height: 1.3; }
.lang-english { font-size: 12.5px; color: var(--ink-faint); font-weight: 700; }
.lang-note { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 12px; width: 20px; height: 2.5px; border-radius: 2px; background: var(--midnight); content: ""; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-bars { top: 21px; }
.menu-bars::before { left: 0; top: -7px; }
.menu-bars::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Translation pill ---------- */
.translate-pill {
  position: fixed; z-index: 60; inset-inline: 0; bottom: 22px; margin-inline: auto; width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--midnight); color: var(--cream); box-shadow: var(--shadow-lg); font-weight: 700; font-size: 15px;
  animation: rise-in 0.35s var(--spring);
}
.translate-pill[hidden] { display: none; }
.pill-sun { width: 26px; height: 26px; }
.translate-pill.busy .pill-sun .sun-rays { animation: spin 2.4s linear infinite; }
.pill-action { background: rgba(255, 255, 255, 0.12); color: var(--cream); border: 0; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.pill-action:hover { background: rgba(255, 255, 255, 0.22); }
.suggest-pill { gap: 12px; }
[data-i18n].translating, [data-i18n-rich].translating, [data-tr].translating { background: linear-gradient(90deg, rgba(255, 201, 60, 0.12), rgba(255, 201, 60, 0.38), rgba(255, 201, 60, 0.12)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 6px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-glow { position: absolute; inset-inline-end: -12%; top: -18%; width: 70vw; max-width: 980px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 60, 0.55) 0%, rgba(255, 201, 60, 0.18) 45%, rgba(255, 201, 60, 0) 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--white); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 14.5px; margin-bottom: 22px; }
.hero-title { font-size: clamp(2.7rem, 6.3vw, 5rem); line-height: 1.02; margin-bottom: 22px; letter-spacing: -0.025em; }
.hl-sun { background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%); color: inherit; padding: 0 0.06em; border-radius: 4px; }
.hl-lift { color: var(--tangerine); position: relative; white-space: nowrap; }
.hl-lift::after { content: ""; position: absolute; inset-inline: -2%; bottom: -0.12em; height: 0.22em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 Q 16 1 30 7 T 58 7 T 86 7 T 118 6' fill='none' stroke='%23FF6B4A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 36em; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-ctas.center { justify-content: center; }
.hero-facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-facts li { display: flex; flex-direction: column; font-size: 15px; color: var(--ink-soft); line-height: 1.35; }
.hero-facts strong { font-family: var(--font-head); font-size: 20px; color: var(--midnight); font-weight: 700; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.rays-burst { position: absolute; width: min(620px, 120%); aspect-ratio: 1; display: grid; place-items: center; }
.burst-sun { width: 100%; height: 100%; opacity: 0.95; }
.burst-sun .sun-rays { animation: spin 70s linear infinite; }
.burst-sun circle:first-of-type { opacity: 0.55; }
.phone { position: relative; background: var(--midnight); border-radius: 46px; padding: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08); }
.phone img { border-radius: 37px; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 78px; height: 20px; margin-left: -39px; border-radius: 999px; background: #0F0E21; z-index: 2; }
.phone-hero { width: min(300px, 70vw); transform: rotate(3deg); animation: bob 7s ease-in-out infinite; }
.float-chip { position: absolute; z-index: 3; background: var(--white); color: var(--midnight); font-family: var(--font-head); font-weight: 600; font-size: 17px; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; white-space: nowrap; }
.chip-lol { inset-inline-end: 2%; top: 16%; background: var(--sun); }
.chip-chuckle { inset-inline-start: 0; top: 38%; animation-delay: -2s; }
.chip-groan { inset-inline-end: 6%; bottom: 20%; animation-delay: -4s; }
.chip-flame { inset-inline-start: 6%; bottom: 8%; background: var(--tangerine); animation-delay: -1s; }

/* ---------- Today's grin ---------- */
.today { padding: clamp(48px, 7vw, 96px) 0; }
.today-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(20px, 3vw, 36px); align-items: stretch; max-width: 1040px; margin: 0 auto; }
.joke-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); position: relative; transform: rotate(-0.6deg); }
.joke-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--tangerine); }
.card-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.joke-setup { font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.35; margin-bottom: 22px; min-height: 2.6em; }
.curtain { position: relative; }
.reveal-btn { font-size: 19px; padding: 1em 1.4em; }
.punchline { background: var(--sun-tint); border-radius: 20px; padding: 18px 22px; font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; margin: 0; box-shadow: inset 0 0 0 2px rgba(255, 201, 60, 0.6); }
.punchline.show { animation: curtain-up 0.42s var(--spring) both; }
.reactions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.reactions[hidden] { display: none; }
.react { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; cursor: pointer; padding: 12px 6px; border-radius: 18px; background: var(--cream); font-family: var(--font-head); font-weight: 600; font-size: 15px; transition: transform 0.18s var(--spring), background 0.2s; box-shadow: inset 0 0 0 1.5px var(--line); }
.react:hover { transform: translateY(-2px); background: var(--sun-tint); }
.react.active { background: var(--sun); box-shadow: inset 0 0 0 2px var(--sun-deep); }
.react-emoji { font-size: 30px; line-height: 1.1; }
.react.pop .react-emoji { animation: emoji-pop 0.5s var(--spring); }
.react-count { font-family: var(--font-body); font-weight: 800; font-size: 13px; color: var(--ink-soft); min-height: 1.2em; }
.nudge { margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: var(--purple-tint); animation: rise-in 0.4s var(--spring); }
.nudge[hidden] { display: none; }
.nudge-title { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.nudge-sub { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.card-foot { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 14.5px; color: var(--ink-faint); font-weight: 700; }
.card-foot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.quote-card { position: relative; overflow: hidden; background: var(--teal); color: var(--midnight); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow); transform: rotate(1deg); display: flex; flex-direction: column; }
.quote-text { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; margin: 18px 0 auto; position: relative; z-index: 1; }
.quote-text::before { content: "“"; display: block; font-size: 3.4em; line-height: 0.6; margin-bottom: 4px; opacity: 0.35; }
.quote-foot { margin: 22px 0 0; font-weight: 700; font-size: 15px; opacity: 0.8; position: relative; z-index: 1; }
.quote-sun { position: absolute; width: 260px; inset-inline-end: -70px; bottom: -80px; }
.skeleton { display: block; height: 0.9em; border-radius: 8px; background: linear-gradient(90deg, #F1E8D8, #FBF4E8, #F1E8D8); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; margin: 0.35em 0; }
.skeleton.light { background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35)); background-size: 200% 100%; }
.skeleton-line { width: 92%; }
.skeleton-line.short { width: 60%; }

/* ---------- How it works ---------- */
.how { padding: clamp(56px, 8vw, 110px) 0; background: linear-gradient(180deg, var(--cream) 0%, #FFF3DA 100%); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.step:nth-child(2) { margin-inline-start: clamp(0px, 3vw, 36px); }
.step:nth-child(3) { margin-inline-start: clamp(0px, 6vw, 72px); }
.step-num { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); font-family: var(--font-head); font-weight: 700; font-size: 22px; box-shadow: 0 3px 0 var(--sun-deep); }
.step:nth-child(2) .step-num { background: var(--tangerine); box-shadow: 0 3px 0 var(--tangerine-deep); }
.step:nth-child(3) .step-num { background: var(--teal); box-shadow: 0 3px 0 #1E9C90; }
.step-title { font-size: 22px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-soft); }
.phone-stack { position: relative; height: 620px; }
.phone-stack .phone { position: absolute; width: min(280px, 46vw); }
.phone-back { inset-inline-end: 4%; top: 0; transform: rotate(6deg); opacity: 0.96; }
.phone-front { inset-inline-start: 6%; top: 56px; transform: rotate(-4deg); }

/* ---------- Tabs band ---------- */
.tabs-band { padding: clamp(56px, 8vw, 110px) 0; }
.tab-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: start; }
.tab-card { background: var(--white); border-radius: var(--radius); padding: 24px 20px 26px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); position: relative; overflow: hidden; transition: transform 0.3s var(--spring), box-shadow 0.3s; }
.tab-card:nth-child(even) { margin-top: 34px; }
.tab-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); }
.tab-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--accent, var(--sun)); }
.tab-card h3 { font-size: 23px; margin: 12px 0 6px; }
.tab-card p { font-size: 16px; color: var(--ink-soft); margin: 0; }
.tab-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--accent-tint, var(--sun-tint)); }
.tc-sun { --accent: var(--sun); --accent-tint: var(--sun-tint); }
.tc-tangerine { --accent: var(--tangerine); --accent-tint: var(--tangerine-tint); }
.tc-purple { --accent: var(--purple); --accent-tint: var(--purple-tint); }
.tc-teal { --accent: var(--teal); --accent-tint: var(--teal-tint); }
.tc-midnight { --accent: var(--midnight); --accent-tint: #E6E5F1; }

/* ---------- Topics marquee ---------- */
.topics { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.marquee { display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 46s linear infinite; }
.marquee-row.reverse .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.topic-chip { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); font-family: var(--font-head); font-weight: 600; font-size: 19px; white-space: nowrap; }
.marquee-row:first-child .topic-chip:nth-child(3n+1) { background: var(--sun); }
.marquee-row.reverse .topic-chip:nth-child(4n+2) { background: var(--teal-tint); }
.marquee-row .topic-chip:nth-child(5n+3) { background: var(--tangerine-tint); }

/* ---------- Streak (dark) ---------- */
.dark { background: var(--midnight-deep); color: var(--cream); }
.wave { display: block; width: 100%; height: 60px; }
.streak .wave-top, .site-footer .wave-top { position: absolute; top: -59px; left: 0; }
.streak { color: var(--cream); padding: clamp(56px, 8vw, 110px) 0; margin-top: 60px; }
.streak .wave-top { color: var(--midnight-deep); }
.streak-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.streak .section-title { color: var(--cream); }
.flame-card { background: var(--midnight-surface); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 36px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.06); transform: rotate(-2deg); }
.flame-top { display: flex; align-items: center; gap: 16px; }
.flame-emoji { font-size: 64px; line-height: 1; filter: drop-shadow(0 8px 18px rgba(255, 107, 74, 0.55)); animation: flicker 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.flame-days { font-family: var(--font-head); font-weight: 700; font-size: 34px; margin: 0; line-height: 1.1; }
.flame-next { margin: 0; color: rgba(255, 248, 236, 0.72); font-weight: 700; }
.flame-bar { height: 12px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; margin: 22px 0; overflow: hidden; }
.flame-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun), var(--tangerine)); }
.week { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week li { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 15px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 248, 236, 0.6); }
.week li.on { background: var(--tangerine); color: var(--midnight); }
.week li.skip { background: rgba(255, 201, 60, 0.18); box-shadow: inset 0 0 0 2px var(--sun); font-size: 18px; }
.week li.is-today { box-shadow: inset 0 0 0 2px var(--cream); color: var(--cream); animation: pulse-ring 2.4s ease-out infinite; }
.flame-skip { margin: 0; color: var(--sun); font-weight: 700; font-size: 15.5px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-inline-start: 40px; font-size: 18.5px; color: rgba(255, 248, 236, 0.9); }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--midnight); font-weight: 800; font-size: 15px; }

/* ---------- Languages ---------- */
.languages { padding: clamp(64px, 9vw, 120px) 0; }
.lang-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 980px; margin: 0 auto; }
.lang-tile { border: 0; cursor: pointer; background: var(--white); border-radius: 22px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform 0.25s var(--spring), background 0.2s, box-shadow 0.2s; }
.lang-tile .lang-native { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.lang-tile:hover { transform: translateY(-4px) rotate(-1.5deg); background: var(--sun-tint); }
.lang-tile[aria-pressed="true"] { background: var(--sun); box-shadow: 0 4px 0 var(--sun-deep); }

/* ---------- Everywhere ---------- */
.everywhere { padding: clamp(56px, 8vw, 110px) 0; background: linear-gradient(180deg, var(--cream) 0%, var(--purple-tint) 100%); }
.everywhere-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.devices { position: relative; height: 440px; }
.laptop { position: absolute; inset-inline-start: 0; top: 30px; width: min(520px, 92%); }
.laptop-screen { background: var(--midnight); border-radius: 22px 22px 6px 6px; padding: 12px; box-shadow: var(--shadow-lg); }
.laptop-base { height: 16px; margin: 0 -6%; background: linear-gradient(#D9D2C3, #BDB4A2); border-radius: 0 0 20px 20px; }
.mini-site { background: var(--cream); border-radius: 12px; padding: 16px; aspect-ratio: 16 / 10; overflow: hidden; display: grid; gap: 10px; align-content: start; }
.mini-bar { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; color: var(--ink-faint); background: var(--white); padding: 6px 10px; border-radius: 999px; }
.mini-sun { width: 18px; height: 18px; }
.mini-hello { font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.mini-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-pill { background: var(--white); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.mini-pill.sun { background: var(--sun); }
.mini-card { background: var(--white); border-radius: 12px; padding: 12px; display: grid; gap: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.mini-card span { height: 8px; border-radius: 4px; background: #EFE6D6; width: 90%; }
.mini-card span.short { width: 55%; }
.mini-card.teal { background: var(--teal); }
.mini-card.teal span { background: rgba(255, 255, 255, 0.5); }
.phone-small { position: absolute; inset-inline-end: 2%; top: 0; width: min(200px, 38vw); transform: rotate(5deg); border-radius: 36px; padding: 8px; }
.phone-small img { border-radius: 29px; }
.phone-small::before { top: 14px; width: 56px; height: 15px; margin-left: -28px; }
.sync-badge { position: absolute; inset-inline-start: 46%; bottom: 40px; background: var(--teal); color: var(--midnight); font-family: var(--font-head); font-weight: 600; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }

/* ---------- Kind ---------- */
.kind { padding: clamp(64px, 9vw, 120px) 0; }
.kind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kind-card { background: var(--white); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.kind-card:nth-child(1) { --tint: var(--teal-tint); }
.kind-card:nth-child(2) { --tint: var(--tangerine-tint); }
.kind-card:nth-child(3) { --tint: var(--purple-tint); }
.kind-card:nth-child(4) { --tint: var(--sun-tint); }
.kind-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--tint); margin-bottom: 14px; }
.kind-card h3 { font-size: 21px; margin-bottom: 6px; }
.kind-card p { margin: 0; font-size: 16.5px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 clamp(64px, 9vw, 120px); }
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-family: var(--font-head); font-weight: 600; font-size: 19px; position: relative; }
[dir="rtl"] .faq summary { padding: 20px 22px 20px 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-tint); font-size: 22px; line-height: 1; transition: transform 0.3s var(--spring), background 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sun); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }
.faq details a { color: var(--tangerine-deep); font-weight: 700; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 0 0 clamp(80px, 10vw, 140px); }
.final-inner { position: relative; overflow: hidden; text-align: center; background: var(--sun); border-radius: 44px; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px); box-shadow: 0 6px 0 var(--sun-deep), var(--shadow-lg); }
.final-sun { width: 120px; height: 120px; margin: 0 auto 14px; }
.final-sun .sun-rays { animation: spin 20s linear infinite; }
.final-sun .sun-rays line { stroke: var(--white); }
.final-title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 12px; }
.final-sub { font-size: 1.2rem; max-width: 34em; margin: 0 auto 30px; color: rgba(43, 42, 76, 0.82); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--midnight); color: rgba(255, 248, 236, 0.86); padding: 40px 0 28px; margin-top: 60px; }
.site-footer .wave-top { color: var(--midnight); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer .wordmark { color: var(--cream); }
.footer-tagline { font-family: var(--font-head); font-weight: 600; font-size: 20px; margin: 14px 0 6px; color: var(--cream); }
.footer-small { font-size: 14.5px; color: rgba(255, 248, 236, 0.62); margin: 0; }
.footer-h { font-size: 16px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sun); margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-col a { text-decoration: none; font-weight: 700; color: rgba(255, 248, 236, 0.86); }
.footer-col a:hover { color: var(--sun); }
.store-status { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 700; font-size: 14.5px; background: rgba(255, 255, 255, 0.08); padding: 8px 12px; border-radius: 999px; }
.store-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.25); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 14.5px; }
.footer-base p { margin: 0; }

/* ---------- Content pages ---------- */
.page-hero { overflow: hidden; background: linear-gradient(160deg, var(--sun-tint) 0%, var(--cream) 70%); padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.page-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.page-title { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 14px; }
.page-intro { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.page-updated { font-weight: 700; font-size: 15px; color: var(--ink-faint); margin: 0; }
.page-sun { position: absolute; width: 300px; height: 300px; inset-inline-end: -40px; top: 50%; margin-top: -150px; opacity: 0.85; }
.page-sun .sun-rays { animation: spin 60s linear infinite; }
.page-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(24px, 5vw, 72px); padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 110px); }
.page-layout.single { grid-template-columns: minmax(0, 760px); }
.toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; background: var(--white); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.toc[hidden] { display: none; }
.page-layout:has(.toc[hidden]) { grid-template-columns: minmax(0, 760px); }
.toc-title { font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 15px; }
.toc a { text-decoration: none; color: var(--ink-soft); font-weight: 700; }
.toc a:hover, .toc a.active { color: var(--tangerine-deep); }
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 1.8em 0 0.5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-of-type { margin-top: 0.4em; }
.prose h3 { font-size: 1.3rem; margin: 1.5em 0 0.4em; }
.prose a { color: var(--tangerine-deep); font-weight: 700; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--tangerine); }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; background: var(--white); border-radius: 18px; box-shadow: inset 4px 0 0 var(--sun), var(--shadow-sm); }
.ai-note { display: flex; gap: 8px; align-items: flex-start; background: var(--purple-tint); color: #3E33A3; font-weight: 700; font-size: 15.5px; padding: 12px 16px; border-radius: 16px; }
.ai-note[hidden] { display: none; }
.page-help { margin-top: 48px; padding: 26px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.page-help p { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.post-teaser { padding: 18px 0; border-bottom: 1px solid var(--line); }
.lost { padding: clamp(64px, 10vw, 140px) 0; text-align: center; }
.lost-inner { max-width: 720px; }
.lost-sun { width: 150px; height: 150px; margin: 0 auto 18px; animation: wobble 3s ease-in-out infinite; }

/* ---------- Account (/me) ---------- */
.account { position: relative; min-height: calc(100vh - var(--header-h)); padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.account-bg { position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, rgba(255, 201, 60, 0.45), transparent 45%), radial-gradient(circle at 0% 100%, rgba(124, 108, 240, 0.18), transparent 50%); pointer-events: none; }
.account-wrap { position: relative; }
.account-loading { display: grid; place-items: center; gap: 12px; padding: 120px 0; font-weight: 700; color: var(--ink-soft); }
.spin-sun { width: 84px; height: 84px; }
.spin-sun .sun-rays { animation: spin 2.4s linear infinite; }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; max-width: 1060px; margin: 0 auto; }
.auth-pitch h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.auth-pitch p { font-size: 1.15rem; color: var(--ink-soft); }
.perk-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.perk-list li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.perk-list .perk-ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow-sm); font-size: 20px; flex: none; }
.card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 36px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.auth-card { max-width: 480px; width: 100%; justify-self: center; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 999px; padding: 5px; margin-bottom: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: transparent; padding: 10px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 16px; cursor: pointer; color: var(--ink-soft); }
.seg button[aria-selected="true"] { background: var(--white); color: var(--midnight); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 800; font-size: 15px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 17px; padding: 13px 16px; border-radius: 16px; border: 0; background: var(--cream); color: var(--midnight); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.2s, background 0.2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 2px var(--purple), 0 0 0 4px rgba(124, 108, 240, 0.15); }
.field .hint { font-size: 14px; color: var(--ink-faint); margin: 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-weight: 700; font-size: 14px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { --btn-bg: var(--white); --btn-edge: #E3DCCD; width: 100%; box-shadow: 0 4px 0 var(--btn-edge), inset 0 0 0 1.5px var(--line); }
.btn-google svg { width: 20px; height: 20px; }
.form-error { background: #FFE6E0; color: #9E2A14; border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 15.5px; margin-bottom: 14px; }
.form-ok { background: var(--teal-tint); color: #0E6B62; border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 15.5px; margin-bottom: 14px; }
.small-print { font-size: 13.5px; color: var(--ink-faint); margin: 14px 0 0; }
.small-print a { color: var(--ink-soft); }
.onboard { max-width: 720px; margin: 0 auto; }
.progress { height: 10px; background: rgba(43, 42, 76, 0.08); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.progress span { display: block; height: 100%; background: var(--tangerine); border-radius: inherit; transition: width 0.5s var(--spring); }
.topic-pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.topic-pick button { border: 0; cursor: pointer; padding: 12px 18px; border-radius: 999px; background: var(--cream); font-family: var(--font-head); font-weight: 600; font-size: 17px; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 0.2s var(--spring), background 0.2s; }
.topic-pick button:hover { transform: translateY(-2px); }
.topic-pick button[aria-pressed="true"] { background: var(--sun); box-shadow: 0 3px 0 var(--sun-deep); }
.dash { display: grid; gap: 22px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dash-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.dash-head p { margin: 4px 0 0; color: var(--ink-soft); font-weight: 700; }
.same-account { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-tint); color: #0E6B62; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14.5px; }
.dash-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 22px; align-items: start; }
.dash-col { display: grid; gap: 22px; }
.streak-tile { background: var(--midnight); color: var(--cream); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.streak-tile .flame-days { font-size: 40px; }
.streak-tile .flame-bar { margin: 16px 0 10px; }
.streak-tile p { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--white); border-radius: 20px; padding: 16px 12px; text-align: center; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.stat b { display: block; font-family: var(--font-head); font-size: 28px; line-height: 1.1; }
.stat span { font-size: 13.5px; font-weight: 800; color: var(--ink-faint); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { background: var(--sun-tint); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
.feed { display: grid; gap: 14px; }
.feed .joke-card { transform: none; padding: 24px; }
.feed .joke-setup { font-size: 1.25rem; min-height: 0; margin-bottom: 16px; }
.feed .punchline { font-size: 1.15rem; }
.card-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.icon-btn { border: 0; background: var(--cream); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 19px; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.2s var(--spring), background 0.2s; }
.icon-btn:hover { transform: scale(1.08); background: var(--sun-tint); }
.icon-btn.on { background: var(--sun); }
.caught-up { text-align: center; padding: 28px; border-radius: var(--radius-lg); background: var(--white); box-shadow: inset 0 0 0 2px dashed var(--line); }
.caught-up h3 { margin-bottom: 4px; }
.caught-up p { margin: 0; color: var(--ink-soft); }
.panel-title { font-size: 22px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.saved-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.saved-list li { background: var(--cream); border-radius: 16px; padding: 12px 14px; font-size: 16px; }
.saved-list li b { display: block; }
.danger-zone { border-radius: var(--radius); padding: 20px; background: #FFF4F1; box-shadow: inset 0 0 0 1.5px #FFD3C8; }
.danger-zone h3 { color: #9E2A14; font-size: 19px; }
.danger-zone p { font-size: 15.5px; color: var(--ink-soft); }
.toast { position: fixed; z-index: 70; inset-inline: 0; bottom: 84px; margin-inline: auto; width: max-content; max-width: calc(100vw - 32px); background: var(--sun); color: var(--midnight); font-family: var(--font-head); font-weight: 600; font-size: 17px; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); animation: rise-in 0.35s var(--spring); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: confetti-fall 1.6s ease-in forwards; }
.notice { background: var(--white); padding: 16px; border-radius: 16px; }

/* ---------- Scroll reveal ---------- */
.js .reveal-up { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal-up.in { opacity: 1; transform: none; }
.js .joke-card.reveal-up.in { transform: rotate(-0.6deg); }
.js .quote-card.reveal-up.in { transform: rotate(1deg); }
.js .flame-card.reveal-up.in { transform: rotate(-2deg); }
.js .step:nth-child(2).reveal-up { transition-delay: 0.08s; }
.js .step:nth-child(3).reveal-up { transition-delay: 0.16s; }
.js .tab-card:nth-child(2).reveal-up, .js .kind-card:nth-child(2).reveal-up { transition-delay: 0.06s; }
.js .tab-card:nth-child(3).reveal-up, .js .kind-card:nth-child(3).reveal-up { transition-delay: 0.12s; }
.js .tab-card:nth-child(4).reveal-up, .js .kind-card:nth-child(4).reveal-up { transition-delay: 0.18s; }
.js .tab-card:nth-child(5).reveal-up { transition-delay: 0.24s; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.92) translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes curtain-up { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes emoji-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.06) rotate(2deg); } }
@keyframes pulse-ring { 0% { box-shadow: inset 0 0 0 2px var(--cream), 0 0 0 0 rgba(255, 201, 60, 0.6); } 70% { box-shadow: inset 0 0 0 2px var(--cream), 0 0 0 10px rgba(255, 201, 60, 0); } 100% { box-shadow: inset 0 0 0 2px var(--cream), 0 0 0 0 rgba(255, 201, 60, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes confetti-fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0.2; } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tab-cards { grid-template-columns: repeat(3, 1fr); }
  .tab-card:nth-child(even) { margin-top: 0; }
  .kind-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .main-nav { position: absolute; top: var(--header-h); inset-inline: 12px; flex-direction: column; gap: 2px; background: var(--white); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg); display: none; margin: 0; }
  .main-nav.open { display: flex; animation: pop-in 0.22s var(--spring); }
  .main-nav a { padding: 12px 14px; font-size: 17px; }
  .header-actions { margin-inline-start: auto; }
  .menu-btn { display: inline-block; }
  .header-cta { display: none; }
  .hero-grid, .how-grid, .streak-grid, .everywhere-grid, .faq-wrap, .today-grid, .auth-shell, .dash-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; order: 2; }
  .phone-stack { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .step:nth-child(2), .step:nth-child(3) { margin-inline-start: 0; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .devices { max-width: 560px; width: 100%; margin: 0 auto; height: 400px; }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .page-sun { width: 200px; height: 200px; margin-top: -100px; inset-inline-end: -70px; opacity: 0.5; }
  .auth-pitch { text-align: center; }
  .perk-list { justify-items: center; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .lang-current { display: none; }
  .lang-btn { padding: 10px; }
  .wordmark-text { font-size: 25px; }
  .wordmark-sun { width: 38px; height: 38px; }
  .tab-cards { grid-template-columns: 1fr; }
  .kind-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-chip { font-size: 14.5px; padding: 8px 12px; }
  .chip-chuckle { inset-inline-start: -2%; }
  .hero-visual { min-height: 470px; }
  .phone-stack { height: 470px; }
  .phone-stack .phone { width: 220px; }
  .devices { height: 330px; }
  .phone-small { width: 150px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .final-inner { border-radius: 32px; }
  .btn-big { font-size: 17px; padding: 0.9em 1.4em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal-up { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-row .marquee-track > [aria-hidden="true"] { display: none; }
}

/* Busy buttons: a soft pulse instead of a spinner, so waiting still feels friendly. */
.btn.is-busy { cursor: progress; animation: busy-pulse 1s ease-in-out infinite; }
@keyframes busy-pulse { 0%, 100% { opacity: 0.65; } 50% { opacity: 0.95; } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy { animation: none; } }
.site-main { min-height: 60vh; }
.page-cta { margin: 28px 0 8px; }

/* ---------- Layout safety ----------
   Grid items may shrink below their content (the round week dots once inflated a column), sections
   contain their absolute decorations, and nothing can widen the page sideways, in LTR or RTL. */
html { overflow-x: clip; }
.hero, .topics, .streak, .everywhere, .page-hero, .site-footer, .languages, .final { position: relative; }
.hero-grid > *, .how-grid > *, .streak-grid > *, .everywhere-grid > *, .faq-wrap > *, .today-grid > *,
.auth-shell > *, .dash-grid > *, .dash-col > *, .page-layout > *, .footer-grid > *, .lang-grid > *, .tab-cards > *, .kind-grid > * { min-width: 0; }
.week li { min-width: 0; width: 100%; }
img, svg, video { max-width: 100%; }
.rays-burst svg, .sun-mark { max-width: none; }
