/* timeoffbalance.com
   Type:    Bricolage Grotesque (headings, numerals) + Inter (text; the product's own UI face)
   Palette: the product's navy, amber and blue, on white and a cool paper tint
   One motif: the amber balance ring from the product's icon. */

@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}

:root {
  --night: #0b1f3f;     /* hero, dark bands, footer        */
  --navy: #183964;      /* the product's navy              */
  --blue: #0b5cad;      /* links, the popup's own button   */
  --amber: #f2a33a;     /* the balance ring; primary action */
  --amber-deep: #d98816;
  --ink: #0f2140;       /* text and headings on light      */
  --muted: #53617a;
  --paper: #f3f6fb;
  --line: #dbe2ed;
  --white: #fff;
  --on-dark: #c9d6ea;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1160px;
  --band: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--text); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); font-weight: 700; line-height: 1; letter-spacing: -.022em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 650; line-height: 1.06; letter-spacing: -.02em; }
h3 { font-size: 1.3rem; font-weight: 650; line-height: 1.2; letter-spacing: -.015em; }
kbd { font: 600 .85em var(--text); background: var(--white); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: .1em .45em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: .5rem; top: .5rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 650 1rem/1.2 var(--text); padding: .85rem 1.4rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; }
.btn-small { padding: .55rem 1rem; font-size: .95rem; }
.btn-primary { background: var(--amber); color: #201300; }
.btn-primary:hover { background: #ffb650; color: #201300; }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-quiet:hover { border-color: var(--navy); color: var(--ink); }
.btn-on-dark { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-on-dark:hover { border-color: var(--white); color: var(--white); }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 10; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.15rem var(--display); letter-spacing: -.02em; color: var(--white); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--white); }
.top-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.top-nav a, .top-signin { color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: .98rem; }
.top-nav a:hover, .top-signin:hover { color: var(--white); }
.top-actions { display: flex; align-items: center; gap: 1rem; }

/* ---- hero ---- */
.hero { background: var(--night); color: var(--on-dark); overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(7rem, 14vw, 11rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: var(--white); }
.hero-lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 34ch; color: var(--on-dark); margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.25rem; }
.hero-note { font-size: .95rem; color: #9fb2cf; }

.hero-shot { position: relative; padding-top: 1rem; }
.ring { position: absolute; width: 132%; max-width: none; left: -6%; top: -22%; pointer-events: none; }
.browser { position: relative; background: #eef1f6; border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); min-height: 35rem; }
.browser-bar { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; background: #f8f9fb; border-radius: 14px 14px 0 0; border-bottom: 1px solid #dfe3ea; }
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #c3c9d4; }
.browser-addr { flex: 1; background: #e6e9ef; color: #5b6475; border-radius: 999px; font-size: .82rem; padding: .35rem .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-ext { position: relative; border: 0; background: transparent; padding: 5px; border-radius: 9px; cursor: pointer; }
.browser-ext:hover, .browser-ext[aria-expanded="true"] { background: #dfe6f1; }
.browser-ext img { border-radius: 6px; }
.browser-badge { position: absolute; right: -4px; bottom: -3px; background: var(--blue); color: var(--white); font: 700 .62rem/1 var(--text); padding: 2px 4px; border-radius: 4px; border: 2px solid #f8f9fb; }
.browser-page { padding: 1.5rem; display: grid; gap: .8rem; max-width: 46%; }
.browser-page i { height: 11px; border-radius: 6px; background: #dde2ea; }
.browser-page i:nth-child(1) { width: 70%; height: 18px; }
.browser-page i:nth-child(3) { width: 85%; }
.browser-page i:nth-child(5) { width: 55%; }
.popup { position: absolute; right: .75rem; top: 3.4rem; width: min(340px, calc(100% - 1.5rem)); border-radius: 10px; overflow: hidden; background: var(--white); box-shadow: 0 18px 44px rgba(11, 31, 63, .3), 0 0 0 1px rgba(15, 33, 64, .1); transform-origin: top right; animation: popup-open .28s cubic-bezier(.2, .9, .3, 1.2) .7s both; }
.popup[hidden] { display: none; }
.popup.is-reopened { animation: popup-open .22s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes popup-open { from { opacity: 0; transform: scale(.9) translateY(-6px); } to { opacity: 1; transform: none; } }
.hero-hint { font-size: .85rem; color: #9fb2cf; margin: .9rem 0 0; position: relative; }

/* ---- bands ---- */
.band { padding: var(--band) 0; }
.band-tint { background: var(--paper); }
.band-dark { background: var(--night); color: var(--on-dark); }
.band-dark h2 { color: var(--white); }
.band-dark a { color: var(--white); }

/* The video sits across the hero's lower edge. */
.band-video { padding-top: 0; }
.film { margin: 0; }
.band-video .film { margin-top: clamp(-9rem, -11vw, -5rem); position: relative; }
.film video { width: 100%; border-radius: 16px; background: var(--night); box-shadow: 0 24px 60px rgba(11, 31, 63, .28); aspect-ratio: 16 / 9; }
.film figcaption { font-size: .95rem; color: var(--muted); margin-top: .9rem; }

/* ---- who it helps ---- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.trio > div { border-top: 4px solid var(--amber); padding-top: 1.1rem; }
.trio p { color: var(--muted); }
.trio p:last-child { color: var(--ink); font-weight: 500; margin-bottom: 0; }

/* ---- feature rows ---- */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3.5rem, 8vw, 6rem); }
.feature-flip .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); }
.tag { display: inline-block; font: 650 .85rem var(--text); color: #5a3a00; background: #fde6c2; border-radius: 999px; padding: .25rem .75rem; margin-bottom: 1rem; }
.art-popups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.art-popups img { border-radius: 10px; box-shadow: 0 16px 40px rgba(11, 31, 63, .16), 0 0 0 1px rgba(15, 33, 64, .08); }
.art-popups img:last-child { margin-top: 3.5rem; }
.art-portal { position: relative; padding: 0 0 5.5rem 0; }
.art-portal img { border-radius: 12px; box-shadow: 0 16px 40px rgba(11, 31, 63, .16), 0 0 0 1px rgba(15, 33, 64, .08); }
.art-portal .art-preview { position: absolute; right: -1rem; bottom: 0; width: 46%; border-radius: 10px; box-shadow: 0 20px 44px rgba(11, 31, 63, .28), 0 0 0 3px var(--amber); }

/* ---- steps ---- */
.how-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 2.25rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.5rem 3.5rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 3px solid var(--amber); font: 700 1.1rem/1 var(--display); display: grid; place-items: center; color: var(--ink); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.13rem; top: 2.5rem; bottom: .15rem; width: 3px; background: var(--line); border-radius: 2px; }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; }
.steps-plain { margin-top: 0; }
.steps-plain li::before { background: var(--white); }

/* ---- security ---- */
.proofs { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(2rem, 5vw, 4rem); }
.proofs li { padding-left: 2.4rem; position: relative; max-width: 46ch; }
.proofs li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.6 3.6 7.4-8' fill='none' stroke='%230b1f3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.proofs strong { color: var(--white); display: block; font: 650 1.15rem/1.3 var(--display); margin-bottom: .2rem; }
.proofs-more { margin: 2.25rem 0 0; }

/* ---- plans ---- */
.packs { border: 0; padding: 0; margin: 2.25rem 0 1.75rem; min-width: 0; }
.packs legend { font: 650 1.3rem var(--display); padding: 0; margin-bottom: .9rem; }
.pack-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pack { position: relative; cursor: pointer; }
.pack input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pack-n, .pack-d { display: block; text-align: center; }
.pack-n { font: 700 1.15rem var(--display); padding: .55rem 1.1rem 0; }
.pack-d { font-size: .78rem; color: var(--muted); padding: 0 1.1rem .5rem; }
.pack::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--line); border-radius: 12px; }
.pack:has(input:checked)::before { border-color: var(--navy); background: rgba(24, 57, 100, .06); }
.pack:has(input:focus-visible)::before { outline: 3px solid var(--amber); outline-offset: 2px; }
.packs-note { font-size: .92rem; color: var(--muted); margin: 1rem 0 0; max-width: 80ch; }

.plan-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem 1.5rem; background: var(--white); display: flex; flex-direction: column; }
.plan-popular { border: 2px solid var(--navy); box-shadow: 0 18px 44px rgba(11, 31, 63, .14); }
.plan-flag { position: absolute; top: -.85rem; left: 1.25rem; background: var(--navy); color: var(--white); font: 650 .8rem var(--text); padding: .25rem .7rem; border-radius: 999px; margin: 0; }
.plan-name { font-size: 1.5rem; margin-bottom: .6rem; }
.plan-price { margin: 0; color: var(--muted); font-size: .95rem; }
.plan-price strong { font: 700 2.75rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.plan-price s { color: var(--muted); margin-left: .25rem; }
.plan-unit { font-size: .92rem; color: var(--muted); margin: .35rem 0 1rem; }
.plan-desc { margin-bottom: 1.25rem; min-height: 3.2em; }
.plan .btn { align-self: stretch; }
.plan-list { list-style: none; padding: 0; margin: 1.5rem 0 0; font-size: .97rem; }
.plan-list li { padding: .3rem 0 .3rem 1.6rem; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: .1rem; top: .78rem; width: .85rem; height: .45rem; border-left: 2.5px solid var(--amber-deep); border-bottom: 2.5px solid var(--amber-deep); transform: rotate(-45deg) translateY(-50%); }
.plans-note { font-size: .92rem; color: var(--muted); margin: 1.5rem 0 0; max-width: 90ch; }

.payback { margin-top: 3rem; background: var(--paper); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.payback h3 { font-size: 1.5rem; }
.payback-in { font-size: 1.1rem; max-width: none; line-height: 2.2; margin-bottom: .5rem; }
.payback-in input { font: 700 1.1rem var(--display); width: 4.2rem; padding: .3rem .4rem; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); text-align: center; margin: 0 .15rem; }
.payback-in input:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--navy); }
.payback-out { font: 650 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--display); letter-spacing: -.015em; max-width: 46ch; margin-bottom: .75rem; }
.payback-out b { color: var(--blue); font-weight: 700; }
.payback-fine { font-size: .88rem; color: var(--muted); margin: 0; }

