/* TF Cursos — Página de links (Proposta B) */
@font-face { font-family: "Karla"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/karla-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/karla-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --g9: #1E3D37; --g8: #254A43; --g7: #2A5B51; --g5: #398170; --g3: #82C6B2;
  --cream: #E7EDDA; --paper: #F6F7F1; --white: #fff; --ink: #1B1F1D;
  --or: #E08A3C; --or-h: #CC7730; --or2: #F5B97A; --wa: #25D366;
  --glass: rgba(255,255,255,.08); --glass-b: rgba(255,255,255,.14);
  --font: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--font); color: var(--white); background: var(--g8); -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--or2); outline-offset: 3px; border-radius: 12px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.only-desk { display: none; }
.story__meta { flex-wrap: wrap; }

/* Fundo */
.bg { position: absolute; inset: 0 0 auto 0; height: 640px; z-index: -1;
  background:
    linear-gradient(180deg, rgba(42,91,81,.35) 0%, rgba(37,74,67,.85) 60%, var(--g8) 100%),
    url("../img/bg-cavalos-mobile.webp") center 30% / cover no-repeat, var(--g7); }
.brand-strip { display: flex; height: 6px; }
.brand-strip span { flex: 1; }
.brand-strip span:nth-child(1) { background: #D8EFE7; } .brand-strip span:nth-child(2) { background: var(--g3); }
.brand-strip span:nth-child(3) { background: var(--g5); } .brand-strip span:nth-child(4) { background: var(--g7); }

.page { width: 100%; max-width: 480px; margin: 0 auto; padding: 20px 20px 40px; }

/* Botões e pílulas */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid transparent; background: none; transition: background-color .2s, transform .2s; }
.icon-btn .ico { width: 20px; height: 20px; }
.icon-btn--glass { background: var(--glass); border-color: var(--glass-b); color: var(--white); }
.icon-btn--glass:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 100px; font-weight: 700; font-size: 16px; line-height: 1.2; transition: background-color .2s, transform .2s, box-shadow .2s; }
.btn .ico { width: 17px; height: 17px; }
.btn--block { width: 100%; }
.btn--orange { background: var(--or); color: var(--white); }
.btn--green { background: var(--g7); color: var(--white); }
.btn--wa { background: var(--wa); color: var(--white); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.pill .ico { width: 13px; height: 13px; color: var(--or2); }
.pill--light { background: var(--white); color: var(--g8); }
.pill--dark { background: rgba(30,61,55,.78); color: var(--white); backdrop-filter: blur(6px); }
.pill--url { color: var(--g7); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px rgba(37,211,102,.2); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--or2); }
.eyebrow--orange { color: var(--or); }

/* Perfil */
.profile { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-bottom: 28px; }
.profile__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.profile__logo { height: 48px; width: auto; }
.profile__share { width: 42px; height: 42px; }
.profile__id { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.avatar { position: relative; width: 150px; height: 150px; border-radius: 50%; border: 2px solid var(--or2); padding: 7px; flex: none; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar__dot { position: absolute; right: 8px; bottom: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--wa); border: 3px solid var(--g8); }
.profile__sign { width: 200px; height: auto; }
.profile__headline { font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--cream); max-width: 320px; }
.profile__bio { display: none; }
.stats { display: flex; justify-content: center; padding-top: 4px; }
.stats > div { padding: 0 18px; text-align: center; }
.stats > div + div { border-left: 1px solid rgba(255,255,255,.16); }
.stats dt { font-size: 22px; font-weight: 700; line-height: 1.2; }
.stats dd { font-size: 12px; color: var(--cream); }
.stats__desk { display: none; }
.stats > div:nth-child(1) dd { font-size: 0; } .stats > div:nth-child(1) dd::after { content: "alunos"; font-size: 12px; }
.socials { display: flex; gap: 10px; justify-content: center; order: 5; }
.stats { order: 6; }
.profile__wa { display: none; }

