/* Calqo – product theme. Loaded only on Calqo pages (front matter: brand: calqo, css: calqo.css).
   To add another app: copy this file, change the tokens below and the page-specific blocks. */

@font-face { font-family: "Sora"; src: url("../fonts/Sora_300Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/Sora_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root[data-brand="calqo"], :root[data-brand="calqo"][data-theme] {
  color-scheme: dark;
  --paper: #062A20;
  --ink: #EAF6F0;
  --ink-soft: #A9C7BA;
  --accent: #5EF2B0;
  --accent-hover: #8FF7C8;
  --on-accent: #062A20;
  --surface: #0B3D2E;
  --sand: #0F4A38;
  --clay: #12382C;
  --line: #1E5A47;
  --gold: #F5C451;
  --font-display: "Sora", var(--font-text);
}
[data-brand="calqo"] h1, [data-brand="calqo"] h2 { font-weight: 300; letter-spacing: -0.035em; line-height: 1.08; }
[data-brand="calqo"] .eyebrow { font-family: var(--font-text); font-weight: 600; font-size: 12px; letter-spacing: .14em; }
[data-brand="calqo"] .section + .section { border-top: 1px solid var(--line); }
[data-brand="calqo"] .section h2 { max-width: 22ch; }
[data-brand="calqo"] h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
[data-brand="calqo"] body { background: radial-gradient(900px 600px at 85% -10%, rgba(94,242,176,.16), transparent 60%), radial-gradient(700px 500px at -10% 30%, rgba(94,242,176,.08), transparent 60%), var(--paper); background-attachment: scroll; }
[data-brand="calqo"] .section h2 { font-size: clamp(34px, 5vw, 58px); }
[data-brand="calqo"] .page h1 { font-size: clamp(38px, 6vw, 68px); }
[data-brand="calqo"] .prose h2 { font-size: 26px; font-weight: 400; }
[data-brand="calqo"] .faq summary { font-family: "Sora", var(--font-text); font-weight: 400; }

/* hero */
.c-hero { display: grid; gap: 40px; padding-block: var(--space-8); align-items: center; }
.c-brand { display: inline-flex; align-items: center; gap: 12px; font: 600 26px/1 "Sora", var(--font-text); letter-spacing: -0.02em; }
.c-brand img { width: 44px; height: 44px; border-radius: 12px; }
.c-hero h1 { font-size: clamp(44px, 8vw, 96px); margin: 26px 0 22px; }
.c-hero h1 em { font-style: normal; color: var(--accent); }
.c-hero .lead { margin-bottom: 30px; }
.soon-pill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 15px/1 var(--font-text); }
.soon-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 900px) { .c-hero { grid-template-columns: 1.25fr 1fr; padding-block: var(--space-9); } }

