/* Dailo — getdailo.xyz
   "Night with the lamp on": the extension's Night theme, warmed by the logo's
   butter-and-toast palette. Display face: Bricolage Grotesque (self-hosted,
   OFL licence — no third-party requests, privacy is the brand). */

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

@view-transition { navigation: auto; }

/* ------------------------------ tokens ------------------------------ */
:root {
  --bg: #171310;
  --bg-inset: #100d0a;
  --bg-elev: #221c16;
  --border: rgba(255, 210, 150, .10);
  --text: #f5efe6;
  --dim: #9c9184;
  --ember: #f77938;
  --ember-deep: #db3e05;
  --butter: #ffd67e;
  --brown: #804524;
  --success: #74d99f;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", "SF Mono", Menlo, Consolas, monospace;
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.077 22.7%, 1.089 24.8%, 1.086 27.1%, 1.038 34.1%, 1.016 38.1%, 1.001 43.7%, .997 51.1%, 1);
  color-scheme: dark;
}

/* ------------------------------- base ------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
button, a { font: inherit; }
button { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
::selection { background: var(--brown); color: var(--butter); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 40; background: var(--text); color: var(--bg-inset); padding: 10px 14px; border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

kbd {
  font-family: var(--mono); font-size: 11px; line-height: 1;
  padding: 5px 8px 4px; border-radius: 6px;
  border: 1px solid rgba(255, 210, 150, .18); border-bottom-width: 2px;
  background: var(--bg-elev); color: #e9dfd0;
  transition: transform 90ms ease, border-bottom-width 90ms ease, background 90ms ease, color 90ms ease;
}
kbd.pressed { transform: translateY(1px); border-bottom-width: 1px; background: rgba(255, 214, 126, .16); color: var(--butter); }

/* ------------------------------ header ------------------------------ */
.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.logo { border-radius: 25%; display: block; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-link { color: var(--dim); font-size: 14px; }
.header-link:hover { color: var(--text); }

/* ------------------------------ buttons ----------------------------- */
.button, .button-secondary {
  min-height: 50px; border-radius: 12px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-weight: 700; border: 1px solid transparent; position: relative;
}
.button { background: var(--ember); color: var(--bg-inset); }
.button:hover { background: #ff8b4f; color: var(--bg-inset); }
.button:active { transform: scale(.98); }
.button-small { min-height: 38px; padding: 0 14px; border-radius: 9px; font-size: 14px; }
.button-large { min-height: 58px; padding-inline: 28px; margin-top: 34px; }
.button-secondary { background: transparent; border-color: var(--border); color: #877d70; cursor: not-allowed; }
.magnetic { --mx: 0px; --my: 0px; --gx: 50%; --gy: 50%; transform: translate(var(--mx), var(--my)); background-image: radial-gradient(circle at var(--gx) var(--gy), rgba(219, 62, 5, .10), transparent 46%); }

/* ------------------------------- hero ------------------------------- */
.hero { padding-block: 44px 24px; text-align: center; }
.hero-copy { max-width: 860px; margin-inline: auto; }
.hero-copy > * { animation: rise .6s cubic-bezier(.2, .7, .3, 1) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .13s; }
.hero-copy > *:nth-child(3) { animation-delay: .22s; }
.hero-copy > *:nth-child(4) { animation-delay: .31s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.eyebrow, .step { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); font-weight: 500; text-transform: lowercase; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; }
.eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--butter); }

h1 { font-size: clamp(46px, 6.4vw, 92px); font-weight: 750; letter-spacing: -.015em; line-height: .98; margin-top: 18px; }
h1 em { font-style: normal; font-weight: 300; color: var(--butter); }
.hero-sub { margin: 24px auto 30px; color: #b5aa9b; max-width: 520px; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* --------------------------- the stage ------------------------------ */
.stage { max-width: 1020px; margin: 56px auto 0; animation: rise .7s cubic-bezier(.2, .7, .3, 1) .42s backwards; }

.browser {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: #1c1712; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  text-align: left;
}

/* tab strip */
.bw-top { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 0; background: var(--bg-inset); }
.bw-dots { display: flex; gap: 6px; padding-bottom: 12px; }
.bw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #383026; }
.bw-tabs { display: flex; align-items: flex-end; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.bw-newtab-btn { color: #5d5347; padding: 0 6px 10px; font-size: 15px; }

.tab {
  flex: 0 1 30px; min-width: 0; height: 32px; padding: 0 8px;
  display: flex; align-items: center; gap: 7px; overflow: hidden;
  border-radius: 9px 9px 0 0; color: #b9ad9d; font-size: 11.5px; white-space: nowrap;
  transition: flex-basis 260ms var(--spring), padding 260ms var(--spring), opacity 200ms ease, transform 260ms var(--spring);
}
.tab .fav { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; }
.tab .t-label { overflow: hidden; text-overflow: ellipsis; }
.tab.active { flex: 0 0 190px; background: #241d16; }
.tab.gone { flex-basis: 0; padding: 0; opacity: 0; }
.tab.sunk { opacity: 0; transform: translateY(8px); }
.tab.blocked .fav { background: var(--ember-deep); box-shadow: 0 0 0 3px rgba(219, 62, 5, .25); }
.fav.coral { background: #ed7954; } .fav.blue { background: #6aa6cf; } .fav.green { background: #74d99f; }
.fav.amber { background: #ffae00; } .fav.red { background: #e05252; } .fav.paper { background: #cfc4b4; }

/* toolbar */
.bw-bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #241d16; border-bottom: 1px solid rgba(0, 0, 0, .35); }
.bw-nav { display: flex; gap: 10px; }
.bw-nav svg, .bw-url svg { width: 15px; height: 15px; fill: none; stroke: #5d5347; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bw-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--bg-inset); border-radius: 999px; padding: 7px 14px; color: #877d70; font-family: var(--mono); font-size: 11.5px; }
.bw-url-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-ext { width: 30px; height: 30px; padding: 4px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; position: relative; }
.bw-ext:hover { background: rgba(255, 214, 126, .10); }
.bw-ext svg { width: 100%; height: 100%; display: block; border-radius: 6px; }
.bw-ext::after { content: ""; position: absolute; inset: -3px; border-radius: 10px; border: 1px solid rgba(255, 198, 53, .35); opacity: 0; }
.browser[data-state="base"] .bw-ext::after { animation: beckon 2.4s ease-out 1.2s infinite; }
.browser:has(.dial-menu.open) .bw-ext::after { animation: none; }
@keyframes beckon { 0% { opacity: 0; transform: scale(.85); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }

/* page area */
.bw-page { position: relative; height: clamp(330px, 44vh, 420px); background: #1b1511; overflow: hidden; }

/* article skeleton */
.pg-article { position: absolute; inset: 0; padding: 34px clamp(24px, 6vw, 72px); transition: opacity 300ms ease, filter 300ms ease; }
.sk { border-radius: 6px; background: #2c241c; }
.sk-title { height: 22px; width: 62%; background: #362c22; margin-bottom: 14px; }
.sk-meta { height: 10px; width: 30%; margin-bottom: 26px; background: #241d16; }
.sk-p { height: 11px; margin-bottom: 12px; }
.sk-img { height: 84px; margin: 20px 0; background: #241d16; border: 1px solid var(--border); }
.w92 { width: 92%; } .w98 { width: 98%; } .w84 { width: 84%; } .w95 { width: 95%; } .w70 { width: 70%; }
.pg-article.variant .sk-title { width: 40%; }
.pg-article.variant .sk-img { height: 140px; }
.pg-article.variant .sk-p:nth-of-type(odd) { width: 55%; }

/* Dailo new tab (revealed on save-all) */
.pg-newtab { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #191411; opacity: 0; pointer-events: none; transition: opacity 320ms ease; }
.browser[data-state="space"] .pg-newtab { opacity: 1; pointer-events: auto; }
.browser[data-state="space"] .pg-article { opacity: 0; }
.nt-greet { margin: 0; font-family: var(--display); font-weight: 650; font-size: 26px; }
.nt-clock { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.nt-folders { display: flex; gap: 8px; margin-top: 18px; }
.nt-folders span { font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }

.space-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px;
  transform: scale(.85); opacity: 0; transition: transform 480ms var(--spring), opacity 200ms ease;
}
.browser[data-state="space"] .space-card { transform: scale(1); opacity: 1; transition-delay: 240ms; }
.space-icon { display: grid; grid-template-columns: repeat(3, 7px); gap: 2px; align-items: end; height: 22px; }
.space-icon i { display: block; background: var(--ember); border-radius: 2px; height: 13px; }
.space-icon i:nth-child(2) { height: 21px; background: var(--butter); }
.space-icon i:nth-child(3) { height: 16px; }
.sc-body strong { display: block; font-size: 13.5px; }
.sc-body small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 3px; }
.sc-count { font-family: var(--mono); font-style: normal; font-weight: 600; color: var(--butter); }
.sc-restore { margin-left: 10px; min-height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--ember); background: transparent; color: var(--ember); font-weight: 700; font-size: 12.5px; cursor: pointer; transition: background 140ms ease, color 140ms ease, transform 140ms ease; }
.sc-restore:hover, .sc-restore.pressing { background: var(--ember); color: var(--bg-inset); }
.sc-restore.pressing { transform: scale(.96); }

/* focus session */
.pg-dim { position: absolute; inset: 0; background: rgba(10, 7, 5, .55); opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
.browser[data-state="focus"] .pg-dim { opacity: 1; }
.browser[data-state="focus"] .pg-article { filter: saturate(.6); }
.focus-pill {
  position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
  font-family: var(--mono); font-size: 13px;
  opacity: 0; transform: translateY(-8px); transition: transform 300ms var(--spring), opacity 180ms ease;
}
.focus-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); animation: blink 1.2s ease-in-out infinite; }
.focus-pill.done i { background: var(--success); animation: none; }
@keyframes blink { 50% { opacity: .35; } }
.browser[data-state="focus"] .focus-pill { opacity: 1; transform: none; }
.blocked-toast {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9);
  background: var(--bg-elev); border: 1px solid rgba(219, 62, 5, .45); border-radius: 12px;
  padding: 14px 20px; text-align: center; opacity: 0; pointer-events: none;
  transition: transform 320ms var(--spring), opacity 180ms ease;
}
.blocked-toast strong { display: block; font-size: 14px; }
.blocked-toast small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 4px; }
.blocked-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* generic result toast (saved-to-folder, snooze) */
.pg-toast {
  position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; align-items: center; gap: 12px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px;
  font-size: 13px; opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden;
  transition: transform 340ms var(--spring), opacity 180ms ease, visibility 0s 180ms;
}
.pg-toast.show { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.pt-text b { color: var(--butter); font-family: var(--mono); font-weight: 600; }
.pt-action { background: none; border: 0; padding: 0; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 12px; }
.pt-action:hover { color: var(--text); }

/* ------------------------------ the dial ---------------------------- */
/* Port of the extension's chiclet dial (packages/dial) — product colors kept. */
.dial-layer { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 8; }
.dial-menu { position: relative; width: 300px; height: 300px; display: none; pointer-events: auto; }
.dial-menu.open { display: block; }
.dial-halo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 196px; height: 196px; border-radius: 50%; background: rgba(255, 198, 53, .13); animation: halo-in .2s ease backwards; }
@keyframes halo-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.85); } }
.dial-chip {
  position: absolute; transform: translate(-50%, -50%); width: 58px; height: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 4px;
  background: #1c1c1e; color: #fff; border: 0; border-radius: 17px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(10, 6, 2, .45);
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
  animation: chip-pop .2s cubic-bezier(.2, .9, .3, 1.3) backwards; animation-delay: calc(var(--i, 0) * 26ms);
}
@keyframes chip-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.45); } }
.dial-chip:hover, .dial-chip.is-armed { transform: translate(-50%, -50%) scale(1.08); background: #2c2c2f; }
.dial-chip.is-armed { box-shadow: 0 0 0 3px #f26f2e, 0 10px 26px rgba(10, 6, 2, .45); }
.dial-chip:active { transform: translate(-50%, -50%) scale(1); }
.dial-chip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dial-chip span { font-size: 10px; font-weight: 600; line-height: 1; max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dial-chip--back { background: #fff; color: #1c1c1e; }
.dial-chip--back:hover { background: #f5f3ef; }
.dial-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; padding: 0; border: 0; background: transparent; border-radius: 16px; cursor: pointer; transition: transform .15s ease; }
.dial-core:hover { transform: translate(-50%, -50%) scale(1.06); }
.dial-core svg { display: block; width: 100%; height: 100%; border-radius: 16px; filter: drop-shadow(0 8px 20px rgba(219, 62, 5, .35)); }
.dial-hint { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; color: #fff; opacity: .55; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* stage captions */
.stage-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.hint-default { display: inline-flex; align-items: center; gap: 6px; }
.stage-hint i { font-style: normal; color: #6b6156; font-size: 10px; }
.hint-alt { color: #6b6156; }
.stage-caption { min-height: 22px; margin: 10px 0 0; text-align: center; font-family: var(--mono); font-size: 12.5px; color: var(--butter); transition: opacity 200ms ease; }
.stage-caption:empty { opacity: 0; }

/* ------------------------------ proofs ------------------------------ */
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: 110px 90px; }
.proof { border-top: 1px solid var(--border); padding-top: 22px; }
.proof .step { margin: 0 0 16px; color: var(--butter); }
.proof h2 { font-size: clamp(22px, 2.2vw, 29px); font-weight: 600; line-height: 1.22; letter-spacing: -.01em; text-wrap: pretty; }

/* --------------------------- privacy band --------------------------- */
.privacy-band { background: var(--bg-inset); border-block: 1px solid var(--border); }
.privacy-inner { min-height: 420px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8vw; padding-block: 70px; }
.privacy-inner .step { margin: 0 0 18px; }
.privacy-inner h2, .final-cta h2 { font-size: clamp(40px, 6vw, 84px); font-weight: 750; letter-spacing: -.015em; line-height: 1; }
.privacy-inner h2 em { font-style: normal; font-weight: 300; color: var(--butter); }
.privacy-lines p { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--border); color: #b5aa9b; }
.privacy-lines a { display: inline-block; color: var(--ember); margin-top: 24px; font-weight: 700; }

/* ----------------------------- final cta ----------------------------- */
.final-cta { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { margin-top: 16px; }

/* ------------------------------ footer ------------------------------ */
footer { border-top: 1px solid var(--border); }
.footer-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 25px; align-items: center; color: var(--dim); font-size: 14px; }
.footer-links a:hover { color: var(--text); }

/* --------------------------- policy pages ---------------------------- */
.policy-main { padding: 70px 0 140px; }
.policy-head { max-width: 780px; margin-bottom: 64px; }
.policy-head .eyebrow { justify-content: flex-start; }
.policy-head h1 { font-size: clamp(40px, 6vw, 74px); margin-top: 16px; }
.policy-meta { color: var(--dim); line-height: 1.7; }
.policy-content { max-width: 780px; font-size: 17px; line-height: 1.75; color: #beb3a4; }
.policy-content h2 { font-size: 25px; color: var(--text); margin: 56px 0 15px; font-weight: 650; }
.policy-content p { margin: 0 0 20px; text-wrap: pretty; }
.policy-content ul { padding-left: 24px; }
.policy-content li { margin: 10px 0; }
.policy-content strong { color: #ece4d7; }
.policy-content a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }
.policy-content blockquote { margin: 32px 0; padding: 20px 24px; border-left: 2px solid var(--ember); background: var(--bg-inset); color: #a3988a; border-radius: 0 10px 10px 0; }
.policy-content code { font-size: .9em; color: #ded3c3; font-family: var(--mono); }

/* ------------------------------ reveal ------------------------------- */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.seen { opacity: 1; transform: none; transition: transform 500ms ease, opacity 500ms ease; }

/* ---------------------------- responsive ----------------------------- */
@media (max-width: 900px) {
  .proofs { grid-template-columns: 1fr; gap: 0; padding-block: 70px 50px; }
  .proof { padding-block: 26px; }
  .privacy-inner { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding-block: 70px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 30px; padding-block: 38px; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .site-header { height: 64px; }
  .hero { padding-top: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button-secondary { width: 100%; }
  .hero-actions .button { width: 100%; }
  .bw-nav { display: none; }
  .tab.active:not(.gone) { flex: 0 0 110px; }
  .bw-page { height: 300px; }
  .nt-greet { font-size: 21px; }
  .space-card { transform-origin: center; }
  .pg-article { padding: 24px 20px; }
  .final-cta { min-height: 440px; }
}
@media (max-height: 820px) {
  .hero { padding-block: 24px 20px; }
  .stage { margin-top: 36px; }
}
@media (pointer: coarse) {
  .hint-default, .hint-alt { display: none; }
  .stage-hint::before { content: "tap the Dailo button in the toolbar"; }
}

/* -------------------------- reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .magnetic { transform: none !important; }
  .browser[data-state="base"] .bw-ext::after { animation: none; opacity: 0; }
}