/* Cards */
.links { display: flex; flex-direction: column; gap: 16px; }
.cards { display: grid; gap: 16px; }
.story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 470px; padding: 16px; border-radius: 28px; overflow: hidden; isolation: isolate; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,61,55,.35) 0%, rgba(30,61,55,0) 30%, rgba(30,61,55,.85) 58%, var(--g9) 100%); }
.story:hover .story__img { transform: scale(1.04); }
.story__chips { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.story__body { display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.story__title { font-size: 26px; line-height: 1.16; font-weight: 700; letter-spacing: -.4px; }
.story__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--cream); }
.story__meta .ico { color: var(--or2); width: 15px; height: 15px; }
.story__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.story__price strong { font-size: 22px; }
.story__price s { font-size: 13px; color: var(--cream); }
.story__price em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--or2); }
.story:hover .btn--orange { background: var(--or-h); }

.site-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 28px; background: var(--cream); color: var(--ink); transition: transform .25s; }
.site-card:hover { transform: translateY(-3px); }
.site-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.site-card__title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.browser { display: block; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.browser__bar { display: flex; gap: 5px; padding: 8px 10px; background: var(--paper); }
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: #E8766A; }
.browser__bar i:nth-child(2) { background: #F2C04D; } .browser__bar i:nth-child(3) { background: #6CC070; }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.site-card:hover .btn--green { background: var(--g8); }

/* Formações */
.formats { padding-top: 8px; }
.formats__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.formats__hint { font-size: 12px; color: var(--cream); }
.formats__list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.formats__list::-webkit-scrollbar { display: none; }
.format { position: relative; flex: 0 0 156px; height: 210px; border-radius: 22px; overflow: hidden; scroll-snap-align: start; isolation: isolate; }
.format img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.format::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,61,55,0) 40%, rgba(30,61,55,.95) 100%); }
.format:hover img { transform: scale(1.06); }
.format__label { position: absolute; left: 14px; right: 14px; bottom: 14px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.format__arrow { position: absolute; top: 12px; right: 12px; display: inline-flex; padding: 7px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--g8); }
.format__arrow .ico { width: 14px; height: 14px; }

