/*
 * The Black Friday page of siby.work/blackfriday/. Night first: the offer and its code on the Clock's night, then a
 * light part that says what Siby is (its AI on one navy card, then every part of the job), then the prices, then two
 * light parts (what the month is for, the three steps), then answers and the last word.
 * Written twice: index.html in English, es/index.html in Spanish, both with this sheet.
 * Colors come from shared/base.css only. Start and end, never left and right.
 * One action on the whole page ("Start your free month"); a part is its headline, then one thing to look at or press.
 * When the offer is over (script.js adds .over to <html>), only the free month and what Siby is stay.
 */

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
[hidden] { display: none !important; }
body { background: var(--night-ground); color: var(--text); overflow-x: hidden; }
:root { --pad: clamp(24px, 6vw, 96px); --gap-y: clamp(88px, 14vh, 168px); --round: clamp(28px, 4vw, 56px); }
.wrap { width: min(100% - 2 * var(--pad), 1180px); margin-inline: auto; position: relative; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; }
.skip:focus { top: 72px; }
.no-js { margin-top: 32px; color: var(--on-navy-2); max-width: 34em; font-size: 17px; line-height: 27px; }
.js .no-js { display: none; }

/* ---------- Type ---------- */
.kicker { font: 500 13px/16px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.poster .kicker { color: var(--ink); }
.h2 { margin-top: 18px; font-weight: 700; font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; max-width: 15em; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 30em; text-wrap: pretty; }
.nb { white-space: nowrap; }
:lang(es) .nb { white-space: normal; }
.fine { margin-top: 28px; font-size: 14px; line-height: 21px; color: var(--text-3); max-width: 40em; }

/* ---------- The bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding-inline: var(--pad); background: var(--night-ground); }
.bar .wordmark { width: 56px; height: 32px; }
.bar .other-language { margin-inline-start: auto; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; font-weight: 600; font-size: 15px; color: var(--on-navy-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.bar .other-language:hover { color: var(--on-navy); }
.bar-cta { min-height: 40px; padding-inline: 18px; border-radius: 12px; font-size: 15px; }
@media (max-width: 479px) { .bar-cta { display: none; } }

/* ---------- 1. The offer ---------- */
.hero { position: relative; padding-block: clamp(40px, 8vh, 104px) var(--gap-y); background: var(--night-ground); color: var(--on-navy); overflow: hidden; }
.hero .aura { inset-inline-end: -28vmax; top: -36vmax; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-title { margin-top: 22px; font-weight: 700; }
.t-half { display: block; font-size: clamp(64px, 10.5vw, 148px); line-height: 0.9; letter-spacing: -0.045em; }
.t-half .w { display: inline-block; }
.t-half .w:nth-child(2) { color: var(--cyan); }
.t-after { display: block; margin-top: clamp(14px, 1.8vw, 24px); font-size: clamp(26px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.025em; color: var(--on-navy-2); }
.js .t-half .w { animation: slam 620ms var(--ease-spring) both; }
.js .t-half .w:nth-child(2) { animation-delay: 130ms; }
.js .t-after { animation: fade-up 520ms var(--ease-out) 520ms both; }
@keyframes slam { 0% { opacity: 0; transform: translateY(0.35em) scale(0.94); } 100% { opacity: 1; transform: none; } }
@keyframes fade-up { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
.hero-lead { margin-top: clamp(26px, 3.2vw, 40px); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--on-navy-2); max-width: 31em; text-wrap: pretty; }
.hero-lead b { color: var(--on-navy); font-weight: 600; }
.hero-lead b[data-bf="code"] { font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; }
.hero-act { margin-top: clamp(28px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-big { min-height: 60px; padding-inline: 30px; border-radius: 16px; font-size: 19px; }
.cta-big svg { transition: transform 200ms var(--ease-spring); }
.cta-big:hover svg { transform: translateX(4px); }
[dir="rtl"] .cta-big svg { transform: scaleX(-1); }
.act-note { font-size: 15px; line-height: 22px; color: var(--on-navy-2); }
.ended-title { margin-top: 22px; font-weight: 700; font-size: clamp(44px, 7vw, 96px); line-height: 0.96; letter-spacing: -0.04em; }

/* The code, drawn as an open place of the schedule: a dashed frame waiting for a name. */
.ticket { container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: clamp(24px, 3vw, 36px); border-radius: 28px; border: 1.5px dashed var(--cyan); background: var(--glass); }
.ticket-label { font: 500 12px/16px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-2); }
.ticket-code { margin-top: 10px; font: 500 clamp(26px, 7.4vw, 34px)/1.05 var(--mono); letter-spacing: 0.04em; color: var(--on-navy); overflow-wrap: anywhere; user-select: all; }
/* The code on one line, as wide as its frame lets it be (11 letters of the mono face fill 88% of the frame at 12.5%). */
@supports (font-size: 1cqi) { .ticket-code { font-size: min(46px, 12.5cqi); } }
.copy { margin-top: 18px; min-height: 44px; padding-inline: 18px; border-radius: 12px; border: 1.5px solid var(--cyan); color: var(--cyan-soft); font-weight: 600; font-size: 15px; transition: background 160ms linear, color 160ms linear, transform 160ms var(--ease-spring); touch-action: manipulation; }
.copy:hover { background: var(--cyan); color: var(--on-cyan); }
.copy:active { transform: scale(0.96); }
.ticket-gives { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--glass-edge); width: 100%; font-size: 17px; line-height: 24px; color: var(--on-navy-2); }
.ticket-gives b { display: block; font-weight: 700; font-size: clamp(56px, 7vw, 88px); line-height: 0.92; letter-spacing: -0.04em; color: var(--cyan); margin-bottom: 8px; }
.left { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.left-label { flex-basis: 100%; font: 500 12px/16px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-2); }
.left-n { display: inline-flex; align-items: baseline; gap: 6px; }
.left-n b { font: 500 30px/1 var(--mono); color: var(--on-navy); font-variant-numeric: tabular-nums; }
.left-n i { font-style: normal; font-size: 14px; line-height: 18px; color: var(--on-navy-2); }
.ticket-until { margin-top: 18px; font-size: 14px; line-height: 21px; color: var(--on-navy-2); }

.facts { margin-top: clamp(56px, 8vh, 96px); display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-strong); }
.facts li { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); align-items: baseline; column-gap: 18px; padding-block: 18px; border-bottom: 1px solid var(--line-strong); }
.facts b { font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.facts b i { font: 500 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-navy-2); font-style: normal; margin-inline-end: 4px; }
.facts li > span { font-size: 15px; line-height: 21px; color: var(--on-navy-2); }
.facts span span { font: inherit; color: inherit; }
@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 0; }
  .facts li { display: block; padding-block: 22px 0; border-bottom: 0; border-top: 1px solid var(--line-strong); }
  .facts b { display: block; font-size: 40px; }
  .facts li > span { display: block; margin-top: 10px; max-width: 17em; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(48px, 6vw, 96px); }
}

