/* Page by page. Shared tokens and components live in site.css. */

/* ---------- Home ---------- */
.hm-sleeper { width: clamp(200px, 22vw, 300px); margin-top: clamp(30px, 5vw, 64px); }
.hm-hint { margin-top: 6px; font-size: 13px; }
.hm-night { padding-top: clamp(110px, 14vw, 180px); max-width: 920px; }
.hm-log { list-style: none; margin: clamp(60px, 9vw, 120px) 0 70px; padding: 0; position: relative; display: flex; flex-direction: column; gap: clamp(110px, 15vw, 210px); }
.hm-log::before { content: ""; position: absolute; left: 142px; top: -60px; bottom: -60px; width: 1px; background: var(--line); }
.hm-log li { display: grid; grid-template-columns: 96px 56px minmax(0, 1fr); gap: 0 18px; align-items: center; }
.hm-log time { text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--mute); }
.hm-log img { width: 56px; height: 56px; position: relative; }
.hm-log p { margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; }
.hm-log b { display: block; font: 500 clamp(22px, 2.2vw, 28px)/1.05 var(--display); margin-bottom: 3px; }
.hm-morning { padding-top: clamp(150px, 18vw, 240px); }
.hm-waker { width: clamp(190px, 20vw, 270px); }
.hm-digest { width: min(620px, 100%); margin-top: 38px; text-align: left; padding: 22px 24px; }
.hm-digest-head { margin: 0 0 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.hm-digest-head b { font: 500 26px/1 var(--display); }
.hm-digest-head span { color: var(--mute); font-size: 14px; }
.hm-digest ul { list-style: none; margin: 0; padding: 0; }
.hm-digest li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.35; }
.hm-digest li img { width: 40px; height: 40px; }
.hm-digest li:not(.hm-wait) span { grid-column: 2 / span 2; }
.hm-wait .btn[aria-pressed="true"] { background: transparent; color: var(--ink); border-color: var(--line); }
.hm-prices { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: 980px; border-top: 1px solid var(--line); }
.hm-prices li { padding: 18px 10px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.hm-prices li:first-child { border-left: 0; }
.hm-prices b { font: 500 22px/1 var(--display); }
.hm-prices span { font: 400 clamp(36px, 4vw, 56px)/.85 var(--display); font-variant-numeric: tabular-nums; }
.hm-prices small { color: var(--mute); font-size: 12.5px; }
.hm-dusk { padding-top: clamp(220px, 28vw, 380px); }

/* ---------- Plans ---------- */
.pl-seg { margin-top: 30px; }
.pl-every { margin-top: 20px; }
.pl-qa { margin-top: 30px; }
.pl-err { color: #b3261e; }

/* ---------- Mac ---------- */
.mc-face { width: clamp(190px, 20vw, 270px); margin-bottom: 8px; }
.mc-dl { min-width: 280px; }
.mc-err { color: inherit; padding: 8px 14px; border-radius: 12px; background: var(--card); }
.mc-src { font-size: 12px; opacity: .8; }

/* ---------- iPhone ---------- */
.ip-face { width: clamp(190px, 20vw, 270px); margin-bottom: 8px; }
.ip-lock { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.ip-phone { width: 300px; height: 620px; border-radius: 54px; padding: 11px; background: #0d0d0f; box-shadow: inset 0 0 0 2px #2b2b30, 0 40px 90px rgba(0, 0, 0, .35); }
.ip-screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(90% 50% at 50% 100%, rgba(255, 156, 120, .45), rgba(255, 156, 120, 0) 70%), linear-gradient(180deg, #0f1638 0%, #26215a 55%, #5b3a78 100%); }
.ip-island { position: absolute; top: 11px; left: 50%; width: 96px; height: 30px; margin-left: -48px; border-radius: 15px; background: #000; }
.ip-date { margin: 64px 0 0; font: 600 15px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; opacity: .85; }
.ip-time { margin: 2px 0 0; font: 700 76px/1 ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: -.02em; }
.ip-la { position: absolute; left: 10px; right: 10px; bottom: 74px; padding: 12px; border-radius: 24px; background: rgba(20, 20, 26, .62); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); text-align: left; font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.ip-la-top { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; }
.ip-la-top img { width: 52px; height: 52px; margin: -2px; }
.ip-la-top b { display: block; font-size: 15px; }
.ip-la-top span { display: block; font-size: 12.5px; line-height: 1.3; opacity: .8; }
.ip-la-btns { display: flex; gap: 8px; margin-top: 10px; }
.ip-la-btns button { flex: 1; min-height: 38px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: 600 14px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; cursor: pointer; }
.ip-la-btns .ip-yes { background: #0a84ff; }

/* ---------- Mail ---------- */
.ml-addr { font-size: clamp(60px, 11vw, 168px); white-space: nowrap; }
.ml-at::before { content: "@"; }
.ml-name { display: inline-block; min-width: 1ch; border-right: 3px solid currentColor; padding-right: .04em; animation: ml-caret 1s steps(1) infinite; }
@keyframes ml-caret { 50% { border-right-color: transparent; } }

/* ---------- Help ---------- */
.hp-face { width: clamp(170px, 17vw, 230px); margin-bottom: 4px; }
.hp-search { display: flex; align-items: center; gap: 10px; width: min(560px, 100%); margin-top: 34px; padding: 0 18px; min-height: 56px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.hp-search svg { width: 20px; height: 20px; flex: none; color: var(--mute); }
.hp-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 17px/1 var(--text); outline: none; }
.hp-search input::placeholder { color: var(--mute); }
.hp-groups { max-width: 900px; }
.hp-none { margin-top: 40px; text-align: center; color: var(--mute); }

/* ---------- After checkout, and lost ---------- */
.by-price { margin: 20px 0 0; font: 400 clamp(26px, 3vw, 38px)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.by-price:empty { display: none; }
.tk { min-height: 70vh; justify-content: center; }
.tk-face { width: clamp(200px, 22vw, 290px); margin-bottom: 8px; }

@media (max-width: 760px) {
  .hm-log::before { left: 86px; }
  .hm-log li { grid-template-columns: 52px 44px minmax(0, 1fr); gap: 0 12px; }
  .hm-log time { font-size: 13px; }
  .hm-log img { width: 44px; height: 44px; }
  .hm-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-prices li { border-left: 0; border-bottom: 1px solid var(--line); }
  .hm-prices li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ip-lock { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ip-phone { width: 272px; height: 560px; }
  .ml-addr { font-size: clamp(44px, 13vw, 80px); }
}

/* ---------- Agents ---------- */
.ag-flow { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px); counter-reset: ag; }
.ag-flow li { counter-increment: ag; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.ag-flow img { width: min(200px, 90%); }
.ag-flow b { font: 500 clamp(26px, 2.6vw, 34px)/1 var(--display); }
.ag-flow b::before { content: counter(ag) "  "; color: var(--mute); font-variant-numeric: tabular-nums; }
.ag-flow span { color: var(--mute); max-width: 26ch; }
.ag-jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ag-jobs li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.35; }
.ag-jobs img { width: 56px; height: 56px; }
.ag-faces { list-style: none; margin: 40px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); width: 100%; max-width: 900px; }
.ag-faces li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ag-faces img { width: min(170px, 80%); }
.ag-faces b { font: 500 28px/1 var(--display); }
.ag-faces span { color: var(--mute); font-size: 14.5px; }
@media (max-width: 860px) { .ag-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .ag-flow, .ag-faces { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home: the sections that joined the day ---------- */
.hm-where { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 26px); }
.hm-where li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 24px 30px; min-width: 0; }
.hm-where img { width: min(168px, 72%); height: auto; }
.hm-where h3 { margin: 8px 0 8px; font: 500 clamp(26px, 2.6vw, 34px)/1 var(--display); }
.hm-where p { margin: 0; max-width: 30ch; color: var(--mute); }
.hm-where + .lede { margin-inline: auto; }
.hm-full { width: 100%; display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.hm-full .cols { width: 100%; text-align: left; }
.hm-every { width: 100%; margin-top: 30px; text-align: left; }
.hm-usage { width: 100%; margin-top: 64px; text-align: left; }
.hm-usage .h-md { text-align: center; }
.hm-usage .grid3 { margin-top: 30px; }
.hm-usage h4 { margin: 0 0 8px; font: 500 clamp(22px, 2vw, 26px)/1.05 var(--display); }
.hm-usage p { margin: 0; color: var(--mute); }
.hm-faq .qa { max-width: 860px; margin: 44px auto 0; }
@media (max-width: 760px) {
  .hm-where { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hm-where li { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: start; padding: 16px 18px; text-align: left; }
  .hm-where img { grid-row: span 2; width: 84px; }
  .hm-where h3 { margin: 6px 0 4px; font-size: 26px; }
}