.addons { margin-top: 2.5rem; }
.addon { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.addon h3 { margin-bottom: .3rem; }
.addon-kind { font: 600 .8rem var(--text); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .12rem .6rem; margin-left: .4rem; vertical-align: middle; letter-spacing: 0; }
.addon p { color: var(--muted); max-width: 80ch; }
.addon-price strong { color: var(--ink); }

.compare { margin-top: 2rem; border-top: 1px solid var(--line); }
.compare summary, .faq summary { cursor: pointer; font: 650 1.15rem var(--display); padding: 1.1rem 2rem 1.1rem 0; list-style: none; position: relative; }
.compare summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.compare summary::after, .faq summary::after { content: ""; position: absolute; right: .35rem; top: 50%; width: .6rem; height: .6rem; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: translateY(-70%) rotate(45deg); }
.compare[open] summary::after, .faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.compare-scroll { overflow-x: auto; }
.cmp { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: .95rem; }
.cmp th, .cmp td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font: 700 1.1rem var(--display); border-bottom: 2px solid var(--ink); }
.cmp thead .is-popular { color: var(--blue); }
.cmp tbody th { font-weight: 600; width: 34%; }
.cmp-hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.cmp-group th { font: 650 .95rem var(--display); background: var(--paper); color: var(--ink); width: auto; }
.cmp .yes { color: #0c7a43; font-weight: 700; }
.cmp .no { color: #8a94a6; }
.compare-note { font-size: .88rem; color: var(--muted); margin-top: .75rem; }

/* ---- for employees ---- */
.emp-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); }
.emp-icon img { border-radius: 14px; box-shadow: 0 10px 24px rgba(11, 31, 63, .2); margin-top: 1.5rem; }
.emp-more { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: .5rem; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1rem; }

