/* WinTaskbar website: one stylesheet for the home page and the privacy page. */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --night: #000000;
  --night-2: #161617;
  --night-ink: #f5f5f7;
  --night-ink-2: #a1a1a6;
  --accent-a: #2e7bff;
  --accent-b: #a259ff;
  --accent-c: #ff5f8f;
  --radius: 28px;
  --nav-h: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Helvetica Neue", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "Helvetica Neue", "Noto Sans TC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

.wrap { width: min(980px, calc(100% - 44px)); margin: 0 auto; }
.wrap-wide { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(250, 250, 252, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 12px; }
.nav-links a { color: rgba(0, 0, 0, 0.8); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav .pill { font-size: 12px; padding: 4px 11px; }
@media (max-width: 720px) { .nav-links { display: none; } .nav .pill { margin-left: auto; } }

/* ---------- Buttons & links ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff;
  border: 0; border-radius: 980px;
  padding: 11px 22px; font-size: 17px; cursor: pointer;
  transition: background 0.2s;
}
.pill:hover { background: var(--blue-hover); text-decoration: none; }
.pill.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.pill.ghost:hover { background: var(--blue); color: #fff; }
.more::after { content: " ›"; }
.cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Type ---------- */

.eyebrow { font-size: 21px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; letter-spacing: 0.004em; }
.headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px); line-height: 1.05; font-weight: 700;
  letter-spacing: -0.015em; margin: 0;
}
.title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px); line-height: 1.07; font-weight: 700;
  letter-spacing: -0.005em; margin: 0 0 14px;
}
.subhead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--ink-2); font-weight: 500; margin: 14px 0 0; }
.gradient-text {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b) 55%, var(--accent-c));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.center { text-align: center; }

/* ---------- Sections ---------- */

