/* Hi Sticky website additions: shared components, homepage demos, guides, and dark mode.
   Loaded after styles.css and the page stylesheet. */
:root { --card: #ffffff; --text: var(--ink); --header-bg: rgba(255, 255, 255, 0.92); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
picture { display: contents; }
a.zoom { display: block; cursor: zoom-in; }
.i { width: 24px; height: 24px; flex: none; }

/* Header and mobile menu */
.site-header { background: var(--header-bg); }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .site-header { position: sticky; }
  #site-nav { order: 2; }
  .menu-toggle { order: 3; display: inline-grid; place-content: center; gap: 5px; width: 42px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
  .nav-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .brand { margin-right: auto; }
  .nav-open #site-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--page-padding) 20px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(17, 22, 18, .14); }
  .nav-open #site-nav a:not(.nav-cta) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.05rem; }
  .nav-open #site-nav .nav-cta { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Hero */
.new-pill { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 5px 13px 5px 5px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .07); color: #e9eee9; font-size: .88rem; font-weight: 700; line-height: 1.3; }
.new-pill:hover { background: rgba(255, 255, 255, .12); }
.new-pill b { padding: 3px 9px; border-radius: 999px; background: var(--mint); color: var(--ink); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }

/* Try-it demo */
.try-section { padding: 80px var(--page-padding); background: var(--paper); }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 28px; align-items: stretch; }
#note-demo { --note-bg: #afc7a0; --note-ink: #1d231c; --note-font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
#note-demo[data-bg="white"] { --note-bg: #ffffff; }
#note-demo[data-bg="yellow"] { --note-bg: #fdf3b0; }
#note-demo[data-bg="pink"] { --note-bg: #ffaed0; }
#note-demo[data-bg="orange"] { --note-bg: #fcbd64; }
#note-demo[data-bg="blue"] { --note-bg: #aec8ff; }
#note-demo[data-bg="green"] { --note-bg: #bcffae; }
#note-demo[data-bg="navy"] { --note-bg: #263b5e; --note-ink: #f1f4f8; }
#note-demo[data-font="newyork"], .font-newyork { --note-font: "New York", ui-serif, Georgia, "Times New Roman", serif; }
#note-demo[data-font="mono"], .font-mono { --note-font: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
#note-demo[data-font="marker"], .font-marker { --note-font: "Marker Felt", "Chalkboard SE", "Comic Sans MS", cursive; }
.font-btn { font-family: var(--note-font, inherit); }
.try-editor { display: flex; flex-direction: column; }
.demo-note { flex: 1; min-height: 330px; padding: 26px 26px 20px; border-radius: 14px; background: var(--note-bg); color: var(--note-ink); font-family: var(--note-font); box-shadow: 0 24px 50px rgba(17, 22, 18, .14); transition: background-color .25s ease, color .25s ease; }
.demo-note input, .demo-note textarea { width: 100%; padding: 4px 6px; margin-inline: -6px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; }
.demo-note input:focus, .demo-note textarea:focus { outline: 2px solid currentColor; outline-offset: 0; background: rgba(255, 255, 255, .25); }
.demo-note .note-title { font-size: 1.45rem; font-weight: 800; }
.note-items { display: grid; gap: 4px; margin: 12px 0 6px; padding: 0; list-style: none; }
.note-items li { display: flex; align-items: center; gap: 10px; }
.note-items input { font-size: 1.08rem; }
.tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 2px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.tick[aria-checked="true"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.add-item { padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; font-size: .95rem; opacity: .72; cursor: pointer; }
.add-item:hover { opacity: 1; }
.note-body { margin-top: 10px; font-size: 1.02rem; line-height: 1.5; resize: none; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 22px; }
.control-label { margin: 0 0 9px; color: var(--muted); font-size: .78rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.swatches, .fonts { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; padding: 0; border: 1px solid rgba(23, 26, 24, .2); border-radius: 50%; background: var(--sw); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--text); }
.font-btn { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-size: .92rem; cursor: pointer; }
.font-btn[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--paper); }
.font-btn sup { margin-left: 2px; color: #e2493c; font-family: -apple-system, sans-serif; font-weight: 900; }
.demo-plus-note { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.demo-privacy { margin: 18px 0 0; color: var(--muted); font-size: .86rem; }
.try-stage { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-rows: auto auto; gap: 18px 22px; align-content: center; padding: 30px; border-radius: 18px; background: linear-gradient(150deg, #7eaedc 0%, #b49de6 52%, #f2bf92 100%); }
.try-stage figure { margin: 0; min-width: 0; }
.try-stage figcaption { margin-top: 10px; color: #fff; font-size: .82rem; font-weight: 750; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.w-home-wrap { grid-row: 1 / 3; align-self: center; }
.w-home { aspect-ratio: 1; overflow: hidden; padding: 18px; border-radius: 26px; background: var(--note-bg); color: var(--note-ink); font-family: var(--note-font); box-shadow: 0 18px 40px rgba(25, 20, 50, .28); transition: background-color .25s ease, color .25s ease; }
.w-title { margin: 0 0 9px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-home .w-title { font-size: 1.08rem; }
.w-items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.w-items li { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: .98rem; line-height: 1.25; }
.w-items li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-items .tick { width: 20px; height: 20px; }
.w-items .tick[aria-checked="true"]::after { width: 9px; height: 9px; }
.w-body { margin: 12px 0 0; font-size: .9rem; line-height: 1.35; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lock-screen { padding: 14px 12px; border-radius: 22px; background: linear-gradient(180deg, #23324f, #574274); color: #fff; text-align: center; box-shadow: 0 18px 40px rgba(25, 20, 50, .28); }
.lock-time { margin: 0 0 8px; font-size: 2.3rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.w-lock { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .17); font-size: .78rem; line-height: 1.35; text-align: left; }
.w-lock .w-title, .w-watch .w-title { margin-bottom: 2px; font-size: .82rem; }
.w-lock ul, .w-watch ul { margin: 0; padding: 0; list-style: none; }
.w-lock li, .w-watch li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-lock li::before, .w-watch li::before { content: "○ "; }
.w-lock li.done::before, .w-watch li.done::before { content: "◉ "; }
.w-lock li:nth-child(n + 4) { display: none; }
.watch { width: min(150px, 100%); aspect-ratio: 41 / 49; margin: 0 auto; padding: 9px; border-radius: 38px; background: #0c0c0c; box-shadow: 0 0 0 4px #2c2c2e, 0 18px 40px rgba(25, 20, 50, .3); }
.w-watch { height: 100%; overflow: hidden; padding: 14px 12px; border-radius: 30px; background: var(--note-bg); color: var(--note-ink); font-family: var(--note-font); font-size: .8rem; line-height: 1.35; transition: background-color .25s ease; }
.stage-hint { grid-column: 1 / -1; margin: 6px 0 0; color: #fff; font-size: .9rem; font-weight: 750; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* Widgets */
.widgets-section { padding: 80px var(--page-padding); background: var(--card); }
.wid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wid-card { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.wid-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; background: var(--yellow); color: var(--ink); }
.wid-check .wid-icon { background: var(--mint); }
.wid-list .wid-icon { background: var(--blue); }
.wid-lock .wid-icon { background: var(--lilac); }
.wid-control .wid-icon { background: var(--coral); }
.wid-watch .wid-icon { background: #9fd8c8; }
.wid-card h3 { margin-bottom: 8px; }
.wid-card p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.wid-card .wid-where { margin-top: 14px; color: var(--text); font-size: .82rem; font-weight: 800; opacity: .72; }

/* Devices */
.devices-section { padding: 80px var(--page-padding); background: var(--blue-soft); }
.tab-list { display: flex; gap: 4px; width: max-content; max-width: 100%; margin-bottom: 30px; padding: 5px; overflow-x: auto; border-radius: 999px; background: rgba(23, 26, 24, .07); scrollbar-width: none; }
.tab-list button { flex: none; padding: 9px 17px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; }
.tab-list button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px rgba(17, 22, 18, .14); }
.device-tabs:not(.tabs-ready) .tab-list { display: none; }
.device-tabs:not(.tabs-ready) .device-panel + .device-panel { margin-top: 56px; }
.device-panel { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 48px; align-items: center; min-height: 480px; }
.device-copy h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; }
.device-copy p:not(.kicker) { max-width: 30rem; color: #46554e; font-size: 1.06rem; line-height: 1.7; }
.device-panel figure { display: flex; justify-content: center; margin: 0; }
.device-panel img { height: auto; box-shadow: var(--shadow); }
.device-phone img { width: 240px; border-radius: 28px; }
.device-tablet img { width: 360px; border-radius: 20px; }
.device-watch img { width: 220px; border-radius: 46px; }
.device-wide img { width: 100%; max-width: 720px; border-radius: 12px; }

/* Apple Intelligence */
.ai-section { padding: 90px var(--page-padding); background: var(--ink); color: #fff; }
.ai-section .kicker { color: var(--mint); }
.ai-section .section-heading > p:not(.kicker) { color: #c6cec7; }
.ai-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.ai-cards { display: grid; gap: 14px; }
.ai-card { padding: 22px 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .05); }
.ai-card h3 { margin-bottom: 8px; font-size: 1.3rem; }
.ai-card p:not(.ai-req) { margin: 0; color: #c6cec7; line-height: 1.65; }
.ai-req { display: inline-block; margin: 0 0 10px; padding: 3px 9px; border-radius: 999px; background: rgba(85, 214, 128, .14); color: var(--mint); font-size: .75rem; font-weight: 800; }
.ai-demos { display: grid; gap: 16px; }
.assist-demo { padding: 24px; border-radius: 16px; background: var(--yellow-soft); color: var(--ink); }
.assist-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 850; }
.assist-sample { margin: 0 0 14px; padding: 14px; border: 1px dashed rgba(23, 26, 24, .25); border-radius: 10px; background: rgba(255, 255, 255, .55); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88rem; line-height: 1.55; }
.assist-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.assist-actions button { padding: 7px 12px; border: 1px solid rgba(23, 26, 24, .22); border-radius: 999px; background: #fff; color: var(--ink); font-size: .86rem; font-weight: 750; cursor: pointer; }
.assist-actions button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.assist-result { min-height: 112px; margin-top: 14px; padding: 16px; border-radius: 10px; background: #fff; }
.assist-output { margin: 0; line-height: 1.6; white-space: pre-line; }
.assist-result:not(.has-result) .assist-output { color: #6a736b; }
.assist-after { display: none; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.has-result .assist-after { display: flex; }
.assist-after span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; background: #f6f7f2; font-size: .78rem; font-weight: 800; }
.assist-label { margin: 12px 0 0; color: #4c544d; font-size: .8rem; line-height: 1.5; }
.ask-card { display: grid; gap: 10px; padding: 20px; border-radius: 16px; background: #fff; color: var(--ink); }
.ask-q { justify-self: end; max-width: 85%; margin: 0; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; font-weight: 700; }
.ask-a { justify-self: start; max-width: 92%; margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #eef1ea; line-height: 1.5; }
.ask-src { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--mint-soft); font-size: .82rem; font-weight: 800; }
.ask-src .i { width: 16px; height: 16px; }
.ai-req-note { max-width: 860px; margin: 26px 0 0; color: #aab3ab; font-size: .9rem; line-height: 1.6; }
.ai-req-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Siri & Shortcuts */
.siri-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 80px var(--page-padding); background: #e4d3f4; color: var(--ink); }
.siri-section .section-heading { margin-bottom: 0; }
.siri-section .section-heading > p:not(.kicker) { color: #463c4f; }
.siri-section .kicker { color: #4d3b5c; }
.siri-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.siri-list li { width: max-content; max-width: 100%; padding: 14px 18px; border-radius: 18px 18px 18px 6px; background: #fff; font-size: 1.05rem; font-weight: 800; box-shadow: 0 8px 20px rgba(23, 26, 24, .08); }
.siri-list li:nth-child(even) { margin-left: 28px; }
.siri-note { margin: 18px 0 0; color: #463c4f; font-size: .95rem; line-height: 1.6; }
.siri-note .text-action { margin-top: 8px; color: var(--ink); }

/* Guides and misc landing additions */
.guide-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 11px; background: var(--yellow-soft); color: var(--ink); }
.all-guides { margin: 28px 0 0; }
.getting-started .section-heading > p:not(.kicker) { color: var(--muted); }
footer .lang-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
footer .lang-links a[aria-current] { color: #fff; font-weight: 800; }

/* Guide pages */
.crumbs { margin-bottom: 30px; color: var(--muted); font-size: .92rem; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.guide-date { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.phrase-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.guide-body .phrase-list li { padding: 8px 14px; border-radius: 999px; background: #efe4f8; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.action-table { border-top: 1px solid var(--line); }
.action-table > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.action-table span { color: var(--muted); line-height: 1.6; }
.guide-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.guide-index-grid .guide-link { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.guide-index-grid .guide-link:hover { border-color: var(--text); }
.guide-index-grid h2 { margin: 0 0 8px; font-size: 1.4rem; line-height: 1.25; letter-spacing: -.01em; }
.guide-index-grid p { color: var(--muted); line-height: 1.6; }
.guide-index-grid .guide-action { margin-top: auto; padding-bottom: 4px; border-bottom: 2px solid; font-weight: 800; }
.guide-index .guide-download { max-width: none; }

/* Screenshot viewer */
.lightbox { max-width: 96vw; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 12, 11, .88); }
.lightbox img { display: block; width: auto; height: auto; max-width: 94vw; max-height: 90vh; border-radius: 10px; cursor: zoom-out; }
.lightbox-close { position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

@media (max-width: 1000px) {
  .try-grid, .ai-grid { grid-template-columns: 1fr; }
  .wid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .siri-section { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .try-section, .widgets-section, .devices-section, .siri-section { padding-block: 54px; }
  .ai-section { padding-block: 60px; }
  .device-panel { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .device-phone img { width: 210px; }
  .device-tablet img { width: 300px; }
  .device-watch img { width: 190px; }
  .guide-index-grid { grid-template-columns: 1fr; }
  .action-table > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) {
  .wid-grid { gap: 10px; }
  .wid-card { padding: 16px 14px; }
  .wid-icon { width: 38px; height: 38px; margin-bottom: 12px; border-radius: 10px; }
  .wid-card h3 { font-size: 1.05rem; }
  .wid-card p { font-size: .88rem; line-height: 1.5; }
  .wid-card .wid-where { font-size: .74rem; }
  .try-stage { grid-template-columns: 1fr 1fr; padding: 20px 16px; gap: 16px 14px; }
  .w-home-wrap { grid-column: 1 / -1; grid-row: auto; }
  .w-home { width: min(260px, 100%); margin: 0 auto; }
  .demo-note { padding: 22px 20px 16px; min-height: 0; }
  .siri-list li { font-size: .98rem; }
  .siri-list li:nth-child(even) { margin-left: 14px; }
  .new-pill { font-size: .8rem; }
  .reach-screens figcaption { display: none; }
}

/* Dark mode. Neutral surfaces go dark; colored "paper" surfaces stay paper with dark ink. */
:root { --kicker: #576259; --body-text: #424c45; }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --paper: #121513; --card: #1a1e1b; --line: #2c322e; --muted: #a2aba3; --text: #e8ece7;
    --body-text: #c8cfc8; --header-bg: rgba(18, 21, 19, .9); --shadow: 0 24px 70px rgba(0, 0, 0, .45); }
  :root { --kicker: #9faea1; }
  body { color: var(--text); background: var(--paper); }
  .landing-page, .guide-page { --muted: #a2aba3; }
  .kicker { color: var(--kicker); }
  .site-header { border-bottom-color: var(--line); }
  .nav-cta, .store-button:not(.store-button-light) { color: var(--ink); background: #f1f4ef; border-color: #f1f4ef; }
  nav a:not(.nav-cta):hover { color: var(--text); border-bottom-color: var(--text); }

  /* Neutral surfaces */
  .everyday-section, .questions-section, .widgets-section, .feature-section, .feature-grid article,
  .guide-page, .intro-page, .intro-section, .split-section.reverse, .media-card, .plus-page, .unlock-section,
  .review-page, .campaign-details, .review-form { background: var(--card); }
  .getting-started, .devices, .try-section, .split-section, .media-section, .privacy-page, .wid-card { background: var(--paper); }
  .guide-link, .guide-index-grid .guide-link { background: var(--card); border-color: var(--line); }
  .guide-link:hover, .guide-index-grid .guide-link:hover { background: #20251f; border-color: var(--text); }
  .guide-body p, .guide-body li, .guide-download p { color: var(--body-text); }
  .steps li::marker { color: var(--text); }
  .review-form input { color: var(--text); background: var(--paper); border-color: var(--line); }
  .feature-number { color: #7d877e; }
  .ai-section, .reach-hero, .download, .hero, .intro-hero, .plus-hero, .review-hero, .purchase-section, .intro-download { background: #0b0d0c; }
  .ai-section { border-block: 1px solid var(--line); }
  .wid-card .wid-icon, .guide-icon { color: var(--ink); }
  .swatch { border-color: rgba(255, 255, 255, .25); }

  /* Devices band goes dark instead of pale blue */
  .devices-section { background: #141c22; }
  .device-copy p:not(.kicker) { color: var(--body-text); }
  .tab-list { background: rgba(255, 255, 255, .07); }
  .tab-list button { color: var(--text); }
  .tab-list button[aria-selected="true"] { color: var(--ink); background: #f1f4ef; }

  /* Colored paper keeps light-mode ink */
  .benefit-strip, .use-case, .plus-band, .guide-figure, .shortcut-callout, .related-guide, .feature-summary,
  .name-section, .plus-intro-section, .alt-section, .icon-section, .detail-grid article, .detail-grid article:nth-child(2),
  .detail-grid article:nth-child(3), .requirements-band, .submission-section, .siri-section, .assist-demo, .ask-card,
  .update-section, .visual-showcase, .plus-teaser, .quick-proof, .phrase-list li, kbd {
    --muted: #555e56; --line: #d1d7cf; --text: #171a18; --kicker: #576259; --body-text: #424c45; --card: #ffffff; --paper: #f6f7f2;
    color: var(--ink);
  }
  .siri-section { background: #d9c6ee; }
  .submission-section .review-form, .alt-section .media-card { background: #fff; }
  .guide-figure { background: #cfe2f1; }
  .detail-grid article:first-child { background: #f6f7f2; }
}

/* ---- Visual refresh (Nov 2026) ---- */
/* Real iPhone 17 Pro captures get a device bezel. Screen corner ≈ 165 px of a 1206 × 2622 capture. */
:root main img[src*="current/iphone-"] {
  --bezel: clamp(4px, .6vw, 8px);
  border-radius: 13.6% / 6.26%;
  box-shadow: 0 0 0 var(--bezel) #101211, 0 0 0 calc(var(--bezel) + 1.5px) #424845, 0 30px 60px -22px rgba(0, 0, 0, .5);
}

/* Hero: Home Screen with Hi Sticky widgets in front, the note list behind. */
.reach-screens { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; padding: 28px 12px; gap: 0; }
.reach-screens::before { content: ""; position: absolute; inset: 4% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(245, 214, 74, .28), rgba(184, 232, 196, .12) 55%, transparent 75%); }
.reach-screens figure { grid-row: 1; transform: none; }
.reach-picker { grid-column: 1 / 8; transform: translateY(6%) rotate(-5deg) scale(.9) !important; opacity: .92; }
.reach-home { grid-column: 5 / 12; z-index: 1; transform: rotate(2.5deg) !important; }
.reach-screens img { border-radius: 13.6% / 6.26%; }

/* Widget use case: a close-up of the top of the Home Screen, fading out. */
.widget-case figure { margin-top: auto; }
.widget-case .zoom { display: block; max-width: 340px; margin-inline: auto; padding: 8px 8px 0; background: #101211; border-radius: 52px 52px 0 0;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
:root main .widget-case img[src*="current/iphone-"] { width: 100%; aspect-ratio: 1206 / 1640; object-fit: cover; object-position: top; border-radius: 44px 44px 0 0; box-shadow: none; }

/* Mac use case: the note window floating above the list window. */
.mac-stack { position: relative; display: block; padding-bottom: 10%; }
.mac-back { display: block; width: 92%; }
.mac-front { position: absolute; right: 0; bottom: 0; width: 44%; }
.use-case .mac-stack img { border-radius: 0; filter: drop-shadow(0 14px 26px rgba(23, 26, 24, .2)); }
.use-case .mac-front img { filter: drop-shadow(0 24px 36px rgba(23, 26, 24, .32)); }

/* Device tabs: give each capture a stage. */
.device-panel figure { padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .85), rgba(255, 255, 255, .35) 70%); }
.device-phone img { width: 236px; }
.device-tablet img { width: 380px; }

@media (max-width: 760px) {
  .device-phone img { width: 220px; }
  .device-tablet img { width: 300px; }
  .widget-case .zoom { max-width: 300px; border-radius: 44px 44px 0 0; }
  :root main .widget-case img[src*="current/iphone-"] { border-radius: 36px 36px 0 0; }
}
@media (prefers-color-scheme: dark) {
  .device-panel figure { background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03) 70%); }
}

/* App Store button: Apple logo beside the label, as on the Sum of Days site. */
.store-button { flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; }
.store-button svg { flex: none; width: 22px; height: 28px; fill: currentColor; }
.store-button .store-copy { display: grid; gap: 2px; font-size: inherit; line-height: 1.1; opacity: 1; text-align: left; }
