/* Kufu Glass, the page: the extension's own look. A wallpaper underneath, clear glass on top with a rim that is
   bright at the top and bottom, Apple's text levels, and the liquid-glass press motion. */
@font-face { font-family: "Sunghyun Sans"; font-weight: 400; font-display: swap; src: url("/fonts/sunghyun-400-0.woff2") format("woff2"); }
@font-face { font-family: "Sunghyun Sans"; font-weight: 500; font-display: swap; src: url("/fonts/sunghyun-500-0.woff2") format("woff2"); }
@font-face { font-family: "Sunghyun Sans"; font-weight: 600; font-display: swap; src: url("/fonts/sunghyun-600-0.woff2") format("woff2"); }
@font-face { font-family: "Sunghyun Sans"; font-weight: 700; font-display: swap; src: url("/fonts/sunghyun-700-0.woff2") format("woff2"); }

:root {
  --text: #FFFFFF;
  --muted: rgb(235 235 245 / .74);
  --faint: rgb(235 235 245 / .54);
  --glass: rgb(255 255 255 / .08);
  --glass-hi: rgb(255 255 255 / .14);
  --rim: conic-gradient(rgb(255 255 255 / .62), rgb(255 255 255 / .3) 30deg, rgb(255 255 255 / .06) 60deg, rgb(0 0 0 / .18) 90deg, rgb(255 255 255 / .06) 120deg, rgb(255 255 255 / .3) 150deg, rgb(255 255 255 / .62) 180deg, rgb(255 255 255 / .3) 210deg, rgb(255 255 255 / .06) 240deg, rgb(0 0 0 / .18) 270deg, rgb(255 255 255 / .06) 300deg, rgb(255 255 255 / .3) 330deg, rgb(255 255 255 / .62));
  --drop: 0 8px 30px rgb(0 0 0 / .22);
  --gel: cubic-bezier(.3, 1.45, .45, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; min-height: 100vh; background: #0B0D1A; color: var(--text);
  font: 400 16px/1.55 "Sunghyun Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
code { padding: 1px 6px; border-radius: 6px; background: var(--glass-hi); font: 500 .92em "Cascadia Mono", Consolas, monospace; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }

/* ---------- the wallpaper ---------- */
/* Apple-style folded ribbons of colour, drawn once as an image; the glass above has plenty to bend */
.wall { position: fixed; inset: 0; z-index: -1; background: #05071A url("/wall.svg") center / cover no-repeat; }
@keyframes drift { to { translate: 8vmax 6vmax; scale: 1.12; } }

/* ---------- glass ---------- */
.glass, .lens { position: relative; background: var(--glass); -webkit-backdrop-filter: blur(var(--blur, 14px)) saturate(1.5); backdrop-filter: blur(var(--blur, 14px)) saturate(1.5); box-shadow: var(--drop); }
/* a hairline rim: the conic light cut down to a 1px ring */
.glass::before, .lens::before, .pill::before, .nested::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ---------- buttons: capsules that grow under a press and settle back like gel ---------- */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: scale .5s var(--gel), background .2s; }
.pill:active { scale: 1.06; transition-duration: .24s; }
.pill.small { height: 36px; padding: 0 16px; font-size: 14px; }
.pill.primary { background: #FFFFFF; color: #1D1D1F; box-shadow: 0 6px 24px rgb(0 0 0 / .28); }
.pill.primary::before { display: none; }
.pill.primary:hover { background: #F2F2F5; }
.pill.glass:hover { background: var(--glass-hi); }
.pill:focus-visible, .links a:focus-visible, summary:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

/* ---------- top bar ---------- */
.nav { position: fixed; z-index: 10; top: 14px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 22px; width: min(960px, calc(100% - 32px)); height: 56px; padding: 0 10px 0 16px; border-radius: 999px; --blur: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 7px; }
.brand b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { padding: 7px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s, color .2s; }
.links a:hover { color: var(--text); background: var(--glass); }

/* ---------- sections ---------- */
main > section { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.head { max-width: 620px; margin: 0 auto 36px; text-align: center; }
.head h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; line-height: 1.1; }
.head p { margin: 14px 0 0; color: var(--muted); font-size: 17px; }

.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 110px 0 70px; text-align: center; }
/* the clock: big glass numbers, light catching their edges, the wallpaper showing through */
.clock {
  font: 700 clamp(120px, 21vw, 230px)/.95 "Sunghyun Sans", sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  color: rgb(255 255 255 / .1);
  -webkit-text-stroke: 1px rgb(255 255 255 / .42);
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / .38)) drop-shadow(0 -1px 0 rgb(0 0 0 / .14)) drop-shadow(0 10px 30px rgb(0 0 0 / .18));
  user-select: none;
}
.hero h1 { margin-top: 20px; font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.04; }
.lead { max-width: 600px; margin: 18px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.fine { margin: 18px 0 0; color: var(--faint); font-size: 14px; }

/* ---------- the working demo ---------- */
.try { padding: 70px 0; }
.demo { position: relative; overflow: hidden; height: 600px; border-radius: 28px; box-shadow: 0 30px 80px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .1); --frost: 0;
  --ink: #FFFFFF; --ink2: rgb(235 235 245 / .78); --pane: rgb(255 255 255 / calc(.07 + .25 * var(--frost))); --nest: rgb(160 160 165 / .42); }
.demo[data-mode="light"] { --ink: #1D1D1F; --ink2: rgb(60 60 67 / .82); --pane: rgb(255 255 255 / calc(.34 + .3 * var(--frost))); --nest: rgb(255 255 255 / .6); }
.demo-wall { position: absolute; inset: 0; background: #05071A url("/wall.svg") 30% 62% / 170% auto no-repeat; transition: filter .5s; }
.demo[data-mode="light"] .demo-wall { filter: brightness(1.75) saturate(.9); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 46px 20px 0; color: var(--ink); transition: color .4s; }
.demo .lens { background: var(--pane); --blur: calc(var(--frost) * 18px); box-shadow: 0 2px 10px rgb(0 0 0 / .12); transition: background .4s; }
.d-time { font: 700 104px/1 "Sunghyun Sans", sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / calc(.08 + .6 * var(--frost))); -webkit-text-stroke: 1px rgb(255 255 255 / .5); filter: drop-shadow(0 1px 0 rgb(255 255 255 / .35)); }
.d-date { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.d-date span { color: var(--ink2); }
.d-week { display: flex; gap: 2px; padding: 4px; border-radius: 16px; }
.d-week span { display: flex; flex-direction: column; align-items: center; width: 30px; padding: 3px 0; border-radius: 11px; font-size: 10px; font-weight: 600; line-height: 1.25; }
.d-week span b { font-size: 14px; }
.d-week span.today { position: relative; background: var(--nest); }
.d-greet { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 600; }
.sun { width: 26px; height: 14px; border: 2px solid #F5C04A; border-bottom: 0; border-radius: 26px 26px 0 0; }
.d-search { display: flex; align-items: center; gap: 10px; width: min(480px, 100%); height: 46px; padding: 0 8px 0 16px; border-radius: 999px; color: var(--ink); }
.d-search span { flex: 1; color: var(--ink2); }
.nested { position: relative; padding: 5px 12px; border-radius: 999px; background: var(--nest); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1; font-style: normal; }
.d-keys { display: flex; gap: 12px; }
.key { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; padding: 10px 0 8px; border-radius: 20px; }
.key i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgb(255 255 255 / .1); color: var(--c); font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1; font-style: normal; }
.key small { font-size: 11.5px; font-weight: 600; }
.d-quote { display: flex; flex-direction: column; gap: 4px; padding: 14px 22px; border-radius: 22px; font: 500 16px Georgia, serif; text-align: center; }
.d-quote small { color: var(--ink2); font: 500 12px "Sunghyun Sans", sans-serif; }
.controls { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; display: flex; align-items: center; gap: 22px; padding: 8px 20px 8px 8px; border-radius: 999px; --blur: 24px; background: rgb(20 20 26 / .38); }
.tabbar { position: relative; display: flex; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .08); }
.tabbar button { position: relative; z-index: 1; height: 34px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .25s; }
.tabbar button[aria-checked="true"] { color: #FFFFFF; }
.tab-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 999px; background: rgb(160 160 165 / .5); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 0 0 1px rgb(255 255 255 / .14); transition: translate .5s var(--gel), width .5s var(--gel); }
.frost { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.frost .track { position: relative; display: block; width: 170px; height: 28px; }
.frost .track::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: 3px; background: rgb(128 128 128 / .3); }
.frost .fill { position: absolute; left: 0; top: 11px; height: 6px; width: var(--p, 0%); border-radius: 3px; background: #8E8E93; }
.frost .thumb { position: absolute; top: 14px; left: var(--p, 0%); width: 20px; height: 16px; translate: -50% -50%; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 3px 12px rgb(0 0 0 / .1); transition: width .2s ease-in-out, height .2s ease-in-out, background .2s; pointer-events: none; }
.frost .track:active .thumb { width: 25px; height: 20px; background: rgb(255 255 255 / .25); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55), inset 0 1px 0 rgb(255 255 255 / .8); }
.frost input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: grab; }

/* ---------- features ---------- */
.features { padding: 80px 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 26px 24px 24px; border-radius: 26px; transition: scale .5s var(--gel), background .25s; }
.card:hover { background: var(--glass-hi); }
.card h3 { margin-top: 16px; font-size: 19px; font-weight: 600; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(color-mix(in srgb, var(--b) 78%, #fff), var(--b)); color: #fff; font-size: 21px; font-weight: 700; box-shadow: 0 4px 14px color-mix(in srgb, var(--b) 35%, transparent); }

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 20px 0 80px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 24px; }
.stat b { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- install ---------- */
.install { padding: 80px 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 16px; padding: 24px; border-radius: 24px; }
.steps li > b { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #FFFFFF; color: #1D1D1F; font-size: 16px; }
.steps h3 { font-size: 17px; font-weight: 600; }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 28px auto 0; }
details { padding: 16px 20px; border-radius: 20px; }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 500; transition: rotate .3s var(--gel); }
details[open] summary::after { rotate: 45deg; }
details p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.last { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 100px 0 120px; text-align: center; }
.last h2 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 700; line-height: 1.06; }
footer { padding: 0 16px 40px; color: var(--faint); font-size: 13.5px; text-align: center; }
footer a { color: var(--muted); }

/* ---------- arriving as you scroll ---------- */
.rv { opacity: 0; translate: 0 18px; transition: opacity .7s ease, translate .9s var(--gel); }
.rv.in { opacity: 1; translate: 0 0; }

@media (max-width: 860px) {
  .grid, .steps, .numbers { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .nav { gap: 12px; } .brand { margin-right: auto; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid, .steps, .numbers { grid-template-columns: 1fr; }
  .demo { height: 640px; }
  .d-time { font-size: 72px; }
  .key { width: 60px; } .hide-s { display: none; }
  .controls { flex-direction: column; gap: 10px; padding: 10px 14px; border-radius: 26px; }
  .d-greet { font-size: 21px; }
}