section { padding: 110px 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--night); color: var(--night-ink); }
.dark .subhead, .dark .eyebrow { color: var(--night-ink-2); }
.dark a { color: #2997ff; }

/* Scroll reveal: elements slide up and fade in once they come into view. */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 40px; text-align: center; overflow: hidden; }
.hero .headline { margin-top: 10px; }
.hero .subhead { max-width: 720px; margin-left: auto; margin-right: auto; }
.hero .cta-row { margin-top: 30px; }
.hero .buy { font-size: 17px; color: var(--ink-2); text-decoration: none; }
.hero .buy:hover { color: var(--ink); text-decoration: underline; }
.hero .reqs-note { margin: 14px 0 0; font-size: 13px; }
.hero-note { font-size: 14px; color: var(--ink-3); margin-top: 14px; }
.hero-stage { margin-top: 56px; perspective: 1600px; }
.hero-stage .device { transform: rotateX(18deg) scale(0.92); transform-origin: 50% 100%; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.hero-stage.in .device { transform: none; }

.tryline { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.chip {
  font-size: 14px; padding: 7px 14px; border-radius: 980px; border: 0;
  background: var(--paper-2); color: var(--ink); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.chip:hover { background: #e8e8ed; transform: translateY(-1px); }
.chip b { color: var(--blue); font-weight: 600; }

/* ---------- Device frame around the demo ---------- */

.device {
  position: relative; margin: 0 auto; width: 100%; max-width: 1120px;
  border-radius: 22px; padding: 12px; background: linear-gradient(180deg, #2a2a2d, #111113);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.device::after { /* camera notch */
  content: ""; position: absolute; top: 4px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: #333;
}
.screen-fit { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; }

/* ---------- Demo controls ---------- */

.controls {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center;
  margin: 26px auto 0; font-size: 14px; color: var(--ink-2);
}
.seg { display: inline-flex; background: #e8e8ed; border-radius: 9px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--ink); }
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 11px; background: #d2d2d7; position: relative; cursor: pointer; transition: background 0.2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.3); transition: left 0.2s; }
.switch input:checked { background: #34c759; }
.switch input:checked::after { left: 18px; }
.controls label.range { display: inline-flex; align-items: center; gap: 8px; }
.controls input[type=range] { width: 110px; accent-color: var(--blue); }

/* ---------- Feature rows ---------- */

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .copy { order: 2; }
.feature .copy p { color: var(--ink-2); font-size: 19px; margin: 0 0 14px; }
.dark .feature .copy p { color: var(--night-ink-2); }
.feature .copy .title { font-size: clamp(30px, 4vw, 44px); }
.feature + .feature { margin-top: 130px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .copy { order: 0; }
}

/* A small animated scene (feature illustrations). */
.scene {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #5c7cfa 0%, #845ef7 40%, #f06595 100%);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.35);
}
.dark .scene { box-shadow: 0 30px 80px -25px rgba(80, 120, 255, 0.35); }
.scene.calm { background: radial-gradient(120% 100% at 80% 0%, #74c0fc 0%, #4dabf7 30%, #1c7ed6 70%, #1864ab 100%); }
.scene.sunset { background: radial-gradient(130% 100% at 10% 0%, #ffd8a8 0%, #ff922b 35%, #e8590c 70%, #862e9c 100%); }
.scene.night { background: radial-gradient(120% 100% at 50% 0%, #364fc7 0%, #1b1f3b 60%, #0b0d1a 100%); }
.scene.mint { background: radial-gradient(120% 100% at 20% 0%, #c3fae8 0%, #38d9a9 40%, #087f5b 100%); }

/* ---------- Bento grid ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.tile {
  grid-column: span 2; background: var(--paper); border-radius: var(--radius); padding: 30px 28px 32px;
  min-height: 220px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
}
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 22px; }
.tile h3 { margin: 6px 0 0; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: 0.002em; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.tile .big { font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile.wide { grid-column: span 1; } .tile.full { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.full { grid-column: span 1; } }

/* ---------- Pricing ---------- */

.fine { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* ---------- Comparison ---------- */

.compare-wrap { margin-top: 56px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); background: var(--paper); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid #ececf0; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink); font-weight: 500; position: sticky; left: 0; background: var(--paper); }
.compare thead th { font-size: 15px; font-weight: 600; padding-top: 24px; vertical-align: bottom; }
.compare thead th small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.compare .us { background: rgba(0,113,227,0.05); }
.compare thead .us { color: var(--blue); }
.compare .group td { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); background: var(--paper-2); padding: 10px 18px; }
.yes { color: #34c759; font-weight: 700; }
.no { color: #c7c7cc; }
.part { color: #ff9f0a; font-weight: 600; }

/* ---------- Privacy cards ---------- */

.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.pcard { background: var(--night-2); border-radius: var(--radius); padding: 32px 28px; }
.pcard h3 { margin: 14px 0 8px; font-size: 21px; color: var(--night-ink); }
.pcard p { margin: 0; color: var(--night-ink-2); font-size: 15px; }
.pcard .glyph { font-size: 34px; line-height: 1; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 0.9; color: var(--ink-2); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 12px 0 0; max-width: 760px; }

/* ---------- Download ---------- */

.codeline { display: inline-block; margin-top: 22px; font-family: var(--mono); font-size: 13px; background: var(--paper-2); padding: 9px 14px; border-radius: 10px; color: var(--ink-2); }

/* ---------- Footer ---------- */

footer { background: var(--paper-2); color: var(--ink-3); font-size: 12px; padding: 30px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
footer a { color: var(--ink-2); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Privacy policy page ---------- */

.doc { padding: 70px 0 110px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 48px); margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; margin: 48px 0 12px; }
.doc p, .doc li { color: #333336; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
.doc th { font-weight: 600; background: var(--paper-2); }
.doc .callout { background: var(--paper-2); border-radius: 18px; padding: 22px 24px; margin: 26px 0; }
.todo { background: #fff3bf; border-radius: 4px; padding: 0 4px; }

/* ---------- Languages ---------- */

html.i18n-pending body { visibility: hidden; }
:lang(zh-Hans) body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:lang(ja) body { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; }
:lang(ko) body { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
:lang(en) body, :lang(es) body, :lang(fr) body, :lang(de) body { letter-spacing: -0.015em; }
.lang-picker { font: inherit; font-size: 12px; color: var(--ink-2); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; cursor: pointer; }

/* "macOS 14+ · Apple silicon" badge above the hero headline */
.platform { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 18px; padding: 6px 14px; border-radius: 980px;
  background: var(--paper-2); color: var(--ink-2); font-size: 14px; font-weight: 500; }
.platform svg { width: 17px; height: 17px; }