/* phone preview built in CSS (illustrative, replace with real screenshots later) */
.phone-wrap { justify-self: center; text-align: center; }
.phone { width: min(290px, 78vw); aspect-ratio: 9 / 18.6; border-radius: 42px; padding: 12px; background: #021712; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(94,242,176,.08) inset; transform: rotate(2.5deg); transition: transform .8s var(--ease); margin: 0 auto; }
.phone:hover { transform: rotate(0deg) translateY(-6px); }
.screen { height: 100%; border-radius: 31px; background: linear-gradient(180deg, #0B3D2E, #062A20 55%); padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 10px; text-align: left; font: 500 11px/1.3 var(--font-text); overflow: hidden; }
.screen .row { display: flex; justify-content: space-between; align-items: center; }
.screen .lvl { font: 300 26px/1 "Sora", sans-serif; letter-spacing: -0.03em; }
.screen .chip { padding: 5px 9px; border-radius: 999px; background: rgba(245,196,81,.14); color: var(--gold); font-weight: 600; }
.xp { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.xp i { display: block; height: 100%; width: 64%; border-radius: 3px; background: var(--accent); transform-origin: left; animation: fillbar 1.6s var(--ease) .4s both; }
@keyframes fillbar { from { transform: scaleX(0); } }
.daily { border-radius: 16px; padding: 12px; background: var(--accent); color: var(--on-accent); }
.daily b { display: block; font: 600 15px/1.2 "Sora", sans-serif; margin-top: 3px; }
.mini-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.mini-bento div { border-radius: 14px; padding: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; justify-content: flex-end; font-weight: 600; }
.mini-bento div:first-child { grid-row: span 2; background: linear-gradient(160deg, rgba(94,242,176,.3), rgba(94,242,176,.06)); }
.mini-bento span { color: var(--ink-soft); font-weight: 500; font-size: 10px; }
.tabbar { display: flex; justify-content: space-around; padding: 9px; border-radius: 999px; background: rgba(255,255,255,.07); }
.tabbar i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.22); }
.tabbar i:first-child { background: var(--accent); }
.caption { font-size: 12.5px; color: var(--ink-soft); margin-top: 18px; }

/* audience */
.trio { display: grid; gap: 14px; margin-top: var(--space-6); }
@media (min-width: 820px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.tile h3 { font-size: 21px; margin-bottom: 8px; }
.tile p { color: var(--ink-soft); font-size: 16px; }

/* bento */
.bento { display: grid; gap: 14px; margin-top: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 820px) { .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(210px, auto); } .bento .b1 { grid-column: span 2; } .bento .b4 { grid-column: span 2; } }
.bento button { all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; border-radius: 22px; padding: 24px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: transform .4s var(--ease), border-color .3s; isolation: isolate; }
.bento button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--mx, 80%) var(--my, 0%), rgba(94,242,176,.2), transparent 60%); opacity: 0; transition: opacity .4s; }
.bento button:hover { transform: translateY(-3px); border-color: var(--accent); }
.bento button:hover::after { opacity: 1; }
.bento button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bento .b1 { background: linear-gradient(150deg, #14614A, #0B3D2E 70%); }
.bento .tag { align-self: flex-start; font: 600 11px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.bento .b1 .tag { color: var(--gold); border-color: rgba(245,196,81,.4); }
.bento h3 { font-size: 25px; margin-bottom: 6px; }
.bento p { color: var(--ink-soft); font-size: 15.5px; max-width: 40ch; }
.bento .hint { font: 600 13px/1 var(--font-text); color: var(--accent); margin-top: 14px; display: inline-block; }
.bento .face, .bento .example { transition: opacity .35s var(--ease), transform .45s var(--ease); }
.bento .example { position: absolute; inset: 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0; transform: translateY(14px); pointer-events: none; }
.bento .example .q { font: 300 clamp(19px, 2.4vw, 24px)/1.3 "Sora", sans-serif; color: var(--ink); max-width: none; }
.bento .example .a { font: 600 clamp(26px, 4vw, 38px)/1 "Sora", sans-serif; color: var(--accent); }
.bento button[aria-pressed="true"] .face { opacity: 0; transform: translateY(-14px); }
.bento button[aria-pressed="true"] .example { opacity: 1; transform: none; }

/* gamification */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks b { font-weight: 600; }
.checks .planned { color: var(--ink-soft); }
.checks .planned::before { border-color: var(--gold); }
.duel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.duel .head { display: flex; justify-content: space-between; font: 600 12px/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.duel .head span:last-child { color: var(--gold); }
.duel .p { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 600; }
.duel .track { height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.duel .track i { display: block; height: 100%; border-radius: 6px; background: var(--accent); width: var(--w); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.duel .p + .p .track i { background: #7FA898; }
.duel.in .track i { transform: none; }
.duel .n { text-align: right; font: 600 18px/1 "Sora", sans-serif; font-variant-numeric: tabular-nums; }
.duel .foot { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* consulting band */
.band { background: var(--surface); border-top: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
.band + .section { border-top: 0; }
.steps { display: grid; gap: 12px; }
.steps div { display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.steps b { font: 600 15px/1 "Sora", sans-serif; color: var(--gold); min-width: 4.5ch; }

/* mini game */
.game { max-width: 560px; margin: var(--space-6) auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 80px -40px rgba(0,0,0,.6); }
.game .meta { display: flex; justify-content: space-between; font: 600 13px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.game .timebar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.09); margin: 14px 0 26px; overflow: hidden; }
.game .timebar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.game .problem { font: 300 clamp(40px, 9vw, 64px)/1.1 "Sora", sans-serif; letter-spacing: -0.03em; min-height: 1.2em; font-variant-numeric: tabular-nums; }
.game .problem.pop { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.game input { width: 100%; margin: 22px 0 14px; padding: 16px; text-align: center; font: 600 28px/1 "Sora", sans-serif; color: var(--ink); background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 16px; font-variant-numeric: tabular-nums; }
.game input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.game input.ok { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(94,242,176,.18); }
.game .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.game .result { font: 300 clamp(26px, 5vw, 36px)/1.25 "Sora", sans-serif; letter-spacing: -0.02em; margin: 6px 0 22px; }
.game .result b { font-weight: 600; color: var(--accent); }
.game .small { font-size: 13.5px; color: var(--ink-soft); margin-top: 16px; }
.game [hidden] { display: none !important; }