/* Contatos */
.contacts { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background-color .2s, transform .2s; }
.row:hover { background: rgba(255,255,255,.12); transform: translateX(2px); }
.row__ico { display: inline-flex; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.1); }
.row__ico .ico { width: 18px; height: 18px; }
.row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__txt strong { font-size: 15px; }
.row__txt small { font-size: 12px; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__go { width: 18px; height: 18px; }
.row--wa { background: var(--wa); border-color: var(--wa); }
.row--wa .row__ico { background: rgba(255,255,255,.22); }
.row--wa small { color: var(--white); }
.row--wa:hover { background: #20bd5a; }

/* Rodapé */
.footer { position: relative; margin-top: 8px; padding: 34px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--g9); text-align: center; font-size: 12px; color: var(--cream); }
.footer__wave { position: absolute; left: 0; top: -38px; width: 100%; height: 40px; fill: var(--g9); }
.footer a:hover { color: var(--white); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 100px; background: var(--white); color: var(--g8); font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 10; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Entrada suave */
@media (prefers-reduced-motion: no-preference) {
  .profile, .cards > *, .formats, .contacts { animation: rise .7s ease both; }
  .cards > *:nth-child(1) { animation-delay: .08s; } .cards > *:nth-child(2) { animation-delay: .16s; }
  .formats { animation-delay: .24s; } .contacts { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* ============ Tablet ============ */
@media (min-width: 640px) {
  .page { max-width: 720px; padding: 28px 32px 56px; }
  .story { min-height: 520px; }
  .site-card { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .site-card__head { width: 100%; }
  .site-card__title { flex: 1; min-width: 260px; }
  .site-card .btn { width: auto; }
  .formats__list { margin: 0; padding: 0; overflow: visible; display: grid; grid-template-columns: repeat(4, 1fr); }
  .format { flex: none; height: 200px; }
  .formats__hint { display: none; }
}

/* ============ Desktop (layout do Figma 1600) ============ */
@media (min-width: 1024px) {
  body { display: flex; flex-direction: column; }
  .bg { position: fixed; inset: 0; height: auto;
    background:
      linear-gradient(90deg, rgba(30,61,55,.95) 0%, rgba(37,74,67,.85) 45%, rgba(37,74,67,.6) 100%),
      url("../img/bg-cavalos.webp") center / cover no-repeat, var(--g8); }
  .page { flex: 1; max-width: 1360px; display: grid; grid-template-columns: minmax(360px, 420px) 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; align-content: center; padding: clamp(40px, 7vh, 72px) 40px 64px; }
  .profile { align-items: flex-start; text-align: left; gap: 18px; padding: 0; position: sticky; top: 40px; }
  .only-desk { display: inline; } p.only-desk { display: block; } .only-mob { display: none; }
  .socials, .stats { order: 0; }
  .profile__top { width: auto; }
  .profile__logo { height: 64px; }
  .profile__share { display: none; }
  .profile__id { flex-direction: row; gap: 22px; padding-top: 12px; }
  .avatar { width: 140px; height: 140px; }
  .avatar__dot { width: 20px; height: 20px; right: 6px; bottom: 10px; }
  .profile__sign { width: 230px; }
  .profile__headline { font-size: 30px; font-weight: 700; line-height: 1.27; letter-spacing: -.6px; color: var(--white); max-width: none; }
  .profile__bio { display: block; font-size: 17px; line-height: 1.6; color: var(--cream); }
  .stats { justify-content: flex-start; }
  .stats > div { padding: 0 18px; text-align: left; }
  .stats > div:first-child { padding-left: 0; }
  .stats dt { font-size: 26px; }
  .stats__desk { display: block; }
  .stats > div:nth-child(1) dd { font-size: 12px; } .stats > div:nth-child(1) dd::after { content: none; }
  .socials { justify-content: flex-start; padding-top: 4px; }
  .socials__mob { display: none; }
  .profile__wa { display: inline-flex; padding: 14px 24px; font-size: 15px; }
  .profile__wa:hover { background: #20bd5a; transform: translateY(-2px); }

  .links { gap: 20px; }
  .cards { gap: 20px; grid-template-columns: 1fr; }
  .site-card { display: none; }
  .story { min-height: 540px; padding: 20px; }
  .story__body { padding: 12px; max-width: 420px; }
  .story::after { background: linear-gradient(180deg, rgba(30,61,55,.3) 0%, rgba(30,61,55,0) 28%, rgba(30,61,55,.55) 60%, rgba(30,61,55,.92) 100%), linear-gradient(90deg, rgba(30,61,55,.75) 0%, rgba(30,61,55,.2) 50%, rgba(30,61,55,0) 70%); }
  .story__chips { justify-content: flex-start; }
  .story__title { font-size: 28px; }
  .story__price strong { font-size: 24px; }
  .site-card { padding: 24px; justify-content: space-between; }
  .site-card__title { font-size: 26px; line-height: 1.23; letter-spacing: -.4px; }

  .formats { padding-top: 0; }
  .formats__head { display: none; }
  .formats__list { gap: 14px; }
  .format { height: auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-b); transition: background-color .2s, transform .2s; }
  .format:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
  .format::after { content: none; }
  .format img { position: static; width: 52px; height: 52px; border-radius: 12px; flex: none; }
  .format:hover img { transform: none; }
  .format__label { position: static; flex: 1; font-size: 14px; }
  .format__arrow { position: static; padding: 0; background: none; color: var(--or2); }
  .format__arrow .ico { width: 16px; height: 16px; }

  .contacts { display: none; }
  .footer { margin-top: 0; padding: 30px 20px 26px; background: var(--g9); }
}
@media (min-width: 1024px) and (max-width: 1200px) {
  .formats__list { grid-template-columns: 1fr 1fr; }
}
