/* Dog Due site: what only Home uses, the app surfaces included. Loads after site.css.
   Surface sizes are the app's points drawn as CSS px. Scale a surface with --dd-scale, never by editing sizes. */

:root {
  --wall: #3F4F4D;
  --tile-a: #4A3E46;
  --tile-b: #32292F;
  --tile-c: color-mix(in oklab, #99E1D9 30%, #3F4F4D);
  --band: #CFC6CC; /* Watch bands: a colour no Home Screen tile uses */
  --bar-h: 64px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pill: rgba(255, 255, 255, 0.14);
}

/* ---------- app surfaces ---------- */
.dd, .dd * { box-sizing: border-box; margin: 0; padding: 0; }
.dd {
  font-family: "Nunito", system-ui, sans-serif;
  zoom: var(--dd-scale, 1);
  text-align: left;
  color: var(--white);
  line-height: 1.15;
}
.dd img { display: block; }
.dd-name  { font-size: 11px; font-weight: 800; color: var(--text-2); }
.dd-label { font-size: 13px; font-weight: 800; }
.dd-big   { font-weight: 900; color: var(--turq); line-height: 1; }
.dd-detail{ font-size: 13px; font-weight: 800; }
.dd-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 900; background: var(--pill); color: var(--white);
}
.dd-pill--main { background: var(--turq); color: var(--wine); }

/* Small Home Screen widget, 158 x 158 */
.dd-small {
  position: relative; width: 158px; height: 158px; padding: 16px;
  border-radius: 24px; background: var(--wine); overflow: hidden;
}
.dd-small .dd-big { font-size: 30px; margin-top: 2px; white-space: nowrap; }
.dd-small .dd-pose { position: absolute; left: 12px; bottom: 8px; width: 58px; height: 68px; object-fit: contain; }
.dd-small .dd-pill { position: absolute; right: 12px; bottom: 14px; }

/* Medium Home Screen widget, 338 x 158 */
.dd-medium {
  position: relative; width: 338px; height: 158px; padding: 16px;
  border-radius: 24px; background: var(--wine); overflow: hidden;
}
.dd-medium .dd-big { font-size: 34px; margin-top: 2px; }
.dd-medium .dd-detail { margin-top: 3px; }
.dd-medium .dd-pose { position: absolute; right: 22px; top: 14px; width: 100px; height: 118px; object-fit: contain; }
.dd-medium .dd-pills { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }

/* Lock Screen rectangular widget, 172 x 76. No ground: the system tints it over the wallpaper. */
.dd-lock { width: 172px; height: 76px; color: inherit; }
.dd-lock .dd-name { font-size: 11px; font-weight: 700; color: inherit; opacity: 0.85; }
.dd-lock .dd-big { font-size: 26px; color: inherit; }

/* Alert (a notification): system font, card, then its actions */
.dd-alert { width: 362px; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; }
.dd-alert-card {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 22px;
  background: rgba(30, 24, 28, 0.72);
}
.dd-alert-icon { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.dd-alert-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dd-alert-top { display: flex; justify-content: space-between; gap: 8px; }
.dd-alert-head { font-size: 15px; font-weight: 700; line-height: 1.3; }
.dd-alert-when { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.7); flex-shrink: 0; }
.dd-alert-actions {
  margin-top: 8px; border-radius: 16px; overflow: hidden;
  background: rgba(30, 24, 28, 0.72);
}
.dd-alert-actions div { padding: 13px 16px; font-size: 16px; font-weight: 500; }
.dd-alert-actions div + div { border-top: 1px solid rgba(255, 255, 255, 0.14); }

