@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }

/* Teacher William Emojis — una pàgina de producte: emojis animats oficials per a WeChat.
   La Buixots només és al logo; la resta va en Inter, neta. */
:root { --green: #1FBC55; --green-dark: #0f9a41; --ink: #111; --muted: #5d6268; --line: #e7e9eb; --soft: #f3faf5; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.page { width: min(100% - 40px, 1200px); margin: 0 auto; }
.wx { width: 1.6em; height: auto; flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); }

/* ── El mòbil ── */
.phone {
  --w: 250px;
  position: relative; flex: none; width: var(--w); aspect-ratio: 9 / 19.5; margin: 0; text-align: left;
  padding: calc(var(--w) * 0.036); border-radius: calc(var(--w) * 0.17); background: #121212;
  box-shadow: inset 0 0 0 2px #333, 0 40px 70px -35px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, "PingFang SC", Inter, Arial, sans-serif; font-size: calc(var(--w) * 0.046);
}
.phone::before { content: ""; position: absolute; z-index: 2; top: calc(var(--w) * 0.06); left: 50%; translate: -50% 0; width: 30%; height: calc(var(--w) * 0.085); border-radius: 99px; background: #121212; }
.screen { position: relative; height: 100%; border-radius: calc(var(--w) * 0.135); overflow: hidden; background: #ededed; display: grid; grid-template-rows: auto auto 1fr auto; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 1em 1.7em 0.3em 2em; font-size: 0.9em; background: #ededed; }
.status .sig { width: 4.3em; fill: currentColor; color: #111; }
.wx-top { display: flex; justify-content: space-between; align-items: center; padding: 0.55em 0.9em 0.6em; border-bottom: 1px solid #dcdcdc; font-size: 1.05em; }
.wx-top span { font-size: 1.2em; line-height: 1; color: #222; }
.chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.75em; padding: 0.7em 0.7em; overflow: hidden; }
.stamp { flex: none; margin: 0.2em 0; text-align: center; font-size: 0.8em; color: #a3a3a3; }
.msg { flex: none; display: flex; align-items: flex-start; gap: 0.5em; }
.msg.me { justify-content: flex-end; }
.av { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 0.4em; background: #c3ced6; color: #fff; font-size: 0.85em; font-weight: 600; }
.av.tw { background: var(--green); font-size: 0.7em; }
.bubble { position: relative; max-width: 74%; margin: 0; padding: 0.5em 0.7em; border-radius: 0.35em; background: #fff; line-height: 1.35; }
.bubble::before { content: ""; position: absolute; top: 0.7em; left: -0.38em; border: 0.4em solid transparent; border-left: 0; border-right-color: #fff; }
.me .bubble { background: #95ec69; }
.me .bubble::before { left: auto; right: -0.38em; border: 0.4em solid transparent; border-right: 0; border-left-color: #95ec69; }
/* Els GIF tenen el fons blanc: es fonen amb el gris del xat, com a WeChat */
.sticker { width: 7.4em; height: 7.4em; mix-blend-mode: multiply; }
.input { position: relative; display: flex; align-items: center; gap: 0.5em; padding: 0.55em 0.65em 1.9em; background: #f7f7f7; border-top: 1px solid #dcdcdc; }
.input svg { width: 1.75em; height: 1.75em; flex: none; }
.input i { flex: 1; height: 2.1em; border-radius: 0.35em; background: #fff; }
.input::after { content: ""; position: absolute; bottom: 0.6em; left: 50%; translate: -50% 0; width: 36%; height: 0.32em; border-radius: 99px; background: #111; }

/* ── 1. Portada ── */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); padding: 5rem 0 3rem; }
.brand { width: min(100%, 300px); margin-bottom: 2rem; }
.hero h1 { text-wrap: balance; margin: 1.1rem 0 0; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--green); }
.lead { margin: 1.3rem 0 0; max-width: 32rem; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.6; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.95rem 1.4rem; border-radius: 999px; font-size: 0.95rem; font-weight: 600; transition: background-color 0.2s, color 0.2s; }
.btn.solid { background: var(--green); color: #fff; }
.btn.solid:hover { background: var(--green-dark); }
.btn.line { border: 1.5px solid var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.trio { position: relative; display: flex; justify-content: center; align-items: center; height: min(640px, 82svh); }
.trio .phone { --w: min(260px, 22vw); z-index: 2; }
.trio .side { position: absolute; --w: min(220px, 18vw); z-index: 1; opacity: 0.96; }
.trio .side.l { left: 2%; rotate: -8deg; translate: 0 4%; }
.trio .side.r { right: 2%; rotate: 8deg; translate: 0 4%; }

/* ── 2. Les xifres ── */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.numbers div { padding: 2rem 1.4rem; }
.numbers div + div { border-left: 1px solid var(--line); }
.numbers b { display: block; white-space: nowrap; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--green); }
.numbers span { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

/* ── 3. Mostres ── */
.samples { padding: clamp(4rem, 10vh, 6.5rem) 0 0; }
.samples-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
.samples h2 { margin: 0.8rem 0 0; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.samples-head p { margin: 0; max-width: 26rem; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.row { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding-bottom: 1.5rem; }
.row .phone { --w: min(240px, 20vw); }

/* ── 4. La història ── */
.story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1rem, 5vw, 5rem); align-items: start; padding: clamp(4rem, 10vh, 7rem) 0; }
.story h2 { margin: 0.8rem 0 0; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.story p.text { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.7; color: var(--muted); max-width: 36rem; }

/* ── 5. Els paquets ── */
.pack { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(4rem, 10vh, 6.5rem) 0; border-top: 1px solid var(--line); }
.pack.is-flip { grid-template-columns: minmax(0, 1fr) auto; }
.pack.is-flip .pack-phone { order: 2; }
.pack-phone .phone { --w: min(280px, 72vw); }
.pack h2 { margin: 0.8rem 0 0; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.pack-text { margin: 0.8rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 36rem; }
.emoji-grid { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.emoji-grid li { border-radius: 10px; background: var(--soft); }
.get { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem; align-items: center; margin-top: 1.8rem; padding: 1.2rem 1.4rem; border-radius: 18px; border: 1px solid var(--line); }
.get .qr { mix-blend-mode: multiply; }
.get-text p { margin: 0 0 0.8rem; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.get-text b { color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stores img { width: 130px; }

.footer { padding: 1rem 0 0; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding: 4.5rem 0 1rem; text-align: center; }
  .hero > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .brand { width: min(62%, 340px); margin-bottom: 1.6rem; }
  .lead { margin-inline: auto; }
  .ctas { justify-content: center; }
  /* Els tres mòbils, igual que a l'escriptori però en petit: les mides van en proporció a l'amplada del bloc */
  .trio { width: min(100%, 568px); height: auto; margin-inline: auto; padding: 1.5rem 0 2.5rem; container-type: inline-size; }
  .trio .phone { --w: 45.8cqi; }
  .trio .side { --w: 38.7cqi; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers div:nth-child(3) { border-left: 0; }
  .numbers div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .row { justify-content: flex-start; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .row .phone { --w: min(230px, 60vw); scroll-snap-align: center; }
  .story, .pack, .pack.is-flip { grid-template-columns: minmax(0, 1fr); }
  .pack.is-flip .pack-phone { order: 0; }
  .pack-phone { justify-self: center; }
  .emoji-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .page { width: min(100% - 32px, 1200px); }
  .emoji-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .numbers div { padding: 1.5rem 1rem; }
  .numbers b { font-size: 1.85rem; }
  .get { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 2.45rem; }
  .ctas { flex-direction: column; align-self: stretch; }
  .btn { justify-content: center; }
}