/* ---------- 2. What Siby is ---------- */
.what { padding-block: var(--gap-y); background: var(--canvas); color: var(--navy); border-radius: var(--round) var(--round) 0 0; margin-top: calc(-1 * var(--round)); position: relative; }
.what .lead { max-width: 32em; }
.what-grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 5vw, 80px); align-items: start; }
/* The AI, the part's one strong thing: a navy card that reads as a short talk, what you say and what Siby does. */
.magic { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--navy); color: var(--on-navy); }
.magic-label { font: 500 12px/16px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.magic-label span { display: block; margin-top: 8px; font: 400 15px/22px var(--sans); letter-spacing: 0; text-transform: none; color: var(--on-navy-2); }
.magic-says { margin-top: 28px; display: grid; gap: 24px; }
.magic-says li { display: grid; gap: 10px; }
.you { justify-self: end; max-width: 21em; padding: 12px 16px; border-radius: 18px; border-end-end-radius: 4px; background: var(--navy-raised); font-weight: 600; font-size: 17px; line-height: 24px; }
.does { position: relative; padding-inline-start: 28px; max-width: 25em; font-size: 16px; line-height: 24px; color: var(--on-navy-2); }
.does::before { content: ''; position: absolute; inset-inline-start: 0; top: 4px; width: 16px; height: 16px; background: var(--cyan); clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%); }
.magic-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--navy-track); font-size: 14px; line-height: 21px; color: var(--on-navy-2); }
/* Every other part of the job: lines, not boxes. */
.parts-title { font-weight: 700; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.part-list { margin-top: 16px; border-top: 2px solid var(--navy); }
.part-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 13px; border-bottom: 1px solid var(--line-strong); }
.part-list b { font-weight: 700; font-size: 17px; line-height: 24px; }
.part-list span { font-size: 15px; line-height: 22px; color: var(--text-2); }
.what-count { margin-top: 32px; font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.what-count b { color: var(--ink); }
.what .see { margin-top: 6px; }
@media (min-width: 560px) { .part-list li { grid-template-columns: minmax(0, 10.5em) minmax(0, 1fr); column-gap: 20px; align-items: baseline; } }
@media (min-width: 960px) { .what-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* ---------- 3. The price ---------- */
.price { padding-block: var(--gap-y); background: var(--navy); color: var(--on-navy); border-radius: var(--round) var(--round) 0 0; margin-top: calc(-1 * var(--round)); position: relative; }
.price .lead, .price .fine { color: var(--on-navy-2); }
.period { margin-top: 40px; display: inline-flex; padding: 4px; border-radius: 16px; background: var(--navy-raised); }
.period-pick { min-height: 44px; padding-inline: 20px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--on-navy-2); transition: background 160ms linear, color 160ms linear; touch-action: manipulation; }
.period-pick[aria-checked="true"] { background: var(--cyan); color: var(--on-cyan); }
.deals { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.deal { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border-radius: 22px; border: 1.5px solid var(--navy-track); }
.deal-team { min-height: 32px; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-navy-2); }
.deal-now { margin-top: 14px; font-weight: 700; font-size: clamp(40px, 5.2vw, 68px); line-height: 0.95; letter-spacing: -0.04em; color: var(--cyan); }
.deal-first { margin-top: 6px; font-size: 15px; line-height: 20px; color: var(--on-navy); font-weight: 500; }
.deal-was { margin-top: 14px; font: 500 15px/20px var(--mono); color: var(--on-navy-2); }
.deal-then { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--on-navy-2); }
@media (min-width: 860px) { .deals { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .deal { padding: 24px; } .deal-team { min-height: 0; } }
.year-line { margin-top: clamp(36px, 4.4vw, 56px); font-weight: 700; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.12; letter-spacing: -0.025em; max-width: 20em; text-wrap: balance; }
.year-line b { color: var(--cyan); font-weight: 700; }

/* ---------- 4. What you are getting ---------- */
.all { padding-block: var(--gap-y); background: var(--surface); color: var(--navy); border-radius: var(--round) var(--round) 0 0; margin-top: calc(-1 * var(--round)); position: relative; }
.trio { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.trio li { padding-top: 22px; border-top: 2px solid var(--navy); }
.trio b { display: block; font-weight: 700; font-size: clamp(52px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.04em; color: var(--navy); }
.trio b span { font: inherit; }
.trio h3 { margin-top: 16px; font-weight: 700; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; }
.trio p { margin-top: 8px; font-size: 16px; line-height: 25px; color: var(--text-2); max-width: 24em; }
@media (min-width: 860px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
.see { display: inline-flex; align-items: center; min-height: 44px; margin-top: 40px; color: var(--ink); }

/* ---------- 5. Three steps ---------- */
.steps { padding-block: var(--gap-y); background: var(--canvas); color: var(--navy); }
.step-list { margin-block: clamp(40px, 5vw, 64px) 44px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.step-list li { display: flex; gap: 18px; padding: 24px; border-radius: 24px; background: var(--surface); }
.step-list i { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--navy); color: var(--cyan); display: grid; place-items: center; font: 700 20px/1 var(--sans); font-style: normal; }
.step-list h3 { font-weight: 700; font-size: 20px; line-height: 26px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.step-list p { margin-top: 8px; font-size: 16px; line-height: 25px; color: var(--text-2); overflow-wrap: anywhere; }
@media (min-width: 960px) { .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .step-list li { flex-direction: column; padding: 28px; } }

/* ---------- 6. Answers ---------- */
.faq { padding-block: var(--gap-y); background: var(--night-ground); color: var(--text); }
.faq-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.faq .h2 { margin-top: 0; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-block: 18px; font-weight: 600; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-inline-end: 6px; border: solid var(--cyan); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding-bottom: 22px; font-size: 16px; line-height: 26px; color: var(--text-2); max-width: 38em; overflow-wrap: anywhere; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(48px, 7vw, 112px); } .faq .h2 { position: sticky; top: 108px; } }

/* ---------- 7. The last word ---------- */
.last { position: relative; padding-block: var(--gap-y); background: var(--navy); color: var(--on-navy); overflow: hidden; border-radius: var(--round) var(--round) 0 0; margin-top: calc(-1 * var(--round)); }
.last .aura { inset-inline-start: -30vmax; bottom: -40vmax; }
.last-title { font-weight: 700; font-size: clamp(40px, 6.6vw, 100px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; max-width: 12em; }
.last-title em { font-style: normal; color: var(--cyan); }
.last .cta { margin-top: clamp(36px, 4vw, 56px); }
.last .act-note { margin-top: 16px; }
.last .act-note span { font-family: var(--mono); letter-spacing: 0.04em; color: var(--on-navy); }

/* ---------- The foot and the phone's dock ---------- */
.foot { padding-block: 32px calc(40px + env(safe-area-inset-bottom)); background: var(--night-ground); color: var(--text-3); font-size: 14px; line-height: 21px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.foot p { max-width: 44em; }
.foot nav { display: flex; gap: 24px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); }
.dock { position: fixed; z-index: 60; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--night-ground) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-strong); transform: translateY(110%); transition: transform 320ms var(--ease-out); }
.dock.on { transform: none; }
.dock p { font: 500 12px/16px var(--mono); letter-spacing: 0.03em; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.dock p b { display: block; font: 700 15px/20px var(--sans); letter-spacing: 0; color: var(--on-navy); }
.dock .cta { min-height: 48px; padding-inline: 16px; font-size: 15px; flex: none; }
@media (min-width: 720px) { .dock { display: none; } }
@media (max-width: 719px) { .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- When the offer is over: the free month stays, the code and its prices go ---------- */
.over .live, .over .price, .over .steps, .over .faq, .over .last, .over .dock { display: none; }
/* What Siby is then follows the first part with nothing between, and what the month is for laps over it as before. */
.over .what { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .t-half .w, .js .t-after { animation: none; }
  .cta-big svg, .copy, .dock { transition: none; }
}
