/* Clipick website. Brand: orange is the rising sun, near-black the night; the page scrolls from
   night to dawn. Approved in marketing/website/prototype. Motion is skipped entirely under
   Reduce Motion, and nothing is hidden unless site.js runs (html.js). */
:root {
  --accent: #F37021; --text: #ECEEF1; --sub: #A9B1BD; --line: rgba(255,255,255,.09);
  --night: #0E1320; --ease: cubic-bezier(.2,.8,.2,1);
  --title: linear-gradient(in oklab 100deg, #B9CDF0 0%, #9DB8E6 36%, #F29A5E 52%, #FFD27A 100%);
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--night); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Night → dawn: one tall gradient moved by scroll progress (--p, 0…1, set by site.js). */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.sky i { position: absolute; left: 0; right: 0; top: 0; height: 500vh;
  background: linear-gradient(180deg, #0E1320 0%, #111726 30%, #1C2742 58%, #3A3446 76%, #8C5A4A 88%, #E08A4E 96%, #F5B062 100%);
  transform: translateY(calc(var(--p, 0) * -400vh)); will-change: transform; }

.wrap { width: min(1120px, 90vw); margin: 0 auto; }
section { padding: 120px 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; padding-bottom: 4px;
  background: var(--title); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(32px, 4.6vw, 54px); }
.lead { color: var(--sub); font-size: clamp(17px, 1.6vw, 20px); max-width: 620px; }
.center { text-align: center; }
.center .lead { margin: 16px auto 0; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(14,19,32,.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
.nav .wrap, .nav nav { display: flex; align-items: center; gap: 24px; }
.nav .wrap { height: 56px; font-size: 14px; }
.nav nav a, .langs { color: var(--sub); }
.nav nav a:hover, .langs a:hover { color: var(--text); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; }
.brand img { width: 26px; height: 26px; }
.sp { flex: 1; }
.langs strong { color: var(--text); font-weight: 500; }
.langs a, .langs strong { margin-left: 8px; }
.langs a:first-child, .langs strong:first-child { margin-left: 0; }
.nav .pill { padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text); }

/* Hero: the real panel capture on a drawn desktop (1440×900 layout). */
.hero { padding: 96px 0 40px; }
.keys { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 34px 0 10px; color: var(--sub); font-size: 14px; }
.keys button { all: unset; display: flex; gap: 8px; cursor: pointer; border-radius: 12px; }
.keys button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: none) { .keys .hint { display: none; } }
kbd { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 10px;
  font: 600 20px -apple-system, system-ui, sans-serif; color: var(--text);
  background: linear-gradient(#262C3A, #1A1F2B); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 3px 0 #0A0D15, 0 6px 14px rgba(0,0,0,.35); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.keys.down kbd { transform: translateY(3px); box-shadow: 0 0 0 #0A0D15, 0 2px 6px rgba(0,0,0,.3); }

.desk { container-type: inline-size; position: relative; aspect-ratio: 1440 / 900; margin-top: 44px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(rgba(10,14,25,.28), rgba(10,14,25,.28)), url(../img/wallpaper.webp) center 60% / cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 120px rgba(0,0,0,.5); }
.menubar { position: absolute; inset: 0 0 auto; height: 3.1%; display: flex; align-items: center; gap: 1.4%; padding: 0 1.2%;
  background: rgba(20,22,26,.45); font-size: .9cqw; font-weight: 500; }
.panel { position: absolute; top: 4.4%; left: 1.67%; width: 96.66%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
  transition: transform .45s var(--ease), opacity .3s var(--ease); }
.panel.hidden, .js .panel.pre { transform: translateY(-14%); opacity: 0; pointer-events: none; }

/* Reveal once on entering the viewport. */
[data-reveal] { transition: transform .6s var(--ease), opacity .6s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  transition-delay: var(--delay, 0s); }
.js [data-reveal]:not(.in) { transform: translateY(28px); opacity: 0; }

/* Search: tap Travel in the sidebar, then the capture changes to the filtered one. */
.demo { position: relative; margin-top: 56px; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 120px rgba(0,0,0,.5); }
.demo img + img { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.demo.after img + img { opacity: 1; }
.tap { position: absolute; left: 7.4%; top: 25%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: rgba(243,112,33,.35); border: 2px solid rgba(243,112,33,.9); }
.demo.tapping .tap { animation: tap .7s var(--ease) forwards; }
@keyframes tap { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.replay { all: unset; cursor: pointer; display: inline-block; margin-top: 18px; color: var(--sub); font-size: 14px; }
.replay:hover { color: var(--text); }
.replay:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* Sync: Mac → iPad → iPhone */
.family { display: grid; grid-template-columns: minmax(0, 1.55fr) 46px minmax(0, 1.05fr) minmax(0, .42fr); align-items: end; gap: 2%; margin-top: 64px; }
.family .desk { margin: 0; border-radius: 10px; }
.ipad, .iphone { overflow: hidden; border-radius: 4.4% / 5.8%; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 80px rgba(0,0,0,.5); }
.iphone { border-radius: 16% / 7.4%; }
.syncdot { align-self: center; justify-self: center; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); box-shadow: 0 8px 22px rgba(243,112,33,.45); }
.syncdot.in svg { animation: spin .9s var(--ease) .2s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* And more (Bento) */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; text-align: start; }
.card { padding: 26px; border-radius: 22px; min-height: 210px; background: rgba(28,33,46,.55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: rgba(243,150,90,.45); box-shadow: 0 0 0 1px rgba(243,150,90,.15), 0 24px 60px rgba(0,0,0,.35); }
}
.card h3 { font-size: 21px; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--sub); font-size: 15px; }
.card .ico { color: #F29A5E; margin-bottom: 14px; }
.card.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.card.wide { grid-column: 1 / -1; }
.bigkeys { display: flex; gap: 12px; margin: 30px 0; }
.bigkeys kbd { min-width: 72px; height: 72px; font-size: 30px; border-radius: 16px; }

/* Sunrise */
.get { position: relative; padding: 160px 0 180px; }
.get::before { content: ''; position: absolute; left: 50%; bottom: 40px; width: min(900px, 100vw); height: 420px; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255,200,120,.55), rgba(243,112,33,.18) 60%, transparent); }
.store { display: inline-flex; margin-top: 36px; padding: 14px 26px; border-radius: 14px; background: #0B0E16; color: #fff; font-weight: 600;
  border: 1px solid rgba(255,255,255,.18); position: relative; }
.store small { display: block; font-weight: 400; font-size: 11px; color: var(--sub); }

/* Privacy and Support */
.doc { width: min(760px, 90vw); margin: 0 auto; padding: 72px 0 96px; overflow-wrap: anywhere; color: #D5DAE1; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 24px; }
.doc h2 { font-size: 20px; margin-top: 36px; margin-bottom: 8px; background: none; color: var(--text); letter-spacing: -.01em; line-height: 1.3; }
.doc p, .doc li { margin-top: 10px; }
.doc ul { padding-inline-start: 22px; }
.doc a { color: #F29A5E; text-decoration: underline; text-underline-offset: 2px; }

.footer { padding: 28px 0 40px; font-size: 13px; color: rgba(255,255,255,.82); background: rgba(10,12,20,.32); border-top: 1px solid rgba(255,255,255,.08); }
.footer a:hover { color: #fff; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 760px) {
  section { padding: 80px 0; }
  .nav nav > a:not(.pill) { display: none; }
  .nav nav { gap: 14px; }
  .family { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .family .desk { grid-column: span 2; }
  .syncdot { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .card.big, .card.wide { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
  .sky i { transform: none; height: 100vh; background: linear-gradient(180deg, #0E1320, #1C2742 70%, #3A3446); }
}