/* ---- questions ---- */
.faq { max-width: 52rem; margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* ---- closing band and footer ---- */
.close-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.close-row p { margin: 0; font-size: 1.15rem; }
.close-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.foot { background: #071530; color: #9fb2cf; padding: 3rem 0 2.5rem; font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.foot-brand { display: grid; gap: 1.25rem; }
.foot-maker { display: inline-flex; align-items: center; gap: .9rem; color: #9fb2cf; text-decoration: none; font-size: .88rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.foot-nav a { color: var(--on-dark); text-decoration: none; padding: .25rem 0; }
.foot-nav a:hover { color: var(--white); text-decoration: underline; }
.foot-legal { font-size: .85rem; max-width: 90ch; margin: 2.25rem 0 0; color: #8194b3; }

/* ---- 404 ---- */
.lost { min-height: 70vh; display: grid; align-items: center; }
.lost p { color: var(--on-dark); font-size: 1.2rem; }

/* ---- narrower screens ---- */
@media (max-width: 900px) {
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero-grid, .feature, .how-grid, .emp-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-bottom: clamp(6rem, 22vw, 9rem); }
  .hero-lede { max-width: 44ch; }
  .hero-shot { max-width: 34rem; }
  .feature-flip .feature-copy { order: 0; }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .proofs { grid-template-columns: minmax(0, 1fr); }
  .band-video .film { margin-top: clamp(-7rem, -18vw, -4rem); }
}
@media (max-width: 520px) {
  .top-signin { display: none; }
  .brand span { font-size: 1.05rem; }
  .browser { min-height: 0; padding-bottom: .75rem; }
  .browser-page { display: none; }
  .popup { position: relative; right: auto; top: auto; margin: .75rem auto 0; width: calc(100% - 1.5rem); }
  .art-popups { grid-template-columns: minmax(0, 1fr); max-width: 20rem; }
  .art-popups img:last-child { margin-top: 0; }
  .art-portal .art-preview { right: 0; }
  .plan-desc { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .popup, .popup.is-reopened { animation: none; }
}
