/* Dew website.
   Apple product-page grammar: type first, art second, hairlines instead of cards.
   Tokens and type sizes are the app's, so the site and the app stay one system. */

:root {
  --bg: #fbfbfd;
  --bg2: #f5f5f7;
  --label: #1d1d1f;
  --label2: #6e6e73;
  --label3: #86868b;
  --sep: rgb(0 0 0 / .12);
  --blue: #0071e3;
  --blue-h: #0077ed;
  --link: #0066cc;
  --bar: rgb(251 251 253 / .84);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: max(22px, env(safe-area-inset-left));
  --maxw: 1040px;
  --wide: 1280px;
  --ease: cubic-bezier(.28, .11, .32, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg2: #0b0b0d;
    --label: #f5f5f7;
    --label2: #a1a1a6;
    --label3: #86868b;
    --sep: rgb(255 255 255 / .14);
    --link: #2997ff;
    --bar: rgb(0 0 0 / .76);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 52px; }
body {
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(64px, 8vw, 112px) 0; }
.band.gray { background: var(--bg2); }
.band.dark { background: #000; color: #f5f5f7; }
.band.dark .dim, .band.dark .lead-sm, .band.dark .tags { color: #86868b; }

/* ===== Type ===== */
.t-hero { font-size: clamp(44px, 8.2vw, 104px); line-height: 1.02; font-weight: 700; letter-spacing: -.026em; }
.t-h2 { font-size: clamp(30px, 4.4vw, 58px); line-height: 1.06; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.25; font-weight: 600; letter-spacing: -.012em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--label3); }
.dim { color: var(--label3); }
.grad { background: linear-gradient(180deg, var(--label) 34%, var(--label3) 116%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.4; max-width: 46ch; }
.lead-sm { font-size: 17px; line-height: 1.47; color: var(--label2); max-width: 52ch; margin-top: 14px; }
.fine { font-size: 13px; line-height: 1.5; color: var(--label3); margin-top: 18px; max-width: 46ch; }
.tags { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--label3); margin-top: 18px; }

/* ===== Nav ===== */
.gnav {
  position: fixed; inset: 0 0 auto; height: 44px; z-index: 100;
  background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep);
}
.gnav .in { height: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.gnav .logo { display: flex; align-items: center; gap: 8px; }
.gnav .logo img { width: 19px; height: 19px; border-radius: 5px; }
.gnav .logo span { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.gnav ul { display: flex; list-style: none; gap: clamp(16px, 2.4vw, 30px); }
.gnav ul a { font-size: 12px; color: var(--label2); transition: color .2s var(--ease); }
.gnav ul a:hover { color: var(--label); }
.gnav .menu { display: none; width: 44px; height: 44px; margin-right: -12px; position: relative; }
.gnav .menu i { position: absolute; left: 13px; width: 18px; height: 1.4px; background: var(--label); transition: transform .3s var(--ease); }
.gnav .menu i:first-child { top: 18px; }
.gnav .menu i:last-child { top: 25px; }
body.open .gnav .menu i:first-child { transform: translateY(3.5px) rotate(45deg); }
body.open .gnav .menu i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 44px 0 0; z-index: 99; display: none;
  background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 8px var(--gutter) 32px;
}
body.open .sheet { display: block; }
.sheet a { display: block; padding: 12px 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; border-bottom: .5px solid var(--sep); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 45px; padding: 11px 26px; border-radius: 980px;
  background: var(--blue); color: #fff; font-size: 17px; letter-spacing: -.022em;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--blue-h); }
.btn:active { transform: scale(.975); }
.btn-sm { min-height: 28px; padding: 4px 13px; font-size: 12px; }
.lnk { color: var(--link); font-size: 17px; }
.lnk::after { content: " ›"; }
.lnk:hover, .lnk-plain:hover { text-decoration: underline; }
.lnk-plain { color: var(--link); font-size: 13px; }

/* ===== Hero ===== */
.hero { padding: clamp(56px, 7vw, 92px) 0 0; text-align: center; overflow: hidden; }
.hero .eyebrow { margin-bottom: 16px; }
.hero h1 { margin: 0 auto; }
.hero .lead { margin: 22px auto 0; color: var(--label2); }
.hero .ctas { margin-top: 30px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 16px; font-size: 12px; color: var(--label3); }
.hero-art { margin: clamp(34px, 4vw, 52px) auto 0; display: flex; flex-direction: column; align-items: center; }
.hero-art figcaption { margin-top: 16px; font-size: 12px; color: var(--label3); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.hero-art figcaption b { color: var(--label2); font-weight: 600; }
.hero-art .actions { display: flex; gap: 14px; }

/* ===== The device: an SVG frame over a real capture =====
   .ui is inset to the exact glass in device.svg (10.5/393 wide, 10.5/852 tall),
   so the capture reaches every edge of the glass and no page background shows
   through the top of the screen. */
.dev { position: relative; aspect-ratio: 393 / 852; }
.dev .ui {
  position: absolute; left: 2.672%; top: 1.232%; width: 94.656%; height: 97.535%;
  border-radius: 13.306% / 5.957%; overflow: hidden; background: var(--bg);
}
.dev.dark .ui { background: #000; }
.dev .ui img, .dev .ui iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; object-position: top; }
.dev .ui .poster { position: absolute; inset: 0; z-index: 1; transition: opacity .4s var(--ease); }
.dev .ui iframe { position: relative; z-index: 2; background: transparent; }
.dev .frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.dev-hero { width: min(330px, 40vw); filter: drop-shadow(0 40px 60px rgb(0 0 0 / .18)) drop-shadow(0 8px 18px rgb(0 0 0 / .10)); }
.band.dark .dev { filter: drop-shadow(0 44px 70px rgb(0 0 0 / .75)); }

/* ===== Feature columns: hairlines, numerals, no boxes ===== */
#features h2 { margin-bottom: clamp(34px, 4vw, 54px); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3.4vw, 52px); }
.cols article { border-top: 1px solid var(--sep); padding-top: 18px; }
.cols article p:not(.num):not(.tags) { color: var(--label2); font-size: 16px; line-height: 1.5; margin-top: 10px; }
.cols .num { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--label3); margin-bottom: 26px; }
.cols h3 { margin-bottom: 4px; }

/* ===== Screens filmstrip: full bleed, no card around it ===== */
.band.dark .wrap { max-width: calc(var(--wide) + var(--gutter) * 2); }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 246px);
  gap: clamp(18px, 2.6vw, 40px); justify-content: center;
  max-width: calc(var(--wide) + var(--gutter) * 2); margin: 0 auto;
  padding: clamp(30px, 4vw, 54px) var(--gutter) 0;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: center; text-align: center; }
.shot figcaption { margin-top: 14px; font-size: 12px; color: #86868b; }

/* ===== Split sections (download, notes) ===== */
.split { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split-head h2 { max-width: 12ch; }
.split-head .fine { max-width: 32ch; }
.list { border-top: 1px solid var(--sep); }
.item { display: grid; grid-template-columns: minmax(120px, 30%) 1fr auto; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--sep); }
.item .k { font-size: 17px; font-weight: 500; letter-spacing: -.022em; }
.item .v { font-size: 13px; color: var(--label2); }
.item .go { font-size: 14px; color: var(--link); white-space: nowrap; }
.item:hover .k { color: var(--link); }
.item.suggested .go::after { content: " · this device"; color: var(--label3); font-size: 12px; }

.notes { list-style: none; border-top: 1px solid var(--sep); }
.notes li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--sep); font-size: 16px; line-height: 1.45; }
.notes svg { width: 16px; height: 16px; flex: none; margin-top: 4px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Footer ===== */
.foot { border-top: .5px solid var(--sep); padding: 26px 0 40px; font-size: 12px; color: var(--label3); }
.foot-in { display: flex; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; align-items: center; }
.foot p { display: flex; align-items: center; gap: 8px; }
.foot img { border-radius: 4px; opacity: .9; }
.foot .links { gap: 18px; }
.foot .links a:hover { color: var(--label); }

/* ===== Reveal (only when JS is running, so nothing can hide the page) ===== */
.js .rv { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ===== Small screens ===== */
@media (max-width: 980px) {
  .gnav ul, .gnav .nav-dl { display: none; }
  .gnav .menu { display: block; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .cols article + article { margin-top: 26px; }
  .cols .num { margin-bottom: 10px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split-head h2, .split-head .fine { max-width: none; }
  .item { grid-template-columns: 1fr auto; }
  .item .v { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 700px) {
  .hero { padding-top: 44px; }
  .hero .ctas { flex-direction: column; gap: 14px; }
  .hero .ctas .btn { width: min(320px, 88vw); }
  .dev-hero { width: min(300px, 72vw); }
  .band { padding: 56px 0; }
  .strip { grid-auto-columns: 72%; justify-content: start; scroll-padding-inline: var(--gutter); }
  .item.suggested .go::after { content: none; }
}
