/* =============================================================
   SLA Alerts — product theme.

   Loads on top of /css/house.css (the house system), the way
   time-tracking.css and client-portal.css do, and follows their split:
   cool grey carries the structure, red carries the action.

   The ground stays near-neutral (a cool grey, as on Time Tracking and
   Client Forms), and red appears only where something can be clicked.
   On the board red also means "over the limit"; kept to buttons and
   small accents it doesn't compete with the badges, which carry
   Trello's own lighter red and yellow. The dark bands are the mark's
   dark end, a near-black with a cherry tint, lit by the same red.
   ============================================================= */
:root {
  /* ---- action: red, and only where something happens ---- */
  --primary:       #A11D22;
  --primary-2:     #BD2D2F;
  --primary-ink:   #7A1518;
  --grad-brand:    linear-gradient(135deg, #7A1518 0%, #A11D22 50%, #BD2D2F 100%);
  --shadow-glow:   0 18px 44px -16px rgba(var(--act-rgb), 0.38);
  --border-active: #E6BDBD;

  /* ---- structure: cool grey, at rest ---- */
  --page:      #F7F9FA;
  --surface-2: #EEF2F4;
  --border:    #DCE3E8;

  --ok:     #16A34A;

  /* The showcase band and the closing CTA: one surface used twice. */
  --band-1: #26171A;
  --band-2: #1C1113;
  --band-3: #140B0D;
  --band-accent: #FCA5A5;
  --band-soft:   #FECACA;
  --act-rgb:  161, 29, 34;
  --act2-rgb: 189, 45, 47;
  --acc-rgb:  248, 113, 113;
  --band-muted:  #A3ABB5;
}

body::before { background: linear-gradient(180deg, #E3EBEF 0%, #EFF3F5 42%, var(--page) 100%); }
.btn-primary:hover { box-shadow: 0 24px 50px -14px rgba(var(--act-rgb), 0.45); }
.flow-points li svg { background: rgba(var(--act-rgb), 0.12); }

/* ---- dark band, same surface as the closing CTA ---- */
.showcase-band {
  background:
    radial-gradient(ellipse 70% 110% at 50% -12%, rgba(var(--act2-rgb), 0.18), transparent 60%),
    radial-gradient(ellipse 45% 90% at 92% 105%, rgba(var(--acc-rgb), 0.08), transparent 55%),
    linear-gradient(135deg, var(--band-1) 0%, var(--band-2) 58%, var(--band-3) 100%);
}
.showcase-band .kicker { color: var(--band-accent); }
.showcase-band .section-sub { color: var(--band-muted); }
.showcase-band .flow-n { color: var(--band-muted); }
.showcase-band .flow-item.is-active .flow-n { color: var(--band-accent); }
.showcase-band .flow-step:focus-visible { outline-color: var(--band-accent); }
.showcase-band .flow-item.is-active .flow-step { border-color: rgba(var(--acc-rgb), 0.5); }
.showcase-band .flow-ic { color: var(--band-muted); }
.showcase-band .flow-label { color: #DCE2E7; }
.showcase-band .flow-copy p { color: var(--band-muted); }
.showcase-band .flow-copy em { color: var(--band-soft); }
.showcase-band .flow-points li { color: #E4E9ED; }
.showcase-band .flow-points li svg { background: rgba(var(--acc-rgb), 0.18); color: var(--band-soft); }
.flow-arrow { color: var(--band-muted); }
.flow-arrow:hover { background: rgba(var(--acc-rgb), 0.14); border-color: rgba(var(--acc-rgb), 0.4); }
.flow-arrow:focus-visible { outline: 2px solid var(--band-accent); }
@media (min-width: 768px) {
  .showcase-band .flow-label { color: var(--band-muted); }
  .showcase-band .flow-item.is-active .flow-step { border-top-color: var(--band-accent); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-n { font-size: 10.5px; }
}
.flow-n { font-variant-numeric: normal; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 767px) {
  .flow-step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 3px; align-items: center; }
  .flow-ic { grid-row: 1 / 3; }
  .flow-n { grid-column: 2; grid-row: 1; margin-left: 0; }
  .flow-label { grid-column: 2; grid-row: 2; }
}

.pricing { background: linear-gradient(180deg, #EEF2F4 0%, #E4EAEE 100%); }
.final-cta { background: linear-gradient(135deg, var(--band-1) 0%, var(--band-2) 58%, var(--band-3) 100%); }
.final-cta::before {
  background:
    radial-gradient(ellipse 70% 110% at 50% -12%, rgba(var(--act2-rgb), 0.18), transparent 60%),
    radial-gradient(ellipse 45% 90% at 92% 105%, rgba(var(--acc-rgb), 0.08), transparent 55%);
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---- hero: copy left, the composition right (as Client Forms) ---- */
.hero-copy { align-items: flex-start; text-align: left; }
.hero-cta, .hero-trust { justify-content: flex-start; }
.hero-visual { max-width: 960px; }
@media (min-width: 1000px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 40px; }
  .hero h1 { font-size: 46px; max-width: 100%; }
  .hero-sub { max-width: 46ch; }
  .hero-visual { max-width: none; width: 100%; margin-top: 0; }
}
/* From 1100px the copy takes a fixed column, as narrow as the headline's
   first line allows, and the composition everything else: its comments and
   time-per-list rows are small type, and every pixel goes to them. On wide
   screens it also runs past the container into the page's side margin. */
@media (min-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 28px; }
  .hero h1 { font-size: 42px; }
  /* the three trust notes stay on one line in the narrower column */
  .hero-trust { flex-wrap: nowrap; white-space: nowrap; gap: 8px; font-size: 13px; }
}
@media (min-width: 1360px) {
  .hero-visual { width: calc(100% + 40px); margin-right: -40px; }
}
@media (min-width: 1440px) {
  .hero-visual { width: calc(100% + 72px); margin-right: -72px; }
}

/* ---- the stage clips ----
   Zooms baked in, so each is shown whole at its own shape (1968 x 1080);
   the video's width and height set the frame, as on Client Forms. */
.shot { aspect-ratio: auto; box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.8), 0 0 110px -26px rgba(var(--act2-rgb), 0.3); }
.shot video { height: auto; }


/* ---- toolkit, pricing: Client Forms' components ---- */
.tk-grid { display: grid; grid-template-columns: 1fr; gap: 2px; list-style: none; }
.tk-row { cursor: default; }
.tk-row:hover { background: none; }
@media (min-width: 620px) { .tk-grid { grid-template-columns: 1fr 1fr; gap: 2px 16px; } }
@media (min-width: 1100px) { .tk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 18px; } }

.tt-trial { max-width: 860px; margin: 0 auto 40px; padding-bottom: 30px; border-bottom: 1px solid #D8E0E6; display: grid; gap: 14px; }
.tt-trial-title { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.tt-span { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "s1 s2" "n1 n1" "n2 n2"; column-gap: 4px; row-gap: 10px; }
.tt-seg { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; min-width: 0; }
.tt-seg small { display: none; font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; opacity: 0.8; }
.tt-seg span { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.2; }
.tt-seg.is-trial { grid-area: s1; background: var(--grad-brand); color: #fff; border-radius: var(--r-pill) 6px 6px var(--r-pill); }
.tt-seg.is-after { grid-area: s2; color: var(--ink); border: 1px solid #CCD6DD; border-radius: 6px var(--r-pill) var(--r-pill) 6px; background: repeating-linear-gradient(135deg, #FFFFFF 0 7px, #EEF2F4 7px 14px); }
.tt-seg.is-after small { color: #4A5863; opacity: 1; }
.tt-note { font-size: 13.5px; line-height: 1.5; color: var(--body); }
.tt-note.is-trial { grid-area: n1; }
.tt-note.is-after { grid-area: n2; }
.tt-note-label { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.tt-keeps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tt-keeps li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); }
.tt-keeps svg { flex-shrink: 0; width: 14px; height: 14px; color: var(--ok); }
.tt-keeps .no { color: #4A5863; font-weight: 600; }
.tt-keeps .no svg { color: #4A5863; }
@media (min-width: 560px) {
  .tt-span { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-areas: "s1 s2" "n1 n2"; }
  .tt-seg { min-height: 42px; padding: 0 14px; white-space: nowrap; }
  .tt-seg small { display: inline; }
  .tt-note.is-after { padding-left: 10px; }
  .tt-note-label { display: none; }
}
.tt-tiles { display: grid; gap: 18px; max-width: 860px; margin: 0 auto; }
.tt-tile { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; }
.tt-tile.is-best { border-color: var(--primary-2); box-shadow: var(--shadow-md); }
.tt-save { position: absolute; top: -13px; left: 28px; background: var(--grad-brand); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; padding: 5px 12px; border-radius: var(--r-pill); }
.tt-plan { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tt-amount { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.tt-amount span { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tt-tile p { font-size: 14.5px; color: var(--body); }
.tt-tile p b { color: var(--primary-ink); }
.tt-tile .btn { width: 100%; }
.tt-includes { max-width: 860px; margin: 24px auto 0; text-align: center; }
.tt-includes summary { list-style: none; cursor: pointer; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; padding: 6px 4px; border-radius: 6px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--primary); }
.tt-includes summary::-webkit-details-marker { display: none; }
.tt-includes summary:hover { color: var(--primary-ink); }
.tt-includes summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tt-includes summary > span { font-family: 'Inter', sans-serif; font-weight: 500; color: var(--body); }
.tt-includes summary svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.tt-includes details[open] summary svg { transform: rotate(180deg); }
.tt-includes ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 20px; max-width: 660px; margin: 12px auto 0; }
.tt-includes li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); }
.tt-includes li svg { flex-shrink: 0; width: 13px; height: 13px; color: var(--primary); }
@media (min-width: 768px) { .tt-tiles { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .tt-includes summary svg { transition: none; } }
