/* Inter is a variable font: one file per subset serves every weight. */
@font-face {
  font-family: "Inter";
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/inter-latin.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: "Inter";
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #0052ff;
  --blue-dark: #003fc4;
  --blue-soft: #e8efff;
  --band: #f3f6fc;
  --line: #dbe1ee;
  --ink: #0a0a0a;
  --muted: #4a5163;
  --faint: #586074;
  --ok: #12864a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.55; }
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.defs { position: absolute; }
.mark { flex: none; color: var(--blue); }
.mark.ok { color: var(--ok); }
.mark.idle { color: var(--faint); }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }

h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); letter-spacing: -0.035em; font-weight: 800; }
h1 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; font-weight: 800; }
h3 { font-size: 1.2rem; }
p { text-wrap: pretty; max-width: 68ch; }

.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; min-height: 84px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.top ul { display: flex; gap: 28px; list-style: none; font-size: 0.95rem; color: var(--muted); }
.top ul a { text-decoration: none; display: inline-block; padding-block: 8px; }
.top ul a:hover { color: var(--blue); }

.btn { display: inline-block; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; background: var(--blue); color: #fff; border: 1px solid var(--blue); border-radius: 10px; padding: 15px 26px; }
a.btn:hover, button.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.quiet { background: #fff; color: var(--ink); border-color: var(--line); }
a.btn.quiet:hover, button.btn.quiet:hover { background: var(--band); border-color: var(--faint); }
.btn.off { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue-dark); cursor: default; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding-block: 48px 104px; }
.lead { font-size: 1.25rem; color: var(--muted); margin-block: 24px 32px; }
.under { font-size: 0.9rem; color: var(--faint); margin-top: 14px; }
.stage { position: relative; padding-bottom: 48px; }
.window { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; font-size: 0.9rem; }
.bar, .row { padding: 16px 22px; }
.bar { display: flex; justify-content: space-between; gap: 12px; background: var(--band); }
.bar span { color: var(--faint); font-size: 0.82rem; }
.row { display: grid; grid-template-columns: 24px 100px minmax(0, 1fr) auto; gap: 12px; align-items: center; border-top: 1px solid var(--line); }
.row b { font-weight: 600; }
.row span, .row time { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.now { background: var(--blue-soft); }
.toast { position: absolute; right: -12px; bottom: 0; width: min(300px, 90%); background: var(--ink); color: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 24px 48px -16px rgb(0 40 140 / 0.45); animation: arrive 700ms cubic-bezier(0.16, 1, 0.3, 1) 600ms backwards; }
.toast p { font-size: 0.85rem; color: #cdd3e1; margin-top: 4px; }
@keyframes arrive { from { transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } html { scroll-behavior: auto; } }

.band { background: var(--band); padding-block: 96px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.split > div > p, .privacy p { font-size: 1.1rem; color: var(--muted); }
.split > div > h2 + p { margin-top: 18px; }
.panel { background: #fff; border-radius: 16px; padding: 28px; }
.panel h3 { font-size: 1rem; margin-bottom: 12px; }
.event { display: flex; justify-content: space-between; gap: 12px; padding-block: 13px; border-top: 1px solid var(--line); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.event span { color: var(--faint); }
.panel .note { font-size: 0.82rem; color: var(--faint); margin-top: 12px; }

.plans { padding-block: 104px; }
.plans h2 { text-align: center; margin-bottom: 48px; }
.cols { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.plan { display: flex; flex-direction: column; flex: 0 1 380px; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.plan.pro { border: 2px solid var(--blue); }
.plan > p { color: var(--muted); }
.plan .price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.2; margin-block: 8px; }
.price small { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; margin-block: 22px 28px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: baseline; padding-block: 7px; }
.plan.pro li .mark { color: var(--ok); }

.privacy { border-top: 1px solid var(--line); padding-block: 88px; align-items: start; }
.closing { text-align: center; padding-block: 72px 112px; }
.closing h2 { margin-bottom: 32px; }
footer { display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 0.9rem; color: var(--muted); }

.doc { max-width: 760px; padding-block: 32px 88px; }
.doc h2 { font-size: 1.3rem; margin-block: 36px 10px; }
.draft { margin-top: 20px; background: var(--blue-soft); border-radius: 10px; padding: 12px 16px; }

/* The account panel and the checkout: white sheets on the pale band. */
body.app { background: var(--band); min-height: 100vh; }
body.app .top, body.app footer { max-width: 920px; }
.sheet, .plan-now, .history { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.btn.small { padding: 9px 16px; font-size: 0.9rem; }
.link { font: inherit; font-size: 0.88rem; background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

.account { max-width: 920px; min-height: 66vh; margin: 0 auto; padding: 16px 24px 72px; }
.gate { max-width: 440px; margin: 48px auto 0; padding: 40px 32px; text-align: center; }
.gate h1 { font-size: 1.75rem; margin-block: 12px 8px; }
.gate p { color: var(--muted); }
#signin { display: flex; justify-content: center; margin-top: 28px; min-height: 44px; }
.who { display: flex; gap: 14px; align-items: center; }
.who > div { flex: 1; min-width: 0; }
.who h1 { font-size: 1.6rem; letter-spacing: -0.02em; }
.who p { color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.2rem; }

.plan-now { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 28px; padding: 24px 28px; min-height: 108px; }
.plan-now > div:first-child { flex: 1 1 300px; }
.plan-now h2 { font-size: 1.5rem; }
.plan-now p { color: var(--muted); margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.plan-now[data-state="pro"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.plan-now[data-state="pro"] p, .plan-now[data-state="pro"] .link { color: #fff; }
.plan-now[data-state="pro"] :focus-visible { outline-color: #fff; }
.plan-now[data-state="pending"] { background: var(--blue-soft); border-color: var(--blue); }

.head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-block: 40px 14px; }
.head h2 { font-size: 1.25rem; }
.filters { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.filters button { font: inherit; font-size: 0.85rem; font-weight: 600; background: none; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--muted); }
.filters button:hover { background: var(--band); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.history { list-style: none; overflow: hidden; }
.history:empty, .history[data-show="opened"]:not(:has([data-state="opened"])), .history[data-show="unopened"]:not(:has([data-state="unopened"])) { display: none; }
.history[data-show="opened"] > [data-state="unopened"], .history[data-show="unopened"] > [data-state="opened"] { display: none; }
.history > li + li { border-top: 1px solid var(--line); }
.history summary { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 22px; cursor: pointer; list-style: none; }
.history summary:hover, .history details[open] summary { background: #f9fafd; }
.history summary:focus-visible { outline-offset: -3px; }
.history summary::-webkit-details-marker { display: none; }
.what { font-weight: 600; overflow-wrap: anywhere; }
.what span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--faint); }
.badge { font-weight: 600; font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; background: var(--band); color: var(--faint); white-space: nowrap; }
.badge.ok { background: #e3f5eb; color: #0d6a39; }
.history .opens { list-style: none; padding: 4px 22px 18px 60px; font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.opens li { position: relative; padding-block: 4px 4px; padding-left: 18px; }
.opens li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.nothing { background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 40px 24px; text-align: center; margin-inline: auto; max-width: none; }
.account p.nothing { color: var(--muted); }
#more { margin-top: 16px; }
#status:not(:empty) { margin-top: 20px; color: var(--ink); }

.checkout { max-width: 480px; margin: 0 auto; padding: 32px 20px 56px; }
.checkout .logo { justify-content: center; margin-bottom: 20px; }
.checkout .sheet { padding: 32px; }
.checkout h1 { font-size: 1.6rem; letter-spacing: -0.02em; }
.checkout p { margin-top: 12px; color: var(--muted); }
.checkout p.amount { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.amount small { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.perks { list-style: none; margin-block: 16px; padding-block: 12px; border-block: 1px solid var(--line); }
.perks li { padding-block: 4px; padding-left: 22px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 3px; top: 0.55em; width: 5px; height: 10px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.pay { display: flex; justify-content: center; margin-top: 22px; min-height: 44px; }
/* Wompi draws its own button and counts on the browser's padding, which the reset removes. */
.pay button { padding-inline: 22px; }
.checkout p.fine { font-size: 0.85rem; color: var(--faint); }
.checkout .btn { display: block; margin-top: 24px; }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-block: 24px 72px; }
  .band, .plans { padding-block: 72px; }
  .top .wide { display: none; }
  .top ul { gap: 18px; }
  .toast { right: 0; }
}
@media (max-width: 520px) {
  .plan-now, .checkout .sheet { padding: 22px 18px; }
  .history summary { grid-template-columns: 24px minmax(0, 1fr); padding-inline: 16px; row-gap: 6px; }
  .history .badge { grid-column: 2; justify-self: start; }
@media (max-width: 520px) {
  .row { grid-template-columns: 24px minmax(0, 1fr) auto; row-gap: 0; }
  .row b { grid-column: 2; }
  .row span { grid-column: 2; grid-row: 2; }
  .row time { grid-column: 3; grid-row: 1; }
  .row .mark { grid-row: 1 / span 2; }
}
