html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { overflow-x: hidden; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
svg use { pointer-events: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; text-decoration: none;
  color: var(--paper); background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(0,0,0,.2);
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { background: #262a33; }
.btn:active { transform: scale(.97); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.ghost { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--faint); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(248,247,243,.84); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: background .2s; }
.nav-links a:hover { background: rgba(18,20,26,.05); }
@media (max-width: 720px) { .nav-links { display: none; } }


/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.tint { background: #f2f0ea; }
.head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.head h2 { margin: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.head p { margin: 18px auto 0; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* Hero */
.hero { padding: 48px 0 24px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 7px 14px; font-size: 13.5px; color: var(--ink-2); background: var(--card); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa564; box-shadow: 0 0 0 0 rgba(47,165,100,.5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,165,100,.5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(47,165,100,0); } }
.hero-title { margin: 0 auto; font-size: clamp(42px, 8vw, 104px); line-height: .98; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.hero-title em { color: var(--accent); }
.hero-sub { max-width: 580px; margin: 26px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.stage { position: relative; max-width: 1100px; margin-top: 64px; padding-bottom: 40px; }
.glow { position: absolute; inset: 10% 6% 0; z-index: -1; border-radius: 40px; background: radial-gradient(55% 60% at 50% 40%, rgba(255,90,44,.2), transparent 70%), radial-gradient(40% 50% at 15% 70%, rgba(90,75,176,.15), transparent 70%), radial-gradient(40% 50% at 85% 70%, rgba(47,107,74,.14), transparent 70%); filter: blur(30px); }

.laptop { width: 86%; }
.laptop-screen { aspect-ratio: 16 / 10; padding: 1.2%; overflow: hidden; background: #1a1c22; border-radius: 16px 16px 4px 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.4), var(--shadow-lg); }
.laptop-screen > .app-host { border-radius: 6px; }
.laptop-base { height: 14px; margin: 0 -5%; background: linear-gradient(#d9d6cf, #b9b5ad); border-radius: 0 0 14px 14px; position: relative; box-shadow: 0 18px 30px -12px rgba(18,20,26,.35); }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 5px; transform: translateX(-50%); background: #a8a49c; border-radius: 0 0 8px 8px; }

.phone { position: absolute; right: 0; bottom: 0; width: 24%; max-width: 250px; aspect-ratio: 9 / 19.5; padding: 7px; background: #15171c; border-radius: 38px; box-shadow: inset 0 0 0 1px #3a3d46, 0 0 0 1px rgba(0,0,0,.35), var(--shadow-lg); }
.phone-screen { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; position: relative; background: var(--paper); }
.phone-screen > .app-host { height: 100%; }

.promises { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 8px auto 0; padding: 0 24px; list-style: none; }
.promises li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.promises svg { width: 18px; height: 18px; padding: 2px; color: #fff; background: #2fa564; border-radius: 50%; }
@media (max-width: 760px) {
  .wrap.stage { margin-top: 24px; padding: 40px 16px 28px; }
  .laptop { width: 84%; }
  .laptop-screen { border-radius: 9px 9px 3px 3px; }
  .laptop-screen > .app-host { border-radius: 3px; }
  .laptop-base { height: 8px; border-radius: 0 0 8px 8px; }
  .laptop-base::before { height: 3px; }
  .phone { right: 12px; width: 25%; padding: 4px; border-radius: 20px; }
  .phone-screen { border-radius: 16px; }
  .promises { flex-direction: column; align-items: flex-start; width: max-content; max-width: 100%; }
}

/* Fit: render at a design width and scale to the parent */
[data-fit] { transform-origin: 0 0; }

/* ——— Campus app: rèplica de l'inici de /campus (container queries) ——— */
.app-host { container-type: inline-size; width: 100%; height: 100%; overflow: hidden; background: var(--paper); position: relative; text-align: left; }
.app { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr); height: 100%; font-size: 13px; color: var(--ink); }
.app svg { width: 17px; height: 17px; flex: none; }
.app-side { display: flex; flex-direction: column; padding: 16px 10px; background: #fbfaf7; border-right: 1px solid var(--line); }
.as-brand { display: flex; align-items: center; gap: 9px; padding: 0 6px 14px; font-size: 14px; font-weight: 600; }
.key.xs { min-width: 34px; height: 27px; font-size: 11px; border-radius: 7px; }
.app-side small { margin: 12px 8px 6px; color: var(--faint); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.app-side nav { display: grid; gap: 2px; }
.app-side a { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 9px; color: var(--mute); font-size: 13px; }
.app-side a.on { color: var(--ink); font-weight: 600; background: var(--card); box-shadow: var(--shadow-sm); }
.app-side a.on svg { color: var(--accent); }
.as-out { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; }
.as-out svg { width: 15px; height: 15px; }
.app-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.app-top { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 24px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: 12px; }
.app-logo { display: none; }
.app-live { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.app-live i { width: 7px; height: 7px; border-radius: 50%; background: #2fa564; }
.app-live b { font-weight: 400; }
.app-exit { width: 16px !important; height: 16px !important; }
.app-body { display: flex; flex-direction: column; padding: 26px 24px; min-width: 0; }
.app-date { color: var(--mute); font-size: 12px; }
.app-hello { margin: 6px 0 18px; font-size: 34px; font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.app-focus { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 12px; }
.ac-class, .ac-task { display: flex; flex-direction: column; min-width: 0; min-height: 228px; padding: 20px 22px; border-radius: 16px; }
.ac-class, .fx-class { background: #26372f; color: #f7f5ee; }
.ac-task { border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
.ac-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; }
.ac-class .ac-top, .fx-class .ac-top { color: #d7e6d9; }
.ac-ic { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #668071; border-radius: 9px; }
.ac-ic svg { width: 15px; height: 15px; }
.ac-when { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.ac-when b { font: italic 400 40px/.95 var(--serif); letter-spacing: -.04em; }
.ac-when span { color: #d3ded5; font-size: 11px; }
.ac-name { margin: 8px 0 16px; font: italic 400 28px/1.1 var(--serif); }
.ac-foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #526c5b; font-size: 13px; font-weight: 600; }
.ac-foot small { margin-right: 8px; color: #bbcfc0; font-size: 10.5px; font-weight: 400; }
.ac-link { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; }
.ac-link svg, .ac-all svg, .at-foot svg { width: 12px; height: 12px; }
.ac-task .ac-top { color: var(--ink-2); }
.ac-all { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); font-size: 11px; font-weight: 500; }
.at-course { margin-top: 20px; color: var(--mute); font-size: 11.5px; font-weight: 550; }
.at-name { margin: 6px 0 8px; font-size: 21px; font-weight: 550; letter-spacing: -.035em; line-height: 1.2; }
.at-date { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font: 600 11px var(--mono); }
.at-date svg { width: 13px; height: 13px; }
.at-foot { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; }
.app-short { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.app-short span { display: flex; align-items: center; gap: 9px; min-width: 0; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); font-size: 12px; font-weight: 600; white-space: nowrap; }
.app-short svg { width: 15px; height: 15px; }
.app-tabs { display: none; }
.app-status { display: none; }
/* Dins d'un marc de mòbil: barra d'estat i indicador d'inici, perquè res toqui les cantonades */
.phone .app-status, .play-frame.is-phone .app-status { display: flex; flex: none; align-items: center; justify-content: space-between; height: 46px; padding: 6px 30px 0 34px; font-size: 15px; letter-spacing: -.01em; }
.app-status span { display: flex; align-items: center; gap: 6px; }
.app-status svg { width: 17px !important; height: 12px !important; }
.app-status i { width: 25px; height: 12px; border-radius: 4px; background: var(--ink); box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px rgba(18,20,26,.35); }
.phone .app-top, .play-frame.is-phone .app-top { border-bottom: 0; }
.phone .app-body, .play-frame.is-phone .app-body { padding-bottom: 120px; }
.phone .app-tabs, .play-frame.is-phone .app-tabs { padding-bottom: 30px; }
.phone .app-tabs::after, .play-frame.is-phone .app-tabs::after { content: ""; position: absolute; left: 50%; bottom: 9px; width: 128px; height: 5px; border-radius: 3px; background: var(--ink); transform: translateX(-50%); }

@container (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .app-top { padding: 0 18px; }
  .app-logo { display: inline-grid; }
  .app-body { padding: 22px 18px 96px; }
  .app-short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-short .in-nav { display: none; }
  .app-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 6px 14px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); }
  .app-tabs span { display: grid; justify-items: center; gap: 3px; padding: 6px 0; color: var(--mute); font-size: 10px; font-weight: 550; white-space: nowrap; }
  .app-tabs span.on { color: var(--ink); }
  .app-tabs span.on svg { color: var(--accent); }
  .app-tabs svg { width: 20px; height: 20px; }
}
@container (max-width: 640px) {
  .app-focus { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ac-class, .ac-task { min-height: 0; padding: 18px; }
  .ac-when { display: block; margin-top: 14px; }
  .ac-when b { display: block; font-size: 38px; }
  .ac-when span { display: block; margin-top: 6px; }
  .ac-name { margin: 12px 0 16px; font-size: 26px; }
  .app-hello { font-size: 30px; }
  .app-live b { display: none; }
  .at-course { margin-top: 16px; }
  .at-name { font-size: 19px; }
  .at-foot { margin-top: 16px; }
  .app-short span { flex-direction: column; justify-content: center; gap: 4px; height: 58px; font-size: 10.5px; }
}

/* ——— Funcions ——— */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat { display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 26px; background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-sm); }
.feat-vis { display: grid; place-items: center; height: 284px; margin-bottom: 22px; padding: 22px; overflow: hidden; border-radius: 16px; background: var(--paper); background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0); background-size: 18px 18px; }
.feat-vis > * { width: 100%; max-width: 380px; }
.feat h3 { margin: 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.feat p { margin: 8px 12px 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.fx-class { display: flex; flex-direction: column; min-height: 196px; padding: 20px 22px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.fx-class .ac-name { font-size: 26px; }
.fx-week { overflow: hidden; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.fw-head { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.fw-head span { display: grid; justify-items: center; gap: 2px; padding: 8px 0; color: var(--mute); font: 600 10px var(--mono); text-transform: uppercase; }
.fw-head b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--ink-2); font: 600 13px var(--sans); }
.fw-head .today b { color: #fff; background: var(--accent); }
.fw-body { --row: 26px; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: var(--row); height: calc(var(--row) * 6); background: repeating-linear-gradient(to bottom, var(--line-2) 0 1px, transparent 1px var(--row)), linear-gradient(90deg, transparent calc(20% - 1px), var(--line-2) 0 20%, transparent 0 calc(40% - 1px), var(--line-2) 0 40%, transparent 0 calc(60% - 1px), var(--line-2) 0 60%, transparent 0 calc(80% - 1px), var(--line-2) 0 80%, transparent 0); }
.fw-body i, .mw-grid i { grid-column: var(--c); grid-row: var(--r) / span var(--h); display: grid; align-content: start; gap: 1px; margin: 2px; padding: 4px 6px; overflow: hidden; border-left: 3px solid var(--ev); border-radius: 6px; background: var(--ev-bg); color: var(--ev); font: normal 600 10.5px/1.25 var(--sans); }
.fw-body small { font: 500 9.5px var(--mono); opacity: .85; }
.fw-body i.task small { display: none; }
.t0 { --ev: #2c5d47; --ev-bg: #deeae4; } .t1 { --ev: #914d27; --ev-bg: #f6e8da; } .t2 { --ev: #58537e; --ev-bg: #e5e3ef; } .t3 { --ev: #356078; --ev-bg: #e0e9f1; } .task { --ev: #8a6a12; --ev-bg: #f6edcc; }
.fw-now { position: absolute; left: 60%; width: 20%; top: calc(var(--row) * var(--r)); height: 2px; background: var(--accent); }
.fw-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fx-courses { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.fx-courses small { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; font-weight: 600; }
.fx-courses small b { color: var(--faint); font: 500 11px var(--mono); }
.fx-courses small + .fc ~ small { margin-top: 6px; }
.fc { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 11px; }
.fc i { height: 30px; border-radius: 8px; }
.fc span { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc em { display: block; height: 4px; border-radius: 99px; background: var(--line-2); }
.fc u { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--accent); }
.fc b { font: 500 11px var(--mono); color: var(--mute); }
.tone-0 { background: #deeae4; } .tone-1 { background: #f6e8da; } .tone-2 { background: #e5e3ef; }
.fx-chapter { overflow: hidden; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.fch-head { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line-2); }
.fch-head span { color: var(--faint); font: 500 11px var(--mono); }
.fch-head strong { font-size: 14px; }
.fch-head em { display: grid; place-items: center; min-width: 24px; height: 20px; border-radius: 99px; background: var(--line-2); color: var(--mute); font: normal 600 10.5px var(--mono); }
.fch-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 14px; font-size: 12.5px; }
.fch-row + .fch-row { border-top: 1px solid var(--line-2); }
.fch-row i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--line-2); color: var(--mute); }
.fch-row i svg { width: 15px; height: 15px; }
.fch-row.task i { background: var(--accent-soft); color: var(--accent-ink); }
.fch-row span { display: grid; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fch-row span small { color: var(--accent-ink); font: 600 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.fch-row b { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.fch-row b svg { width: 11px; height: 11px; }
@media (max-width: 860px) { .feats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .feat-vis { height: auto; min-height: 230px; padding: 16px; } .feat h3 { font-size: 19px; } .feat p { font-size: 15px; } .feat { padding: 10px 10px 22px; } }

/* Playground */
.play { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); overflow: hidden; }
.play-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.seg { display: inline-flex; padding: 3px; background: var(--line-2); border-radius: 999px; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--mute); background: transparent; transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { color: var(--ink); background: var(--card); box-shadow: var(--shadow-sm); }
.readout { font: 500 13px var(--mono); color: var(--mute); }
.play-stage { position: relative; padding: 24px; overflow: hidden; background: repeating-linear-gradient(45deg, #f4f2ec 0 10px, #f8f7f3 10px 20px); }
.play-frame { position: absolute; top: 24px; left: 50%; width: 1280px; height: 600px; transform-origin: top center; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.play-frame.anim { transition: width .6s var(--ease), height .6s var(--ease), transform .6s var(--ease), border-radius .6s var(--ease); }
.play-frame.is-phone { border-radius: 46px; box-shadow: 0 0 0 10px #15171c, 0 0 0 11px #3a3d46, var(--shadow-lg); }
.play-frame.is-phone > .app-host { border-radius: 46px; }
.play-frame > .app-host { border-radius: 14px; }
.grip { position: absolute; top: 50%; right: calc(-22px * var(--inv, 1)); z-index: 6; display: grid; place-items: center; width: 28px; height: 64px; transform: translate(50%, -50%) scale(var(--inv, 1)); background: var(--card); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), var(--shadow); cursor: ew-resize; touch-action: none; }
.grip span { width: 4px; height: 24px; border-inline: 1.5px solid var(--faint); }
.grip:hover, .grip.drag { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
@media (max-width: 640px) {
  .play-bar { flex-wrap: wrap; justify-content: center; }
  .play-stage { padding: 16px; }
  .play-frame { top: 16px; }
  .seg button { padding: 0 12px; font-size: 13px; }
}

/* CTA */
.cta-note { margin: 24px 0 0; text-align: center; font-size: 13.5px; color: var(--mute); }
.cta-note a { color: var(--ink-2); }

.foot { padding: 22px 16px; border-top: 1px solid var(--line); text-align: center; }
.foot p { margin: 0; font-size: 12px; color: var(--faint); }
.foot a { color: var(--faint); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; transition: color .2s; }
.foot a:hover { color: var(--ink-2); }

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .btn.lg { height: 48px; padding: 0 20px; font-size: 15px; }
  .head { margin-bottom: 32px; }
  .head p { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none !important; }
}

/* ——— Tutorial ——— */
.tut-hero { padding: 56px 0 8px; text-align: center; }
.tut-hero h1 { margin: 0 auto; max-width: 14ch; font-size: clamp(38px, 6.4vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.tut-hero h1 em { color: var(--accent); }
.tut-hero > .wrap > p:not(.kicker) { max-width: 560px; margin: 20px auto 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.tut-progress { position: fixed; left: 0; right: 0; top: 64px; z-index: 49; height: 2px; background: transparent; }
.tut-progress i { display: block; width: 0; height: 100%; background: var(--accent); }
.tut-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
.tut-index { position: sticky; top: 96px; align-self: start; }
.tut-index ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.tut-index li { counter-increment: s; }
.tut-index a { display: flex; gap: 10px; padding: 7px 10px; font-size: 14px; color: var(--mute); text-decoration: none; border-radius: 8px; transition: background .2s, color .2s; }
.tut-index a::before { content: counter(s); width: 16px; font: 500 12px/20px var(--mono); color: var(--faint); }
.tut-index a:hover { color: var(--ink); background: rgba(18,20,26,.04); }
.tut-index a[aria-current] { color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.tut-index a[aria-current]::before { color: var(--accent-ink); }
.tut-steps { display: grid; gap: 20px; min-width: 0; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 32px; background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-sm); scroll-margin-top: 88px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; font: 600 14px var(--mono); color: var(--paper); background: var(--ink); border-radius: 10px; box-shadow: inset 0 -3px 0 rgba(255,255,255,.12), 0 2px 0 #000; }
.step h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.step-tx p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.step-tx p.tip { padding: 10px 14px; font-size: 14.5px; color: var(--ink-2); background: var(--paper); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; }
.facts { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.facts svg { flex: none; width: 20px; height: 20px; padding: 2px; color: #fff; background: #2fa564; border-radius: 50%; }
.mini-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: m; }
.mini-list[hidden] { display: none; }
.mini-list li { counter-increment: m; position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.mini-list li::before { content: counter(m); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; font: 600 12px var(--mono); color: var(--accent-ink); background: var(--accent-soft); border-radius: 6px; }
.inl { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
.tab-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.tab-legend span { display: grid; gap: 1px; padding: 10px 12px; font-size: 13px; color: var(--mute); background: var(--paper); border-radius: 10px; }
.tab-legend b { font-size: 14px; font-weight: 600; color: var(--ink); }
.os-switch { margin-top: 16px; }
.step-vis { display: grid; place-items: center; min-height: 300px; padding: 28px; background: var(--paper); border-radius: 18px; background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0); background-size: 18px 18px; }

/* Mocks */
.step-vis > * { min-width: 0; }
.m-card { width: 100%; max-width: 360px; padding: 18px; background: var(--card); border-radius: 16px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); font-size: 13px; }
.m-eyebrow { display: block; margin-bottom: 8px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.m-h { display: block; margin-bottom: 14px; font-size: 20px; letter-spacing: -.02em; }
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; font-size: 14px; font-weight: 500; color: var(--paper); background: var(--ink); border-radius: 999px; }
.m-btn.full { width: 100%; margin-top: 6px; border-radius: 10px; }
.m-btn.ghost { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,44,.45); } 60% { box-shadow: 0 0 0 10px rgba(255,90,44,0); } }
.m-btn.ghost.pulse { animation-name: pulseG; }
@keyframes pulseG { 0%, 100% { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 0 rgba(255,90,44,.45); } 60% { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 10px rgba(255,90,44,0); } }
.m-browser { width: 100%; max-width: 380px; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.m-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: #fbfaf8; border-bottom: 1px solid var(--line-2); }
.m-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.m-bar span { display: flex; align-items: center; gap: 6px; margin-left: 10px; padding: 4px 12px; font: 12px var(--mono); color: var(--ink-2); background: var(--line-2); border-radius: 6px; }
.m-center { display: grid; place-items: center; gap: 22px; padding: 44px 20px; }
.m-login label { display: grid; gap: 6px; margin-bottom: 12px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.m-input { display: block; height: 40px; padding: 0 12px; font: 14px/40px var(--sans); color: var(--ink); background: var(--card); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.m-input.typed { box-shadow: inset 0 0 0 1.5px var(--accent); }
.m-input.typed::after { content: ""; display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.m-input.dots { letter-spacing: .15em; color: var(--mute); }
.m-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.m-live { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--mute); }
.m-live i { width: 7px; height: 7px; border-radius: 50%; background: #2fa564; animation: ping 2s infinite; }
.m-live.big { gap: 12px; padding: 12px; margin-bottom: 14px; background: var(--paper); border-radius: 12px; }
.m-live.big span { display: grid; gap: 2px; }
.m-live.big strong { font-size: 13.5px; color: var(--ink); }
.m-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 6px; font-size: 13.5px; }
.m-link { font-size: 12px; color: var(--accent-ink); }
.m-count { font-size: 12px; color: var(--mute); }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.m-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row .pill { font-style: normal; font-family: var(--sans); }
.m-crs { display: grid; grid-template-columns: 1fr 90px; align-items: center; gap: 12px; padding: 7px 0; }
.m-tabs { display: flex; gap: 4px; margin: 0 -18px 8px; padding: 0 18px 10px; overflow: hidden; border-bottom: 1px solid var(--line-2); mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.m-tabs span { flex: none; padding: 6px 10px; font-size: 12px; font-weight: 500; color: var(--mute); border-radius: 999px; transition: background .3s, color .3s; }
.m-tabs span.on { color: var(--paper); background: var(--ink); }
.m-task { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.m-task div { display: grid; gap: 2px; min-width: 0; }
.m-task strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-task small { font-size: 11.5px; color: var(--mute); }
.m-src { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; font-size: 11.5px; font-weight: 500; color: var(--ink); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.m-nav { display: grid; place-items: center; width: 26px; height: 26px; font-size: 16px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-grid small { padding: 4px 0; font: 500 10.5px var(--mono); color: var(--faint); }
.cal-grid span { display: grid; place-items: center; aspect-ratio: 1; font-size: 12px; border-radius: 8px; }
.cal-grid .today { color: #fff; background: var(--accent); font-weight: 600; }
.ev-c { background: var(--sky); color: var(--sky-ink); }
.ev-d { background: var(--butter); color: var(--butter-ink); }
.ev-e { background: var(--rose); color: var(--rose-ink); }
.cal-key { display: flex; gap: 14px; margin-top: 12px; font-size: 11.5px; color: var(--mute); }
.cal-key span { display: flex; align-items: center; gap: 6px; }
.cal-key i { width: 10px; height: 10px; border-radius: 3px; }
.m-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 420px; }
.m-trio .m-card { display: grid; justify-items: start; align-content: start; gap: 8px; padding: 14px; }
.m-big { font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.m-sub { font-size: 11px; color: var(--mute); }
.ring { --p: 70; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line-2) 0); }
.ring::before { content: ""; grid-area: 1 / 1; width: 50px; height: 50px; border-radius: 50%; background: var(--card); }
.ring b { grid-area: 1 / 1; font-size: 13px; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #7cc59b; }
.dots i.n { background: #e4a395; }
.m-phone { position: relative; width: 200px; height: 300px; padding: 30px 18px; background: linear-gradient(160deg, #ffcfbe, #c9c0f0 60%, #bfe0cc); border-radius: 30px; box-shadow: 0 0 0 7px #1a1c22, var(--shadow-lg); }
.m-home { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.m-home .ic { aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.55); }
.m-home .ic.esc { display: grid; place-items: center; background: var(--paper); box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.m-home .ic.esc .key { min-width: 0; height: 18px; padding: 0 4px; font-size: 8.5px; border-radius: 5px; }
.ic-wrap { display: grid; gap: 4px; justify-items: center; }
.ic-wrap .ic { width: 100%; }
.ic-wrap small { font-size: 10px; font-weight: 500; color: var(--ink); }
.m-out { display: grid; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-sm); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--mute); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

@media (max-width: 1060px) {
  .tut-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tut-index { display: none; }
}
@media (max-width: 820px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px; }
  .step-vis { min-height: 0; padding: 20px 14px; order: 2; }
}
@media (max-width: 480px) {
  .step { padding: 18px; border-radius: 18px; }
  .tab-legend { grid-template-columns: 1fr; }
  .m-trio { grid-template-columns: 1fr 1fr; }
  .m-trio .m-card:last-child { grid-column: span 2; }
  .tut-hero > .wrap > p:not(.kicker) { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { .pulse, .m-live i, .m-input.typed::after { animation: none !important; } }

/* ——— Com funciona ——— */
.flow { display: grid; grid-template-columns: 1fr minmax(40px, 120px) 1fr minmax(40px, 120px) 1fr; align-items: center; max-width: 860px; margin: 0 auto; }
.node { display: grid; justify-items: center; gap: 6px; padding: 22px 12px; text-align: center; background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-sm); }
.node.main { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.node strong { margin-top: 6px; font-size: 16px; letter-spacing: -.01em; }
.node small { font-size: 13px; color: var(--mute); }
.node-ic { display: grid; place-items: center; width: 40px; height: 32px; border-radius: 8px; font: 600 12px var(--mono); }
.node-ic.cl { color: #0a7f8c; background: #d6f3f6; }
.node-ic.you { color: var(--accent-ink); background: var(--accent-soft); }
.wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: flow 2.2s var(--ease) infinite; }
.wire + .node + .wire i { animation-delay: 1.1s; }
@keyframes flow { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 40px auto 0; padding: 0; list-style: none; }
.how li { display: grid; gap: 6px; padding: 22px; background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-sm); }
.how b { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 6px; font: 600 13px var(--mono); color: var(--paper); background: var(--ink); border-radius: 9px; }
.how strong { font-size: 17px; letter-spacing: -.015em; }
.how span { font-size: 15px; line-height: 1.5; color: var(--mute); }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.trust svg { width: 18px; height: 18px; padding: 2px; color: #fff; background: #2fa564; border-radius: 50%; }
.how-more { margin: 24px 0 0; text-align: center; }
.how-more a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--accent-ink); text-decoration: none; }
.how-more a:hover { text-decoration: underline; }
.cta-note a { color: var(--ink-2); }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; justify-items: center; }
  .node { width: 100%; max-width: 300px; grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 14px; padding: 14px 16px; }
  .node > :first-child { grid-row: span 2; }
  .node strong { margin-top: 0; }
  .wire { width: 2px; height: 34px; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 10px); }
  .wire i { left: -3px; animation-name: flowV; }
  .how { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .how li { grid-template-columns: auto 1fr; column-gap: 14px; padding: 16px; }
  .how b { grid-row: span 2; margin: 0; }
  .trust { flex-direction: column; align-items: flex-start; width: max-content; max-width: 100%; margin-inline: auto; }
}
@keyframes flowV { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wire i { animation: none; left: 50%; } }

/* Tutorial: mocks fidels al campus */
.m-n { display: grid; place-items: center; min-width: 24px; height: 20px; border-radius: 99px; background: var(--line-2); color: var(--mute); font: normal 600 10.5px var(--mono); }
.m-home-mock { display: grid; gap: 10px; width: 100%; max-width: 340px; }
.mh-class { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: #26372f; color: #f7f5ee; box-shadow: var(--shadow-lg); }
.mh-class small { color: #d7e6d9; font-size: 12px; font-weight: 600; }
.mh-class div { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.mh-class div b { font: italic 400 36px/.95 var(--serif); }
.mh-class div span { color: #d3ded5; font-size: 11px; }
.mh-class strong { font: italic 400 24px/1.1 var(--serif); }
.mh-class p { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid #526c5b; font-size: 13px; font-weight: 600; }
.mh-class p span { margin-right: 8px; color: #bbcfc0; font-size: 11px; font-weight: 400; }
.mh-task { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.mh-task small { margin-bottom: 6px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.mh-task span { color: var(--mute); font-size: 11.5px; }
.mh-task strong { font-size: 17px; letter-spacing: -.02em; }
.mh-task em { color: var(--accent-ink); font: normal 600 11px var(--mono); }
.m-week { padding: 14px; }
.mw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13.5px; }
.mw-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--line-2); }
.mw-seg i { padding: 4px 9px; border-radius: 6px; color: var(--mute); font: normal 550 11px var(--sans); }
.mw-seg i.on { color: var(--ink); background: var(--card); box-shadow: var(--shadow-sm); }
.mw-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(6, 22px); column-gap: 3px; }
.mw-grid > span { display: grid; justify-items: center; gap: 2px; padding-bottom: 6px; color: var(--mute); font: 600 9.5px var(--mono); text-transform: uppercase; }
.mw-grid > span b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--ink-2); font: 600 12px var(--sans); }
.mw-grid > span.today b { color: #fff; background: var(--accent); }
.mw-grid i { grid-row: calc(var(--r) + 1) / span var(--h); margin: 1px 0; padding: 3px 4px; font-size: 9.5px; }

/* Mockup top bar as in the real campus: search, notifications, messages and settings */
.app-top { justify-content: space-between; gap: 12px; height: 58px; padding: 0 22px; }
.app-search { display: flex; align-items: center; gap: 8px; width: min(320px, 46%); height: 34px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--faint); font-size: 12px; }
.app-search svg { width: 14px !important; height: 14px !important; }
.app-search span { flex: 1; }
.app-search kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; font: 500 10px var(--mono); }
.app-icons { display: flex; gap: 8px; }
.app-ic { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink-2); }
.app-ic svg { width: 16px !important; height: 16px !important; }
.app-ic b { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid var(--paper); border-radius: 99px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }
.app-ic-search { display: none; }
.at-course { display: flex; align-items: center; gap: 7px; }
.at-course::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-ink, #2a5f91); opacity: .5; }
.at-foot { justify-content: space-between; gap: 10px; color: var(--ink); }
.at-when { display: grid; gap: 4px; min-width: 0; }
.at-when i { justify-self: start; padding: 2px 8px; border-radius: 99px; background: var(--butter, #f6edcc); color: var(--butter-ink, #8a6a12); font-size: 10.5px; font-style: normal; font-weight: 600; }
.at-when small { color: var(--mute); font-size: 10.5px; font-weight: 500; }
.at-btn { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 32px; padding: 0 13px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 600; }
@container (max-width: 860px) {
  .app-top { height: 56px; padding: 0 16px; }
  .app-search { display: none; }
  .app-ic-search { display: grid; }
}

/* Feature: hand in from esc */
.fx-submit { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.fx-submit > small { color: var(--accent-ink); font: 600 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.fx-submit > strong { margin-top: -4px; font-size: 16px; letter-spacing: -.02em; }
.fs-drop { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; border: 1.5px dashed #f0b9a5; border-radius: 12px; background: #fff7f3; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.fs-drop span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.fs-drop svg { width: 15px; height: 15px; }
.fs-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 550; }
.fs-file svg { width: 16px; height: 16px; color: var(--mute); flex: none; }
.fs-file span { display: grid; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-file small { color: var(--faint); font: 500 10px var(--mono); }
.fs-ok { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: var(--sage, #e0ebe3); color: var(--sage-ink, #2f6b4a); font-size: 12px; font-weight: 600; }
.fs-ok svg { width: 15px; height: 15px; flex: none; }

/* Feature and tutorial: a conversation, WhatsApp style */
.fx-chat { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.fq-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fq-head > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.fq-head b { font-size: 13px; }
.fq-head small { overflow: hidden; color: var(--mute); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fq-av { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sky, #dceaf6); color: var(--sky-ink, #2a5f91); font-size: 11px; font-weight: 600; }
.fq-bell { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-2); }
.fq-bell svg { width: 15px; height: 15px; }
.fq-bell em { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 15px; height: 15px; border: 2px solid var(--card); border-radius: 99px; background: var(--accent); color: #fff; font: normal 700 8.5px var(--sans); }
.fq-log { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--paper); background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.4px); background-size: 18px 18px; }
.fq-day { align-self: center; margin-bottom: 4px; padding: 2px 9px; border-radius: 99px; background: var(--card); color: var(--mute); font-size: 10px; font-weight: 500; }
.fq-log p { position: relative; max-width: 82%; align-self: flex-start; margin: 0; padding: 6px 44px 6px 10px; border-radius: 4px 13px 13px 13px; background: var(--card); box-shadow: 0 1px 1px rgba(18,20,26,.08); font-size: 12px; line-height: 1.4; }
.fq-log p.me { align-self: flex-end; border-radius: 13px 4px 13px 13px; background: var(--accent-soft); box-shadow: none; }
.fq-log time { position: absolute; right: 8px; bottom: 5px; color: var(--faint); font: 500 9px var(--mono); }
.fq-box { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.fq-box span { flex: 1; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--faint); font-size: 11.5px; }
.fq-box i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.fq-box svg { width: 14px; height: 14px; }
.fx-chat.m-chat { width: 100%; max-width: 360px; }
.m-lliura { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 11.5px; font-weight: 600; }

/* Next class in the mockups: the day first, as in the campus */
.ac-day { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.ac-day i { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 99px; background: #f7f5ee; color: #26372f; font-size: 11.5px; font-style: normal; font-weight: 650; }
.ac-day span { color: #d3ded5; font-size: 11px; }
.ac-day + .ac-when { margin-top: 10px; }
.ac-when span { font-weight: 550; }
@container (max-width: 640px) { .ac-day + .ac-when { margin-top: 8px; } .ac-when { display: flex; align-items: baseline; gap: 10px; } .ac-when b { display: inline; } .ac-when span { display: inline; margin: 0; } }

/* Next class mockup, simplified like the campus */
.ac-class, .fx-class { display: flex; flex-direction: column; }
.ac-go { width: 15px !important; height: 15px !important; color: #d7e6d9; }
.ac-line { display: flex; align-items: baseline; gap: 8px; margin: auto 0 0; padding-top: 18px; font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.ac-line span { color: #bfd0c3; font-weight: 500; }
.ac-class .ac-name, .fx-class .ac-name { margin: 4px 0 0; font-size: 34px; }
.ac-meta { display: flex; gap: 6px; margin: 0; padding-top: 16px; color: #bfd0c3; font-size: 12px; }
.ac-meta b { color: #f7f5ee; font-weight: 600; }
.ac-meta i { margin-left: 8px; color: #f7f5ee; font-style: normal; font-weight: 550; }
.ac-meta i::before { content: "·"; margin-right: 8px; color: #7f9686; }
@container (max-width: 640px) { .ac-line { padding-top: 12px; font-size: 26px; } .ac-class .ac-name { font-size: 28px; } .ac-meta { padding-top: 12px; } }

/* Next class and next task, as in the campus now: a pill with the time left, course and teacher, then a row of facts */
.nc-end { display: inline-flex; align-items: center; gap: 10px; }
.nc-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 99px; background: rgba(247,245,238,.12); color: #f7f5ee; font-size: 11px; font-weight: 600; white-space: nowrap; }
.nc-pill.is-live { background: #f7f5ee; color: #26372f; }
.nc-pill i { width: 6px; height: 6px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 3px rgba(47,158,91,.22); }
.ac-class .nc-body, .fx-class .nc-body, .ac-task .nc-body { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 16px 0 18px; }
.ac-class .ac-name, .fx-class .ac-name { margin: 0; font: italic 400 32px/1.06 var(--serif); letter-spacing: -.015em; }
.fx-class .ac-name { font-size: 28px; }
.nc-sub { margin-top: 6px; color: #bfd0c3; font-size: 12px; }
.nc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding-top: 12px; border-top: 1px solid #4a6354; }
.nc-facts > div { min-width: 0; padding: 0 12px; border-left: 1px solid #4a6354; }
.nc-facts > div:first-child { padding-left: 0; border-left: 0; }
.nc-facts dt, .at-when dt { margin: 0 0 4px; color: #9fb5a6; font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.nc-facts dd { margin: 0; color: #f7f5ee; font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-facts dd small { display: block; margin-top: 2px; color: #bfd0c3; font-size: 10.5px; font-weight: 500; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
.ac-task .nc-body { gap: 6px; }
.ac-task .at-course, .ac-task .at-name { margin: 0; }
.at-foot { align-items: flex-end; margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line); }
dl.at-when { flex: 1; margin: 0; }
.at-when dt { color: var(--mute); }
.at-when dd { margin: 0; color: #8a6a12; font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.at-when dd span { opacity: .75; font-weight: 500; }
.at-when dd small { display: block; margin-top: 2px; color: var(--mute); font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
@container (max-width: 640px) {
  .ac-class .ac-name { font-size: 26px; }
  .ac-class .nc-body, .ac-task .nc-body { padding: 12px 0 14px; }
  .nc-facts > div { padding: 0 9px; }
  .nc-facts dd { font-size: 13.5px; }
}

/* Tutorial step 3 mockup, same structure */
.mh-class small { display: flex; align-items: center; justify-content: space-between; }
.mh-class small i { padding: 2px 9px; border-radius: 99px; background: rgba(247,245,238,.12); color: #f7f5ee; font-size: 10.5px; font-style: normal; }
.mh-class strong { margin-top: 8px; }
.mh-sub { color: #bfd0c3; font-size: 12px; }
.mh-class .nc-facts { margin-top: 8px; }
.mh-class .nc-facts dd { font-size: 14px; }
.mh-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.mh-task .mh-foot em { display: grid; gap: 3px; color: var(--mute); font: normal 600 9.5px var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.mh-foot em b { color: #8a6a12; font-size: 13px; letter-spacing: -.01em; text-transform: none; }

/* Materials: a download button beside "Obre" */
.fch-row { grid-template-columns: 30px minmax(0, 1fr) auto auto; }
.fch-row b.dl { width: 28px; padding: 0; justify-content: center; }

/* Feature and tutorial: today's rooms */
.fx-rooms { display: grid; gap: 7px; padding: 14px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.fx-rooms > small { color: var(--mute); font-size: 11px; font-weight: 600; }
.fx-rooms > small:not(:first-child) { margin-top: 4px; }
.fr-mine { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #26372f; color: #f7f5ee; }
.fr-mine > b { font: italic 400 30px/1 var(--serif); }
.fr-mine span { display: grid; gap: 2px; min-width: 0; }
.fr-mine strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.fr-mine small { color: #bfd0c3; font-size: 10.5px; }
.fr-live { width: 8px; height: 8px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 3px rgba(47,158,91,.25); }
.fr-chips { display: flex; gap: 5px; }
.fr-chips span { padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); font-size: 10.5px; font-weight: 600; }
.fr-chips .on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.fr-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 12px; }
.fr-row b { font: 600 11px var(--mono); }
.fr-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-row em { color: var(--mute); font: normal 500 10.5px var(--mono); }
.fx-rooms.m-rooms { width: 100%; max-width: 360px; }

/* Feature: search the whole campus */
.fx-search { display: grid; gap: 7px; padding: 12px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.fsr-input { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1.5px solid var(--accent); border-radius: 10px; font-size: 13px; font-weight: 550; }
.fsr-input svg { width: 15px; height: 15px; color: var(--mute); }
.fsr-input span { flex: 1; }
.fsr-input span::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--accent); }
.fsr-input kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); font: 500 10px var(--mono); }
.fx-search > small { margin-top: 3px; color: var(--faint); font: 600 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.fsr-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.fsr-row:first-of-type { background: var(--paper); }
.fsr-row > span:nth-child(2) { display: grid; min-width: 0; }
.fsr-row b { overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.fsr-row small { overflow: hidden; color: var(--mute); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.fsr-row i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--butter); color: var(--butter-ink); }
.fsr-row i svg { width: 15px; height: 15px; }
.fsr-row em { padding: 5px 10px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 10.5px; font-style: normal; font-weight: 600; }

/* Feature: install as an app */
.fx-install { display: grid; justify-items: center; gap: 8px; max-width: 290px !important; padding: 22px 20px 18px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); text-align: center; }
.fx-install .key { margin-bottom: 4px; }
.fx-install strong { font-size: 17px; letter-spacing: -.02em; }
.fx-install small { color: var(--mute); font-size: 12px; line-height: 1.4; }
.fi-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 8px; }
.fi-btns i, .fi-btns b { display: grid; place-items: center; height: 36px; border-radius: 10px; font-size: 12.5px; font-style: normal; font-weight: 600; }
.fi-btns i { border: 1px solid var(--line); color: var(--ink-2); }
.fi-btns b { background: var(--ink); color: var(--paper); }

/* Feature: settings */
.fx-settings { display: grid; gap: 7px; padding: 14px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.fx-settings > small { color: var(--ink-2); font-size: 11px; font-weight: 600; }
.fst-seg { display: flex; gap: 2px; margin-bottom: 4px; padding: 3px; border-radius: 10px; background: var(--line-2); }
.fst-seg span { flex: 1; padding: 6px 0; border-radius: 7px; color: var(--mute); font-size: 10.5px; font-weight: 600; text-align: center; white-space: nowrap; }
.fst-seg .on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.fst-sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid var(--line-2); }
.fst-sw span { display: grid; }
.fst-sw b { font-size: 12px; }
.fst-sw small { color: var(--mute); font-size: 10.5px; }
.fst-sw i { position: relative; flex: none; width: 34px; height: 20px; border-radius: 99px; background: var(--sage-ink); }
.fst-sw i::after { content: ""; position: absolute; top: 2px; left: 16px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.fst-sw i.off { background: var(--line); }
.fst-sw i.off::after { left: 2px; }
.fq-log p.me { padding-right: 58px; }
/* No colour stripe on the side of classes, as in the campus */
.fw-body i, .mw-grid i { border-left: 0; }
.mh-class .nc-facts { display: grid; gap: 0; }
.mh-class .nc-facts > div { display: block; margin: 0; }
.mh-task .mh-foot .at-btn { color: var(--paper); font-size: 11.5px; }

/* Comparativa: summary of /comparativa, a dark band between Funcions and Responsiu */
.why { background: var(--ink); color: var(--paper); }
.why .kicker { color: #ff9a78; }
.why .head p { color: #b9bdc6; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.why-card { display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-lg); background: #1c1f27; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.why-n { color: var(--accent); font: 600 12px var(--mono); }
.why-card strong { margin-top: 14px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.why-card p { margin: 8px 0 18px; color: #c9ccd3; font-size: 15px; line-height: 1.5; }
.why-card small { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); color: #8b909b; font-size: 12.5px; }
.why-cta { display: flex; justify-content: center; margin-top: 36px; }
.btn.light { color: var(--ink); background: var(--paper); }
.btn.light:hover { background: #fff; }
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: minmax(0, 1fr); } .why-card { padding: 18px; } }

/* Pages outside the landing (Comparativa, Novetats) share one nav: the current page is marked */
.nav-links a[aria-current="page"] { background: rgba(18,20,26,.06); color: var(--ink); }
@media (max-width: 720px) {
  .nav.pages .nav-links { display: flex; gap: 2px; }
  .nav.pages .nav-links a { padding: 7px 10px; font-size: 13.5px; }
  .nav.pages .btn.sm { display: none; }
}

/* Tutorial: trajecte, resums, fòrum i jocs */
.m-btn.sm { height: 28px; padding: 0 12px; font-size: 12px; }
.mt-legs { display: grid; gap: 6px; }
.mt-leg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--paper); border-radius: 10px; }
.mt-leg b { font-size: 13.5px; font-weight: 600; }
.mt-leg em { font: normal 500 11.5px var(--mono); color: var(--mute); }
.mt-l { display: grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; font: normal 700 11px var(--mono); color: #fff; background: var(--c); border-radius: 6px; }
.mt-change { padding-left: 14px; font-size: 11.5px; color: var(--mute); }
.mt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--mute); }
.mt-foot b { color: var(--ink); }
.mt-foot .m-btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
.ms-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.ms-tabs span { padding: 6px 12px; font-size: 12px; font-weight: 500; color: var(--mute); border-radius: 999px; }
.ms-tabs span.on { color: var(--paper); background: var(--ink); }
.m-study .m-h { font-size: 16px; line-height: 1.3; }
.ms-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 10px 12px; font-size: 12.5px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.ms-opt.ok { color: #1c6b41; background: #e4f5ec; box-shadow: inset 0 0 0 1px #8fd0ac; }
.ms-opt svg { flex: none; width: 16px; height: 16px; }
