:root {
  --page: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --separator: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: #e8f2ff;
  --green: #248a3d;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 2px 3px rgba(0, 0, 0, 0.02), 0 14px 40px rgba(0, 0, 0, 0.055);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 50% 370px, rgba(41, 151, 255, 0.09), transparent 430px), var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  background: rgba(250, 250, 252, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -4px;
  border-radius: 5px;
  background: linear-gradient(#fff, #fff) 4px 7px / 10px 1.5px no-repeat, linear-gradient(#fff, #fff) 4px 11px / 7px 1.5px no-repeat, linear-gradient(145deg, #4db0ff, #006be6);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,.45);
}

.brand span { color: var(--tertiary); font-weight: 500; }
.privacy-pill { display: flex; align-items: center; color: var(--secondary); font-size: 12px; }
.privacy-pill i { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.12); }
main { overflow: hidden; }

.hero { max-width: 1040px; margin: 0 auto; padding: 112px 24px 72px; text-align: center; }
.eyebrow { margin: 0 0 19px; color: var(--blue); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; }
.hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(52px, 7.2vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -0.058em; }
.hero h1 em { color: transparent; font-style: normal; background: linear-gradient(100deg, #0071e3 14%, #6b5cff 55%, #bf5af2 92%); -webkit-background-clip: text; background-clip: text; }
.lede { max-width: 680px; margin: 28px auto 0; color: var(--secondary); font-size: 20px; font-weight: 400; line-height: 1.55; letter-spacing: -0.015em; }

.workspace {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1.08fr 0.9fr;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 88px;
}

.workspace::before { content: ""; position: absolute; z-index: -1; inset: -70px 9% 12px; border-radius: 50%; background: rgba(255,255,255,.65); filter: blur(70px); }

.step-card {
  min-width: 0;
  min-height: 430px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}

.step-card:hover:not(.muted) { transform: translateY(-2px); box-shadow: 0 2px 3px rgba(0,0,0,.02), 0 20px 48px rgba(0,0,0,.075); }
.step-card.muted { opacity: 0.48; box-shadow: none; }
.step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.step-title b { display: grid; place-items: center; width: 30px; height: 30px; color: var(--blue); border-radius: 9px; background: var(--blue-soft); font-size: 11px; font-weight: 700; }
.step-title span { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.step-title small { margin-left: auto; color: var(--tertiary); font-size: 12px; }

.drop-zone {
  height: 245px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: var(--radius-lg);
  background: rgba(245,245,247,.7);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.drop-zone:hover, .drop-zone.drag { border-color: rgba(0,113,227,.62); background: rgba(232,242,255,.72); transform: scale(1.006); }
.upload-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 17px; color: #fff; border-radius: 16px; background: linear-gradient(145deg, #39a0ff, #0071e3); box-shadow: 0 10px 25px rgba(0,113,227,.23), inset 0 1px 0 rgba(255,255,255,.35); font-size: 24px; font-weight: 400; }
.drop-zone strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.drop-zone small { margin-top: 7px; color: var(--tertiary); font-size: 12px; }

.file-summary { height: 112px; display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--separator); border-radius: var(--radius-md); background: rgba(255,255,255,.75); }
.file-badge { width: 50px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 12px; background: linear-gradient(145deg, #34c759, #248a3d); box-shadow: 0 7px 16px rgba(36,138,61,.19); font-size: 10px; font-weight: 750; }
.file-summary > div:nth-child(2) { min-width: 0; flex: 1; }
.file-summary strong, .file-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-summary strong { font-size: 13px; }
.file-summary small { margin-top: 5px; color: var(--tertiary); font-size: 11px; }
.icon-button { width: 28px; height: 28px; padding: 0; color: var(--tertiary); cursor: pointer; border: 0; border-radius: 50%; background: var(--page); font-size: 19px; }
.sample-row { margin-top: 16px; color: var(--tertiary); text-align: center; font-size: 12px; }
.text-button { padding: 5px; color: var(--blue); cursor: pointer; border: 0; background: none; font-size: 12px; font-weight: 500; }
.text-button:hover { text-decoration: underline; }

.people-toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.search { flex: 1; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid transparent; border-radius: 11px; background: var(--page); transition: border-color .2s, background .2s; }
.search:focus-within { border-color: rgba(0,113,227,.55); background: #fff; }
.search span { color: var(--tertiary); }
.search input { width: 100%; padding: 10px 2px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search input::placeholder { color: #a1a1a6; }
.people-list { height: 307px; display: flex; flex-direction: column; gap: 7px; padding-right: 3px; overflow: auto; scrollbar-color: #d2d2d7 transparent; scrollbar-width: thin; }
.empty-state { height: 100%; display: grid; place-items: center; color: var(--tertiary); text-align: center; font-size: 12px; }

.person { display: flex; align-items: center; gap: 11px; padding: 10px 12px; cursor: pointer; border: 1px solid var(--separator); border-radius: 12px; background: rgba(255,255,255,.68); transition: border-color .18s, background .18s, transform .18s; }
.person:hover { border-color: rgba(0,113,227,.32); background: #fff; transform: translateX(1px); }
.person:has(input:checked) { border-color: rgba(0,113,227,.3); background: var(--blue-soft); }
.person input { width: 17px; height: 17px; accent-color: var(--blue); }
.person-name { font-size: 13px; font-weight: 560; }
.person-meta { margin-left: auto; color: var(--tertiary); font-size: 11px; }
.person.long-day .person-meta { color: #9a6700; }

.settings { display: flex; flex-direction: column; gap: 19px; }
.settings label { font-size: 13px; }
.settings label > span { display: block; margin-bottom: 8px; font-weight: 560; }
.settings select { width: 100%; padding: 11px 12px; color: var(--text); border: 1px solid var(--separator); border-radius: 11px; outline: none; background: rgba(255,255,255,.8); }
.settings select:focus { border-color: rgba(0,113,227,.55); }
.switch-row { display: flex; align-items: center; justify-content: space-between; }
.switch-row > span { margin: 0 !important; }
.switch-row input { display: none; }
.switch-row i { position: relative; width: 42px; height: 25px; cursor: pointer; border-radius: 999px; background: #d2d2d7; transition: background .2s; }
.switch-row i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch-row input:checked + i { background: #34c759; }
.switch-row input:checked + i::after { transform: translateX(17px); }

.export-summary { margin: 44px 0 22px; }
.export-summary strong { display: block; font-size: 58px; font-weight: 650; line-height: .98; letter-spacing: -.055em; }
.export-summary span { display: block; margin-top: 7px; color: var(--tertiary); font-size: 12px; }
.primary-button { width: 100%; display: flex; justify-content: center; gap: 8px; padding: 14px; color: #fff; cursor: pointer; border: 0; border-radius: 12px; background: var(--blue); box-shadow: 0 8px 20px rgba(0,113,227,.2); font-size: 14px; font-weight: 600; transition: background .18s, transform .18s, box-shadow .18s; }
.primary-button:hover:not(:disabled) { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,113,227,.25); }
.primary-button:active:not(:disabled) { transform: scale(.988); }
.primary-button:disabled { color: #8e8e93; cursor: not-allowed; background: #e5e5ea; box-shadow: none; }
.export-hint { color: var(--tertiary); text-align: center; font-size: 11px; }

.how-it-works { max-width: 1080px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; margin: 0 auto 58px; padding: 48px 0 0; border-top: 1px solid var(--separator); }
.how-it-works div { position: relative; padding-left: 39px; }
.how-it-works span { position: absolute; left: 0; color: var(--blue); font-size: 12px; font-weight: 650; }
.how-it-works strong { font-size: 15px; font-weight: 600; }
.how-it-works p { margin-bottom: 0; color: var(--secondary); font-size: 13px; line-height: 1.65; }

.compatibility {
  max-width: 1080px;
  margin: 0 auto 96px;
  padding: 62px 48px 52px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(239,246,255,.78));
  box-shadow: var(--shadow);
}

.compatibility-kicker { margin: 0 0 13px; color: var(--blue); font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.compatibility h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -.045em; }
.compatibility > p:not(.compatibility-kicker) { max-width: 760px; margin: 20px auto 0; color: var(--secondary); font-size: 16px; line-height: 1.65; }
.brand-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 28px 0 24px; }
.brand-list span { padding: 9px 14px; color: #3a3a3c; border: 1px solid var(--separator); border-radius: 999px; background: rgba(255,255,255,.7); font-size: 12px; font-weight: 560; }
.compatibility small { display: block; color: var(--tertiary); font-size: 11px; line-height: 1.6; }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; padding: 11px 17px; color: #fff; pointer-events: none; opacity: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(29,29,31,.84); box-shadow: 0 10px 32px rgba(0,0,0,.2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transform: translate(-50%, 14px) scale(.97); transition: opacity .2s ease, transform .2s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
button:focus-visible, input:focus-visible, select:focus-visible, .drop-zone:focus-within { outline: 3px solid rgba(0,113,227,.28); outline-offset: 2px; }

@media (max-width: 900px) {
  .hero { padding-top: 88px; }
  .workspace { grid-template-columns: 1fr 1fr; }
  .export-card { grid-column: 1 / -1; min-height: auto; }
  .how-it-works { margin-right: 28px; margin-left: 28px; }
}

@media (max-width: 620px) {
  body { background: var(--page); }
  .site-header { height: 48px; padding: 0 18px; }
  .privacy-pill { font-size: 11px; }
  .privacy-pill i { margin-right: 6px; }
  .hero { padding: 70px 18px 46px; }
  .eyebrow { margin-bottom: 15px; font-size: 11px; }
  .hero h1 { font-size: 40px; letter-spacing: -.05em; }
  .lede { margin-top: 22px; font-size: 17px; line-height: 1.5; }
  .workspace { grid-template-columns: 1fr; padding: 0 14px 58px; }
  .step-card { min-height: auto; padding: 20px; border-radius: 24px; }
  .step-card:hover:not(.muted) { transform: none; }
  .export-card { grid-column: auto; }
  .drop-zone { height: 210px; }
  .people-list { height: 280px; }
  .how-it-works { grid-template-columns: 1fr; gap: 28px; margin: 0 22px 64px; padding-top: 36px; }
  .compatibility { margin: 0 14px 64px; padding: 46px 22px 38px; border-radius: 26px; }
  .compatibility > p:not(.compatibility-kicker) { font-size: 14px; }
  .brand-list { gap: 7px; margin: 24px 0 21px; }
  .brand-list span { padding: 8px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