/* Watch app, 46 mm screen, 208 x 248 */
.dd-watch {
  position: relative; width: 208px; height: 248px; padding: 26px 8px 8px;
  border-radius: 40px; background: #000; text-align: center; overflow: hidden;
}
.dd-watch-time {
  position: absolute; right: 22px; top: 8px;
  font: 600 15px -apple-system, "SF Pro Text", system-ui, sans-serif;
}
.dd-watch .dd-label { font-size: 13px; }
.dd-ring {
  /* As the app's RingProgress: before the window, --left is the time to the window over the time from
     the last pee to the window (24% at 38 min after an 8:10 pee, 100% right after a pee); inside the
     window the ring is white (.dd-ring--in) and drains with the window (33% at 8:10 in 7:50 to 8:20).
     Two hard stops draw a progress ring, not a colour blend. */
  width: 104px; height: 104px; margin: 6px auto 4px; border-radius: 50%;
  background: conic-gradient(var(--ring-fill, var(--turq)) 0 var(--left, 24%), #2C2C2E var(--left, 24%) 100%);
  display: grid; place-items: center;
}
.dd-ring--in { --ring-fill: var(--white); }
.dd-ring span {
  width: 86px; height: 86px; border-radius: 50%; overflow: hidden;
  background: var(--wine); border: 5px solid #000; display: block;
}
.dd-ring img { width: 100%; height: 130%; object-fit: cover; object-position: 50% 8%; }
.dd-watch .dd-big { font-size: 17px; }
.dd-watch .dd-detail { margin-top: 2px; }
.dd-watch .dd-pills { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.dd-watch .dd-pill { flex: 1; height: 44px; padding: 0; font-size: 15px; background: #2C2C2E; }
.dd-watch .dd-pill--main { background: var(--turq); }

/* Today's countdown card (iPhone app), 335 wide */
.dd-today {
  position: relative; width: 335px; padding: 20px; border-radius: 32px; background: var(--card);
}
.dd-today .dd-label { font-size: 15px; }
.dd-today .dd-big { font-size: 36px; margin: 6px 0; }
.dd-today .dd-detail { font-size: 15px; }
.dd-today .dd-pose { position: absolute; right: 24px; top: 16px; width: 120px; height: 140px; object-fit: contain; }
.dd-today .dd-pills { display: flex; gap: 8px; margin-top: 58px; }
.dd-today .dd-pill { flex: 1; height: 52px; font-size: 15px; }

/* Last events (iPhone app, Today): four columns, no boxes or dividers */
.dd-last { width: 335px; }
.dd-last-title { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.dd-last-row { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.dd-last-emoji { font-size: 40px; line-height: 1.1; font-family: "Apple Color Emoji", sans-serif; }
.dd-last-time { font-size: 14px; font-weight: 900; margin-top: 6px; }
.dd-last-who { font-size: 12px; font-weight: 700; color: var(--text-2); margin-top: 2px; }

html { scroll-padding-bottom: 96px; } /* a focused element never sits under the floating badge */
.on-turq a:focus-visible { outline-color: var(--wine); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h2 {
  margin: 0; font-weight: 900; letter-spacing: -0.015em;
  font-size: clamp(34px, 8.6vw, 60px); line-height: 1.04; text-wrap: balance;
}
h2 .s { display: inline-block; } /* the heading wraps only between its sentences */
.lede { max-width: 38ch; font-size: 18px; color: var(--text-2); }
.on-turq { background: var(--turq); color: var(--wine); }
.on-turq .lede { color: var(--text-2-light); }

/* ---------- hero (phone first) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); padding-top: var(--space-lg); }
h1 {
  margin: 0; font-weight: 900; letter-spacing: -0.02em;
  font-size: clamp(40px, 12.2vw, 64px); line-height: 0.98;
}
h1 span { display: block; }
h1 .n { color: var(--turq); }
.support { margin: 16px 0 0; max-width: 34ch; font-size: 17px; text-wrap: pretty; }
.get { margin-top: 20px; }

/* The hero picture: one drawing in native px (phone 0 to 430, Watch 410 to 642), scaled by --sz.
   Labels sit outside the zoom so they keep their size. */
.stage { --sz: 0.595; position: relative; width: calc(642px * var(--sz)); margin: 44px calc(4px - var(--gutter)) 0; }
.comp { position: relative; width: 642px; height: 902px; zoom: var(--sz); }
.comp .iphone { position: absolute; left: 0; top: 0; }
.comp .awatch { position: absolute; left: 410px; top: 486px; }
.grid {
  position: absolute; left: 32px; top: 74px; width: 338px;
  display: grid; grid-template-columns: repeat(4, 68px); column-gap: 22px;
  grid-auto-rows: 68px; row-gap: 22px;
}
.app { position: relative; justify-self: center; width: 64px; height: 64px; border-radius: 15px; }
.app.a { background: var(--tile-a); } .app.b { background: var(--tile-b); } .app.c { background: var(--tile-c); }
.app img { width: 64px; height: 64px; border-radius: 15px; display: block; }
.app-name {
  position: absolute; left: -12px; right: -12px; top: 68px; text-align: center;
  font: 500 12px -apple-system, "SF Pro Text", system-ui, sans-serif; color: var(--white);
}
.w-small  { grid-column: 3 / 5; grid-row: 1 / 3; }
.w-medium { grid-column: 1 / 5; grid-row: 3 / 5; }
.who {
  position: absolute; z-index: 4; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--card);
  background: var(--wine); color: var(--white); font-size: 16px; font-weight: 800; line-height: 20px;
}
.hero .who-phone { left: 4px; top: -40px; }
/* right-aligned to the Watch, just above its top band */
.hero .who-watch { right: 0; top: calc(430px * var(--sz) - 42px); }

/* ---------- drawn devices ---------- */
.iphone {
  position: relative; width: 430px; height: 902px; padding: 12px;
  border-radius: 66px; background: #000; border: 2px solid var(--card);
}
.screen {
  position: relative; width: 402px; height: 874px; border-radius: 54px;
  background: var(--wall); overflow: hidden;
}
.screen--app { background: var(--wine); }
.island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.status { position: absolute; left: 0; right: 0; top: 0; height: 54px; font: 600 17px -apple-system, "SF Pro Text", system-ui, sans-serif; color: var(--white); }
.clock { position: absolute; left: 52px; top: 17px; letter-spacing: -0.01em; }
.bars { position: absolute; right: 86px; top: 21px; display: flex; gap: 2px; align-items: flex-end; }
.bars i { display: block; width: 3px; background: var(--white); border-radius: 1px; }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 9px; } .bars i:nth-child(4) { height: 12px; }
.batt { position: absolute; right: 36px; top: 20px; width: 26px; height: 13px; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 4px; padding: 1.5px; }
.batt::before { content: ""; display: block; width: 72%; height: 100%; background: var(--white); border-radius: 1.5px; }
.batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: rgba(255,255,255,0.55); border-radius: 0 1px 1px 0; }

.awatch {
  position: relative; width: 232px; padding: 12px;
  border-radius: 58px; background: #000; border: 2px solid var(--card);
}
.awatch::before, .awatch::after {
  content: ""; position: absolute; left: 44px; right: 44px; height: 56px; background: var(--band);
}
.awatch::before { top: -56px; border-radius: 22px 22px 0 0; }
.awatch::after { bottom: -56px; border-radius: 0 0 22px 22px; }
.crown { position: absolute; right: -10px; top: 64px; width: 9px; height: 44px; border-radius: 0 5px 5px 0; background: var(--band); }
.awatch .dd-watch { margin: 0 auto; }

/* ---------- Try it (phone first: thin frames, widget and Watch side by side) ---------- */
.try { padding: var(--space-4xl) 0 var(--space-3xl); }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.try-copy { display: grid; gap: var(--space-md); }
.try-stage { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 12px; row-gap: var(--space-md); }
.fig { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.label { font-size: 16px; font-weight: 800; color: var(--text-2); line-height: 1.2; }
.lockfig { grid-column: 1 / -1; }
.lockfig, .lockcol, .lockfig .crop, .lockfig .iphone { width: 100%; }
.lockcol { position: relative; --zz: 0.85; --zp: 1; }
.crop { overflow: hidden; }
.try .iphone { width: 100%; height: auto; padding: 6px; border-radius: 44px; }
.try .screen {
  width: auto; height: auto; border-radius: 38px; padding: 46px 12px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.try .screen .status { display: none; }
.try .island { top: 12px; width: 96px; height: 28px; margin-left: -48px; }
.lockclock { font: 600 44px/1 -apple-system, "SF Pro Display", system-ui, sans-serif; letter-spacing: -0.02em; color: var(--white); }
.lockalert { position: relative; margin-top: 30px; }
.lockalert .dd-alert { --dd-scale: 0.85; }
.alert-label { position: absolute; left: 4px; bottom: 100%; margin-bottom: 6px; }
.alert-box { transform-origin: 50% 0; }
.js-log { position: relative; display: flex; align-items: center; min-height: 56px; user-select: none; -webkit-tap-highlight-color: transparent; } /* 44 px or more after the zoom */
.js-log[role] { cursor: pointer; } /* role and tabindex come from home.js: no JavaScript, no control */
.js-log:focus-visible { outline: 3px solid var(--turq); outline-offset: -4px; border-radius: 14px; }
.js-log[role]:active { background: rgba(255,255,255,0.14); }
/* anchored to the Log pee row; the zoom undoes the surface's scale so the label stays 16 px */
.tap {
  position: absolute; z-index: 3; pointer-events: none; right: 10px; top: 50%;
  zoom: calc(1 / var(--zz));
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--turq); color: var(--wine);
  font: 900 16px/20px "Nunito", system-ui, sans-serif;
  transform: translateY(-50%) rotate(-3deg);
}
.tap::before { content: ""; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-right: 10px solid var(--wine); }
/* takes the alert's place once it clears */
.again {
  position: absolute; left: 50%; top: 50%; zoom: calc(1 / var(--zp));
  transform: translate(-50%, -50%);
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 2px solid var(--turq); background: var(--wine); color: var(--turq);
  font: 900 17px "Nunito", system-ui, sans-serif; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.again:active { transform: translate(-50%, -50%) scale(0.97); }
@media (hover: hover) and (pointer: fine) { .again:hover { background: var(--turq); color: var(--wine); } }
.alert-label.off { visibility: hidden; }
.plate { padding: 6px; border-radius: 26px; background: var(--wall); }
.plate .dd-medium { --dd-scale: 0.58; }
.try .awatch { width: auto; padding: 6px; border-radius: 34px; }
.try .awatch::before, .try .awatch::after, .try .awatch .crown { display: none; }
.try .awatch .dd-watch { --dd-scale: 0.52; }
.surface { transform-origin: 50% 50%; }

/* ---------- household (turquoise) ---------- */
.house { padding: var(--space-3xl) 0 var(--space-2xl); }
.house-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
.house-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.house .lede { margin-top: var(--space-md); max-width: 40ch; }
/* Sam's iPhone shows the app as it is: the countdown card, then Last events; cropped at native 490 px, just below Last events.
   Phones: full column width, the Watch on its own row under it. A zoomed box's own top is zoomed too, so it is written in native px. */
.devices { --zh: calc(358 / 430); position: relative; padding-top: 44px; height: calc(44px + 490px * var(--zh) + 20px + 388px * 0.55); }
.house .crop { height: calc(490px * var(--zh)); width: calc(430px * var(--zh)); }
.house .iphone { zoom: var(--zh); }
.app-today { position: absolute; left: 33px; top: 70px; }
.app-last { position: absolute; left: 33px; top: 336px; }
.house .who-phone { left: 0; top: 0; }
.house-watch { position: absolute; left: 0; top: calc((44px + 490px * var(--zh) + 20px + 56px * 0.55) / 0.55); zoom: 0.55; }
.house .who-watch { left: calc(242px * 0.55 + 16px); top: calc(44px + 490px * var(--zh) + 20px + (56px + 138px) * 0.55 - 17px); }
@media (max-width: 379px) { .devices { --zh: calc(328 / 430); } }
@media (min-width: 640px) and (max-width: 899px) { .devices { --zh: 0.86; } }
.house .who { border-color: var(--wine); }

/* ---------- walks, meals & the vet ---------- */
.more { padding: var(--space-4xl) 0 var(--space-2xl); }
.more-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.more .lede { margin-top: var(--space-md); max-width: 60ch; }
.alerts {
  position: relative; justify-self: start; width: 100%; max-width: 560px;
  padding: 16px; border-radius: 36px; background: var(--wall);
  display: grid; gap: 16px; justify-items: start;
}
.alerts .dd-medium, .alerts .dd-alert { --dd-scale: 0.86; }
.alerts .pose-food { display: none; }

/* ---------- the countdown ---------- */
.window { padding: var(--space-2xl) 0 var(--space-4xl); }
.window-in > p { margin-top: var(--space-md); max-width: 52ch; font-size: 18px; color: var(--text-2); }
.track { position: relative; margin-top: var(--space-2xl); height: 132px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 76px; height: 2px; background: var(--card); }
.track .win { position: absolute; left: 40%; width: 44%; top: 50px; height: 54px; border-radius: 999px; background: var(--turq); }
.track span { position: absolute; top: 110px; font-size: 16px; font-weight: 900; line-height: 20px; color: var(--turq); white-space: nowrap; }
.track .a { left: 40%; } .track .b { left: 84%; transform: translateX(-100%); }
.track img { position: absolute; left: calc(40% - 86px); top: -2px; width: 78px; height: 80px; object-fit: contain; object-position: 50% 100%; }

/* ---------- close ---------- */
.close { padding: var(--space-4xl) 0; overflow: hidden; }
.close-in { position: relative; }
.close h2 { font-size: clamp(44px, 12vw, 112px); line-height: 0.98; }
.close .lede { margin-top: var(--space-lg); font-size: 20px; color: var(--wine); max-width: 30ch; }
.close img { display: block; width: 150px; height: 150px; object-fit: contain; margin: var(--space-xl) 0 -16px auto; }

/* ---------- footer: room for the floating badge ---------- */
footer { padding: var(--space-2xl) 0 calc(104px + env(safe-area-inset-bottom)); }

/* ---------- the floating badge ---------- */
.float {
  position: fixed; z-index: 20; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
  padding: 10px; border-radius: 18px; background: var(--wine); border: 1px solid var(--card); /* padding: a quarter of the badge's 40 px */
  transform: translate(-50%, 12px); opacity: 0; visibility: hidden;
}
.badge-out .float { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.float .badge { display: block; padding: 0; margin: 0; border-radius: 8px; }
.float .badge img { height: 40px; }

/* ---------- wider ---------- */
@media (max-width: 379px) {
  .stage { --sz: 0.548; }
  .plate .dd-medium { --dd-scale: 0.54; }
  .try .awatch .dd-watch { --dd-scale: 0.48; }
  .lockalert .dd-alert { --dd-scale: 0.78; }
  .lockcol { --zz: 0.78; }
}
@media (min-width: 640px) {
  .stage { --sz: 0.86; margin-left: 0; margin-right: 0; }
  .plate .dd-medium { --dd-scale: 0.8; }
  .try .awatch .dd-watch { --dd-scale: 0.7; }
}
/* Phones (option 3 with the Watch in front): the phone at full column width runs on
   until the hero's bottom cuts it; the Watch stands in front of its blank lower-right tiles, out over the
   right bezel, in a ring of the page's ground. Native px: phone 0 to 430; the Watch at 0.8 of the phone. */
@media (max-width: 899px) {
  .stage { --sz: calc(358 / 430); width: auto; height: calc(790px * var(--sz)); margin: 44px calc(-1 * var(--gutter)) 0 0; }
  .stage .comp { width: 430px; height: 790px; overflow: hidden; } /* the Watch stands inside the phone's width here */
  .comp .awatch { zoom: 0.8; left: calc((215px - 232px * 0.8 / 2) / 0.8); top: calc(541px / 0.8); } /* case centred on the phone's centre line (215); own left and top are zoomed too */
  .hero .awatch, .hero .awatch::before, .hero .awatch::after, .hero .crown { box-shadow: 0 0 0 13px var(--wine); } /* about 9 px on screen: a flat ring, not a shadow */
  .hero .who-phone { left: 0; top: -40px; }
  /* over the blank tile row between the medium widget and the Watch, centred on the Watch */
  .hero .who-watch { right: auto; left: calc(215px * var(--sz)); top: calc(440px * var(--sz)); transform: translateX(-50%); }
}
@media (max-width: 379px) { .stage { --sz: calc(328 / 430); } }
/* Under 360 px (320 px reflow): every drawing fits a 288 px content box */
@media (max-width: 359px) {
  .stage { --sz: calc(288 / 430); }
  .lockalert .dd-alert { --dd-scale: 0.68; } /* 246 px inside the 248 px Lock Screen */
  .lockcol { --zz: 0.68; }
  .plate .dd-medium { --dd-scale: 0.46; }
  .try .awatch .dd-watch { --dd-scale: 0.46; }
  .devices { --zh: calc(288 / 430); height: calc(44px + 490px * var(--zh) + 20px + 388px * 0.5); }
  .house-watch { zoom: 0.5; top: calc((44px + 490px * var(--zh) + 20px + 56px * 0.5) / 0.5); }
  .house .who-watch { left: calc(242px * 0.5 + 16px); top: calc(44px + 490px * var(--zh) + 20px + (56px + 138px) * 0.5 - 17px); }
  .alerts .dd-medium, .alerts .dd-alert { --dd-scale: 0.7; }
}
@media (min-width: 640px) and (max-width: 899px) { .stage { --sz: 0.86; width: calc(430px * var(--sz)); margin-left: auto; margin-right: auto; } } /* centred in the column */
@media (min-width: 760px) {
  .more-grid .alerts { order: -1; }
  .alerts { padding: 24px; }
  .alerts .dd-medium, .alerts .dd-alert { --dd-scale: 1; }
  .alerts .pose-food { display: block; position: absolute; right: 20px; bottom: 16px; width: 112px; height: 112px; object-fit: contain; }
}
@media (min-width: 860px) {
  .try-stage {
    display: grid; grid-template-columns: 372px 372px; column-gap: var(--space-2xl); row-gap: var(--space-xl);
    align-items: start; justify-content: start;
  }
  .lockfig { grid-column: auto; grid-row: 1 / 3; }
  .lockfig, .lockcol, .lockfig .crop, .lockfig .iphone { width: auto; }
  .lockcol { --zz: 0.86; --zp: 0.86; }
  .try .crop { height: 482px; }
  .try .iphone { zoom: 0.86; width: 430px; height: 902px; padding: 12px; border-radius: 66px; }
  .try .screen { display: block; width: 402px; height: 874px; border-radius: 54px; padding: 0; }
  .try .screen .status { display: block; }
  .try .island { top: 11px; width: 124px; height: 36px; margin-left: -62px; }
  .lockclock { position: absolute; left: 0; right: 0; top: 66px; text-align: center; font-size: 96px; }
  .lockwidget { position: absolute; left: 115px; top: 196px; }
  .lockalert { position: absolute; left: 20px; top: 330px; margin: 0; }
  .lockalert .dd-alert { --dd-scale: 1; }
  .alert-label { zoom: calc(1 / 0.86); left: 6px; margin-bottom: 8px; }
  .fig { gap: var(--space-sm); }
  .try .awatch { width: 232px; padding: 12px; border-radius: 58px; zoom: 0.86; margin: 48px 0 0; }
  .try .awatch::before, .try .awatch::after, .try .awatch .crown { display: block; }
  .try .awatch .dd-watch { --dd-scale: 1; }
  .plate { padding: 16px; border-radius: 40px; }
  .plate .dd-medium { --dd-scale: 1; }
}
@media (min-width: 900px) {
  :root { --bar-h: 80px; }
  .float { left: auto; right: max(var(--gutter), calc((100vw - 1296px) / 2 + var(--gutter))); transform: translateY(12px); }
  .badge-out .float { transform: none; }
  /* the supporting line takes the headline's own width: a caption is as wide as its table */
  .lock { display: table; }
  .lock .support { display: table-caption; caption-side: bottom; max-width: none; }

  .hero { height: min(max(calc(100svh - var(--bar-h)), 640px), 1000px); }
  .hero-grid { height: 100%; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-2xl); padding-top: 0; }
  .copy { align-self: center; padding-bottom: var(--space-2xl); }
  h1 { font-size: clamp(44px, 5.2vw, 80px); }
  .support { font-size: 19px; max-width: 30ch; margin-top: 24px; }
  .get { margin-top: 28px; }
  .stage { --sz: 0.68; margin: 56px 0 0; }
  .hero .who-phone { left: calc(440px * var(--sz)); top: 4px; }
  .hero .who-watch { right: auto; left: calc(440px * var(--sz)); } /* starts past the phone's edge, never over the bezel */

  .try { padding: var(--space-4xl) 0 112px; }
  .house { padding: 112px 0; }
  .house-grid { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--space-4xl); }
  .devices { --zh: 1.1; order: -1; width: calc(430px * 1.1 + 32px + 242px * 0.62); max-width: 100%; height: calc(44px + 490px * 1.1); }
  .house-watch { left: auto; right: 0; zoom: 0.62; top: calc((44px + (490px * 1.1 - 388px * 0.62) / 2 + 56px * 0.62) / 0.62); }
  .house .who-watch { left: auto; right: 0; top: calc(44px + (490px * 1.1 - 388px * 0.62) / 2 - 44px); }
  .more { padding: var(--space-4xl) 0 var(--space-xl); }
  .more-grid { gap: var(--space-xl); }
  .window { padding: var(--space-2xl) 0 112px; }
  .track { height: 160px; }
  .track::before { top: 96px; }
  .track .win { top: 64px; height: 66px; }
  .track span { top: 138px; font-size: 17px; }
  .track .win { width: 26%; }
  .track .b { left: 66%; }
  .track img { left: calc(40% - 124px); top: -6px; width: 112px; height: 104px; }
}
@media (min-width: 900px) and (max-width: 1239px) {
  .house-grid { column-gap: var(--space-2xl); }
  .devices { --zh: 0.9; width: calc(430px * 0.9 + 44px + 242px * 0.55); height: calc(44px + 490px * 0.9); }
  .house-watch { zoom: 0.55; top: calc((44px + (490px * 0.9 - 388px * 0.55) / 2 + 56px * 0.55) / 0.55); }
  .house .who-watch { top: calc(44px + (490px * 0.9 - 388px * 0.55) / 2 - 44px); }
}
@media (min-width: 1100px) {
  .stage { --sz: 0.8; }
}
@media (min-width: 1240px) {
  .try-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3xl); align-items: center; }
  .lede { font-size: 20px; }
  .close img { position: absolute; right: 0; bottom: -16px; width: 220px; height: 220px; margin: 0; }
}
@media (min-width: 1320px) {
  .stage { --sz: 1; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .float { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms; }
  .badge-out .float { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s; }
  .alert-box { transition: transform 240ms var(--ease-out), opacity 200ms var(--ease-out); }
  .alert-box.gone { transform: translateY(-14px) scale(0.97); opacity: 0; }
  .alert-box.back { animation: drop 520ms var(--spring); }
  @keyframes drop { from { transform: translateY(-20px) scale(0.97); opacity: 0.4; } to { transform: none; opacity: 1; } }
  .in-view .tap { animation: nudge 1600ms ease-in-out 1200ms 3; }
  @keyframes nudge { 0%, 100% { transform: translateY(-50%) rotate(-3deg) translateX(0); } 50% { transform: translateY(-50%) rotate(-3deg) translateX(-6px); } }
  .bounce { animation: bounce 560ms var(--spring); }
  @keyframes bounce { 0% { transform: scale(1); } 30% { transform: scale(0.96); } 65% { transform: scale(1.035); } 100% { transform: scale(1); } }
  .js-log { transition: background-color 120ms ease; }
  .again { transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .alert-box.gone { opacity: 0; }
}
