/* focalScan — site styles
   Light, quiet and exact: the app's dark screens carry the color; the page around them is paper.
   One accent motif: the dimension line and tag, borrowed from the app's own measurements. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --mist: #f4f7fb;
  --sky: #e8f2ff;
  --card: #ffffff;
  --ink: #0b1220;
  --ink-2: #2c3445;
  --muted: #5d6679;
  --rule: #e2e8f0;
  --blue: #0a6fd6;
  --blue-ink: #0757ab;
  --cyan: #00b8f0;
  --amber: #f2cc00;
  --night: #0a1420;
  --night-ink: #e9eef6;
  --night-muted: #9aa8bd;
  --btn-bg: #0b1220;
  --btn-fg: #ffffff;
  --head-bg: #ffffff;
  --shadow: rgba(11,18,32,.22);
  --device: #0d111a;
  --device-ring: #20263a;
  /* trade colors, from the app's own estimate palette */
  --c-wallpaper: #f2cc00; --c-paint: #30d158; --c-trim: #ff9500; --c-tile: #4d8dff;
  --t-wallpaper: #8a6d00; --t-paint: #13803a; --t-trim: #b45f00; --t-tile: #2563d9;
  --k-wallpaper: #fff7d1; --k-paint: #e2f7e8; --k-trim: #ffefd9; --k-tile: #e5eeff;
  --radius: 14px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Devanagari", "Noto Sans Thai", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #05080f;
  --mist: #0a101b;
  --sky: #08111f;
  --card: #0d1524;
  --ink: #f2f5fa;
  --ink-2: #cdd5e1;
  --muted: #8e9ab0;
  --rule: #1b2536;
  --blue: #3fc4ff;
  --blue-ink: #8adcff;
  --night: #0d1a1f;
  --btn-bg: #ffffff;
  --btn-fg: #05080f;
  --head-bg: #05080f;
  --shadow: rgba(0,0,0,.7);
  --device: #10151f;
  --device-ring: #2b3549;
  --t-wallpaper: #f2cc00; --t-paint: #30d158; --t-trim: #ff9f0a; --t-tile: #74a6ff;
  --k-wallpaper: #221d05; --k-paint: #0a2414; --k-trim: #281804; --k-tile: #0c1a33;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font: 17px/1.55 var(--font); font-feature-settings: "kern"; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .45em; line-height: 1.08; letter-spacing: -0.022em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: 10px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 8px 14px; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--head-bg); border-bottom: 1px solid var(--rule); }
.head-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.brand b { color: var(--blue); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-inline-start: 8px; }
.nav a { color: var(--ink-2); font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: none; }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--ink); padding-bottom: 4px; }
.head-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.drop { position: relative; }
.drop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; color: var(--ink-2); font-size: .9rem; border: 1px solid var(--rule); background: var(--paper); }
.drop > summary::-webkit-details-marker { display: none; }
.drop[open] > summary { border-color: var(--ink); }
details.drop:not([open]) > .drop-panel { display: none; }
.drop-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 40px var(--shadow); padding: 10px; z-index: 60; }
.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 2px; min-width: 420px; }
.drop-panel a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; }
.drop-panel a:hover { background: var(--mist); text-decoration: none; }
.drop-panel a[aria-current] { color: var(--ink); font-weight: 650; }
.menu { display: none; }
.menu .drop-panel { min-width: 230px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-store { background: var(--btn-bg); color: var(--btn-fg); padding: 11px 22px 11px 18px; min-height: 52px; }
.btn-store:hover { background: var(--btn-bg); color: var(--btn-fg); opacity: .88; }
.btn-store svg { width: 24px; height: 24px; flex: none; }
.btn-store .b2 { display: flex; flex-direction: column; line-height: 1.05; text-align: start; }
.btn-store small { font-size: .7rem; font-weight: 500; opacity: .85; }
.btn-store .big { font-size: 1.22rem; letter-spacing: -0.01em; }
.btn-small { min-height: 36px; padding: 7px 16px 7px 13px; font-size: .9rem; }
.btn-small svg { width: 16px; height: 16px; }
.btn-ghost { border: 1px solid var(--rule); color: var(--ink); padding: 11px 20px; min-height: 48px; background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.note { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- devices ---------- */
.phone, .tablet { position: relative; background: var(--device); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 60px -20px var(--shadow), 0 0 0 1px var(--device-ring); }
.phone { border-radius: 15% / 7%; padding: 3.2%; aspect-ratio: 1320 / 2868; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 12% / 5.6%; }
.tablet { border-radius: 5% / 6.6%; padding: 2.6%; aspect-ratio: 2752 / 2064; }
.tablet img { width: 100%; height: 100%; object-fit: cover; border-radius: 3% / 4%; }

/* dimension line: the one decorative motif */
.dim { position: relative; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dim i { flex: 1; height: 1px; background: currentColor; opacity: .5; }
.dim::before, .dim::after { content: ""; position: absolute; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: currentColor; opacity: .7; }
.dim::before { inset-inline-start: 0; }
.dim::after { inset-inline-end: 0; }
.dim span { padding: 2px 9px; border-radius: 6px; background: var(--amber); color: #0b1220; font-weight: 650; direction: ltr; unicode-bidi: isolate; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 12ch; }
.stage { position: relative; padding-bottom: 8%; }
.stage .dim { margin-bottom: 18px; }
.stage .tablet { width: 100%; }
.stage .phone { position: absolute; width: 27%; inset-inline-start: -6%; bottom: -4%; }
.order { position: absolute; inset-inline-end: -2%; bottom: -2%; width: min(270px, 46%); background: var(--card); border-radius: 16px; box-shadow: 0 24px 50px -18px var(--shadow), 0 0 0 1px var(--rule); padding: 16px 18px 12px; }
.order h3 { font-size: 1rem; margin: 0; }
.order p { margin: 2px 0 10px; font-size: .82rem; color: var(--muted); }
.order dl { margin: 0; }
.order dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: .92rem; }
.order dt { color: var(--ink-2); }
.order dd { margin: 0; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* proof row */
.proof { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof li { padding: 22px 22px 22px 0; display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); line-height: 1.4; }
.proof li + li { padding-inline-start: 22px; border-inline-start: 1px solid var(--rule); }
.proof svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }

/* sections */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section.mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-bottom: 0; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps .phone { width: min(250px, 78%); margin: 0 0 28px; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-inline-end: 10px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: .85rem; font-weight: 700; vertical-align: 2px; }
.steps p { color: var(--muted); margin: 0; }

/* who it's for */
.who { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 80px); margin: 0; }
.who div { padding: 22px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 210px 1fr; gap: 18px; }
.who dt { color: var(--ink); font-weight: 650; }
.who dd { margin: 0; color: var(--muted); }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 140px); }
.feature.flip .media { order: -1; }
.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.12; font-weight: 700; }
.feature .tag { display: inline-block; font-size: .92rem; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--rule); color: var(--ink-2); }
[dir="rtl"] .ticks li { padding: 11px 30px 11px 0; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 19px; width: 12px; height: 7px; border-inline-start: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
[dir="rtl"] .ticks li::before { transform: rotate(45deg) scaleX(-1); }
.media { position: relative; }
.media .phone { width: min(270px, 58%); margin-inline: auto; }
.media.pair { padding-bottom: 6%; }
.media.pair .tablet { width: 100%; }
.media.pair .phone { position: absolute; width: 26%; inset-inline-end: -3%; bottom: -6%; margin: 0; }
.more-link { display: inline-block; margin-top: 18px; font-weight: 600; }

/* iPad band */
.big-device { max-width: 980px; margin: clamp(36px, 5vw, 56px) auto 0; }
.ipad-new { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(36px, 5vw, 56px); list-style: none; padding: 0; }
.ipad-new li { border-top: 2px solid var(--ink); padding-top: 14px; color: var(--ink-2); font-size: .98rem; }

/* share */
.share-list { list-style: none; margin: 0; padding: 0; }
.share-list li { padding: 18px 0; border-top: 1px solid var(--rule); }
.share-list strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.share-list span { color: var(--muted); }

/* maker */
.maker { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.maker blockquote { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; font-weight: 600; }
.maker .press { border-inline-start: 3px solid var(--amber); padding-inline-start: 16px; color: var(--ink-2); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { border: 1px solid var(--rule); border-radius: 22px; padding: 28px; background: var(--card); }
.plan.best { border: 2px solid var(--ink); }
.plan h3 { font-size: 1.05rem; margin-bottom: 6px; }
.plan .price { font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-inline-start: 4px; }
.plan .pnote { color: var(--blue); font-weight: 600; font-size: .9rem; margin: 10px 0 14px; }
.plan ul { margin: 0; padding-inline-start: 18px; color: var(--ink-2); }
.plan li { margin: 6px 0; }

/* faq */
.faq { max-width: 860px; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; color: var(--ink); font-weight: 600; font-size: 1.06rem; }
[dir="rtl"] .faq summary { padding: 20px 0 20px 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

/* closing band */
.cta-band { background: var(--night); color: var(--night-muted); padding: clamp(64px, 9vw, 112px) 0; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; align-items: center; }
.cta-band h2 { color: #fff; }
[data-theme="dark"] .cta-band { border-top: 1px solid #16303a; }
.cta-band .lead { color: #c9d1e3; margin: 0; }
.cta-band .btn-store { background: #fff; color: #0b1220; }
.cta-band .btn-store:hover { background: #e9edf5; color: #0b1220; }
.cta-band .note { color: #9aa5bf; margin-top: 12px; max-width: 32ch; }

/* footer */
.site-foot { background: var(--mist); padding: 56px 0 32px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h2 { font-size: .9rem; letter-spacing: 0; margin: 4px 0 12px; color: var(--ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 7px 0; }
.site-foot a { color: var(--ink-2); }
.site-foot a:hover { color: var(--ink); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }
.foot-langs a { font-size: .86rem; color: var(--muted); }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 650; }
.fine { color: var(--muted); font-size: .82rem; margin-top: 18px; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.page-hero .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.fgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.fgrid li { padding: 22px 0; border-top: 1px solid var(--rule); }
.fgrid strong { display: block; color: var(--ink); font-size: 1.06rem; margin-bottom: 4px; }
.fgrid span { color: var(--muted); }
.fnote { margin-top: 24px; font-size: .92rem; color: var(--muted); max-width: 80ch; }
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.slip { background: var(--card); border-radius: 18px; box-shadow: 0 24px 50px -24px var(--shadow), 0 0 0 1px var(--rule); padding: 8px 24px; }
.slip div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.slip div:first-child { border-top: 0; }
.slip dt { color: var(--ink-2); }
.slip dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slip div:last-child dd { font-size: 2rem; letter-spacing: -0.02em; line-height: 1; box-shadow: inset 0 -6px 0 var(--amber); padding: 0 2px; }
.how { margin: 0; padding-inline-start: 22px; max-width: 72ch; }
.how li { margin: 0 0 14px; padding-inline-start: 6px; color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 28px 0 0; max-width: 760px; }
table.waste { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .96rem; }
table.waste th, table.waste td { padding: 11px 14px; border-bottom: 1px solid var(--rule); text-align: start; }
table.waste th { color: var(--ink); font-weight: 650; border-bottom: 2px solid var(--ink); }
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.tips li { padding: 20px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.tips strong { color: var(--ink); }
.related { display: flex; flex-wrap: wrap; gap: 12px; }

/* blog + article */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card { display: block; color: inherit; }
.post-card:hover { text-decoration: none; }
.post-card img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--mist); }
.post-card h2 { font-size: 1.4rem; margin: 16px 0 6px; }
.post-card p { color: var(--muted); }
.post-card .more { color: var(--blue); font-weight: 600; }
.article { max-width: 820px; }
.byline { color: var(--muted); font-size: .93rem; }
.hero-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--mist); margin: 8px 0 32px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: 12px; background: var(--mist); }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.quick { background: var(--mist); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.quick h2 { font-size: 1.1rem; margin: 0 0 6px; }
.quick p { margin: 0; }
.author { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.author img { border-radius: 12px; }
.author p { margin: 4px 0 0; color: var(--muted); }

/* support chat */
.chat { border: 1px solid var(--rule); border-radius: 18px; padding: 18px; max-width: 860px; background: var(--paper); }
.chat-log { min-height: 160px; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 12px; }
.msg { padding: 10px 14px; border-radius: 16px; max-width: 80%; line-height: 1.45; }
.msg.bot { background: var(--mist); color: var(--ink-2); align-self: flex-start; }
.msg.me { background: var(--btn-bg); color: var(--btn-fg); align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.chips button { font: inherit; font-size: .88rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
#chat-form { display: flex; gap: 10px; }
#chat-input { flex: 1; font: inherit; padding: 11px 16px; border: 1px solid var(--rule); border-radius: 999px; min-width: 0; }
#chat-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,123,192,.18); }
.chat form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- responsive ---------- */

body { overflow-wrap: break-word; }
h1, h2, h3, td, th { hyphens: auto; -webkit-hyphens: auto; }

/* ===================== v4: picture-led home ===================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.theme-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); cursor: pointer; padding: 0; }
.theme-btn:hover { border-color: var(--ink); color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
.center { justify-content: center; }
.center-head { text-align: center; max-width: 820px; margin: 0 auto clamp(36px, 5vw, 64px); }
.center-head .lead { margin-inline: auto; margin-bottom: 0; }

/* reveal on scroll: opacity and transform only, so nothing shifts */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* hero */
.hero2 { background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 55%, var(--paper) 100%); padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero2-text { text-align: center; }
.hero2 h1 { font-size: clamp(2.8rem, 7.2vw, 6rem); max-width: 14ch; margin-inline: auto; letter-spacing: -0.035em; }
.hero2 .lead { margin: 0 auto; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink-2); }
.hero2 .cta-row { margin-top: 30px; }
.hero2 .note { margin-top: 12px; }
.hero2-stage { position: relative; max-width: 1040px; margin-top: clamp(40px, 6vw, 72px); padding-bottom: 5%; }
.hero2-stage .dim { margin: 0 0 18px; }
.hero2-stage .tablet { width: 100%; }
.hero2-stage .phone { position: absolute; width: 23%; inset-inline-end: -4%; bottom: -2%; }

/* highlights gallery */
.hl-wrap { overflow: hidden; }
.hl-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.hl-head h2 { margin: 0; }
.hl-ctrl { display: flex; gap: 10px; }
.hl-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.hl-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .hl-btn svg { transform: scaleX(-1); }
.hl-btn:hover:not(:disabled) { background: var(--rule); }
.hl-btn:disabled { opacity: .35; cursor: default; }
.hl { list-style: none; margin: 0; padding: 4px max(20px, calc((100% - var(--wrap)) / 2)) 24px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100% - var(--wrap)) / 2)); scrollbar-width: none; overscroll-behavior-x: contain; }
.hl::-webkit-scrollbar { display: none; }
.hl:focus-visible { outline-offset: -3px; }
.hl-card { --tc: var(--cyan); position: relative; flex: 0 0 min(372px, 80vw); aspect-ratio: 372 / 580; border-radius: 28px; overflow: hidden; scroll-snap-align: start; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 26%, #0a1420) 0%, #0a1420 62%); color: #fff; }
.hl-card.t-wallpaper { --tc: var(--c-wallpaper); } .hl-card.t-paint { --tc: var(--c-paint); } .hl-card.t-trim { --tc: var(--c-trim); } .hl-card.t-tile { --tc: var(--c-tile); }
.hl-card p { position: relative; z-index: 2; margin: 0; padding: 28px 28px 0; font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.hl-card .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl-card.k-photo::after { content: ""; position: absolute; inset: 0 0 auto; height: 45%; background: linear-gradient(180deg, rgba(5,10,18,.72), rgba(5,10,18,0)); z-index: 1; }
.hl-card .phone { position: absolute; width: 64%; left: 18%; top: 30%; }
.hl-card .shot { position: absolute; left: 0; right: 0; bottom: 0; height: 66%; width: 100%; object-fit: cover; object-position: 62% 50%; }

/* trade tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile { --tt: var(--t-wallpaper); --tk: var(--k-wallpaper); --tc: var(--c-wallpaper); position: relative; display: flex; flex-direction: column; min-height: 520px; padding: 34px 34px 0; border-radius: 28px; background: var(--tk); color: var(--ink); overflow: hidden; text-decoration: none; }
a.tile:hover { text-decoration: none; color: var(--ink); }
.tile.t-paint { --tt: var(--t-paint); --tk: var(--k-paint); --tc: var(--c-paint); }
.tile.t-trim { --tt: var(--t-trim); --tk: var(--k-trim); --tc: var(--c-trim); }
.tile.t-tile { --tt: var(--t-tile); --tk: var(--k-tile); --tc: var(--c-tile); }
.tile-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--tt); font-size: 1.05rem; }
.tile-name::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--tc); }
.tile-big { display: block; font-size: clamp(4.5rem, 9vw, 7.5rem); font-weight: 750; letter-spacing: -0.05em; line-height: .95; margin-top: 14px; font-variant-numeric: tabular-nums; }
.tile-big small { font-size: .3em; letter-spacing: -0.01em; font-weight: 650; margin-inline-start: .3em; color: var(--ink-2); }
.tile-more { display: inline-block; margin-top: 10px; color: var(--tt); font-weight: 600; }
a.tile:hover .tile-more { text-decoration: underline; text-underline-offset: 3px; }
.tile-shot { display: block; margin-top: auto; padding-top: 28px; }
.tile-shot img { width: 62%; margin: 0 auto; border-radius: 22px 22px 0 0; height: 300px; object-fit: cover; object-position: top; box-shadow: 0 -10px 40px -12px var(--shadow); }
.tile-shot.wide img { width: 100%; height: 300px; object-position: left top; border-radius: 18px 18px 0 0; }

/* dark photo band */
.band.dark { background: var(--night); color: var(--night-muted); }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.band-photo { align-self: stretch; min-height: 560px; position: relative; }
.band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.band-text { padding: clamp(48px, 7vw, 112px) clamp(24px, 6vw, 96px); max-width: 640px; }
.band.dark h2 { color: #fff; }
.band.dark .lead { color: var(--night-muted); }
.roles { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.roles li { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--night-ink); font-size: .95rem; font-weight: 550; border: 1px solid rgba(255,255,255,.1); }
.roles li:nth-child(4n+1) { box-shadow: inset 3px 0 0 var(--c-wallpaper); } .roles li:nth-child(4n+2) { box-shadow: inset 3px 0 0 var(--c-paint); }
.roles li:nth-child(4n+3) { box-shadow: inset 3px 0 0 var(--c-trim); } .roles li:nth-child(4n) { box-shadow: inset 3px 0 0 var(--c-tile); }

/* looks */
.looks-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.looks-photo img { border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.papers { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.papers li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.2; }
.papers img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--rule), 0 6px 16px -8px var(--shadow); }
.looks-ipad { width: 100%; }

/* film */
.film-sec { background: linear-gradient(180deg, var(--paper), var(--sky)); }
.film { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.film .phone { width: min(320px, 72vw); }
.film video { width: 100%; height: 100%; object-fit: cover; border-radius: 12% / 5.6%; display: block; background: #000; }
.film-sound { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.film-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.film-sound[aria-pressed="false"] .w { opacity: .25; }

/* iPad + maker */
.ipad-sec .big-device { max-width: 1040px; margin: 0 auto; }
.new-h { text-align: center; margin-top: clamp(40px, 5vw, 64px); }
.ipad-sec .ipad-new { margin-top: 18px; }
.maker2 { text-align: center; }
.maker2 .wrap { max-width: 860px; }
.maker-line { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; }
.maker2 .press { display: inline-block; margin-top: 10px; padding: 10px 18px; border-radius: 999px; background: var(--mist); color: var(--ink-2); font-size: .95rem; }

@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 28px 26px 0; }
  .band-in { grid-template-columns: 1fr; }
  .band-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .looks-in { grid-template-columns: 1fr; }
  .looks-photo img { aspect-ratio: 4 / 3; }
  .papers { grid-template-columns: repeat(4, 1fr); }
  .hl-head .hl-ctrl { display: none; }
}
@media (max-width: 560px) {
  .hero2-stage .phone { width: 28%; inset-inline-end: -2%; }
  .tile-shot img, .tile-shot.wide img { height: 240px; }
  .hl-card p { padding: 22px 22px 0; }
}


@media (max-width: 560px) {
  .head-in { gap: 12px; }
  .head-actions { gap: 6px; }
  .drop > summary span { display: none; }
  .drop > summary { padding: 9px; }
  .theme-btn { width: 36px; height: 36px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile { padding: 18px 16px 0; border-radius: 22px; }
  .tile-name { font-size: .88rem; gap: 7px; }
  .tile-name::before { width: 9px; height: 9px; border-radius: 3px; }
  .tile-big { font-size: 3.4rem; margin-top: 8px; }
  .tile-big small { display: block; font-size: 1rem; margin: 4px 0 0; }
  .tile-more { font-size: .85rem; }
  .tile-shot { padding-top: 16px; }
  .tile-shot img { width: 84%; height: 150px; border-radius: 14px 14px 0 0; }
  .tile-shot.wide img { height: 150px; border-radius: 12px 12px 0 0; }
  .maker-line { font-size: 1.2rem; }
}

/* trade pages */
.trade-hero.t-wallpaper { --sky: var(--k-wallpaper); } .trade-hero.t-paint { --sky: var(--k-paint); } .trade-hero.t-tile { --sky: var(--k-tile); }
.trade-hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 17ch; }
.crumbs.center { justify-content: center; }
.crumb-trade { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 600; }
.crumb-trade::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tc, var(--cyan)); }
.t-wallpaper { --tc: var(--c-wallpaper); --tt: var(--t-wallpaper); } .t-paint { --tc: var(--c-paint); --tt: var(--t-paint); }
.t-tile { --tc: var(--c-tile); --tt: var(--t-tile); } .t-trim { --tc: var(--c-trim); --tt: var(--t-trim); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; text-align: center; }
.stats div { padding: 28px 16px; border-radius: 24px; background: var(--mist); }
.stats dd { margin: 0; font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats dt { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.stats .last { background: var(--tc); }
.stats .last dd, .stats .last dt { color: #0b1220; }
.center-note { text-align: center; margin: 22px auto 0; max-width: 60ch; }
.acc { border-bottom: 1px solid var(--rule); max-width: 1000px; }
.acc > details { border-top: 1px solid var(--rule); }
.acc > details > summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; position: relative; color: var(--ink); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
[dir="rtl"] .acc > details > summary { padding: 24px 0 24px 44px; }
.acc > details > summary::-webkit-details-marker { display: none; }
.acc > details > summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 400; color: var(--muted); line-height: 1; }
.acc > details[open] > summary::after { content: "–"; }
.acc > details > *:not(summary) { margin-bottom: 28px; }
.acc h3 { margin-top: 28px; }
.faq-h { margin-top: clamp(56px, 7vw, 88px); }
.tiles.mini { grid-template-columns: repeat(3, 1fr); }
.tiles.mini .tile { min-height: 0; padding: 26px 28px 30px; }
.tiles.mini .tile-big { font-size: clamp(3rem, 6vw, 4.6rem); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; gap: 12px; } .stats div { padding: 18px 16px; } .tiles.mini { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tiles.mini { grid-template-columns: 1fr; } .tiles.mini .tile-big small { display: inline; margin-inline-start: .3em; } }

/* ============ colored type ============ */
/* page headlines are cut out of the app's indigo grasscloth */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  main h1 { background-image: linear-gradient(rgba(8,22,70,.12), rgba(8,22,70,.12)), url(/assets/media/paper-grassIndigo.webp); background-size: 300px; background-position: center;
    -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
  [data-theme="dark"] main h1 { background-image: linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)), url(/assets/media/paper-grassSeaGlass.webp); }
}
/* section headlines take colors from the app's estimate palette */
.lead { color: #4a5a78; }
[data-theme="dark"] .lead { color: #a3b1c8; }
.pg-home .hl-head h2 { color: #0a7fa8; }
.pg-home #trades h2 { color: #6b3fd1; }
.pg-home .band.dark h2 { color: var(--c-wallpaper); }
.pg-home .looks h2 { color: #26407e; }
.pg-home .film-sec h2 { color: #13803a; }
.pg-home .ipad-sec h2 { color: #2563d9; }
.pg-home .maker2 h2 { color: #b45f00; }
.pg-home #pricing h2 { color: #0b3f9e; }
.pg-home .faq-sec h2, .pg-home .section-head h2 { color: #0a7fa8; }
.cta-band h2 { color: var(--c-paint); }
.pg-wallpaper h2 { color: var(--t-wallpaper); } .pg-paint h2 { color: var(--t-paint); } .pg-tile h2 { color: var(--t-tile); }
[data-theme="dark"] .pg-home .hl-head h2 { color: #3fd0ff; }
[data-theme="dark"] .pg-home #trades h2 { color: #b79bff; }
[data-theme="dark"] .pg-home .looks h2 { color: #8ea8ff; }
[data-theme="dark"] .pg-home .film-sec h2 { color: #30d158; }
[data-theme="dark"] .pg-home .ipad-sec h2 { color: #74a6ff; }
[data-theme="dark"] .pg-home .maker2 h2 { color: #ff9f0a; }
[data-theme="dark"] .pg-home #pricing h2, [data-theme="dark"] .pg-home .section-head h2 { color: #6fb6ff; }
/* the big numbers wear their trade color */
.tile-big { color: var(--tt); }
.tile-big small { color: var(--tt); opacity: .85; }

/* ============ photo hero ============ */
.hero4 { position: relative; height: min(56.25vw, 92vh); min-height: 560px; background: #0a192f; color: #fff; overflow: hidden; }
.hero4-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero4-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,12,28,.55) 0%, rgba(5,12,28,.3) 38%, rgba(5,12,28,0) 58%); pointer-events: none; }
.hero4-text { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; }
.hero4-text .wrap { width: min(100% - 48px, var(--wrap)); }
.hero4-inner { width: min(54%, 680px); margin-left: 0; margin-right: auto; }
[dir="rtl"] .hero4-inner { width: min(47%, 600px); }
.hero4-brand { display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(18px, 2.4vw, 34px); }
.hero4-brand img { width: clamp(44px, 4vw, 60px); height: auto; border-radius: 24%; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.hero4-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.hero4-brand b { font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.hero4-brand small { font-size: clamp(.95rem, 1.25vw, 1.2rem); color: #c9d4ea; margin-top: 4px; }
main .hero4 h1 { background: none; color: #fff; font-weight: 800; font-size: clamp(2.5rem, 4.7vw, 5.2rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0; max-width: none; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero4 em { font-style: normal; color: #2fe3f5; }
.hero4-trades { margin: clamp(14px, 1.8vw, 24px) 0 0; font-size: clamp(1.25rem, 2.1vw, 2.1rem); font-weight: 750; letter-spacing: -0.015em; color: #fff; }
.hero4 .cta-row { margin-top: clamp(22px, 2.6vw, 36px); align-items: center; gap: 16px; }
.hero4 .btn-store { background: #fff; color: #0b1220; }
.hero4 .btn-store:hover { background: #e9eef6; color: #0b1220; opacity: 1; }
.hero4 .note { color: #c9d4ea; margin: 0; }
@media (max-width: 899px) {
  .hero4 { height: auto; min-height: 0; display: flex; flex-direction: column-reverse; }
  .hero4-media img { position: static; display: block; width: 100%; height: auto; }
  .hero4-media::after { display: none; }
  .hero4-text { height: auto; padding: 36px 0 30px; background: linear-gradient(rgba(5,12,28,.55), rgba(5,12,28,.7)), url(/assets/media/paper-grassIndigo.webp); background-size: 260px; }
  .hero4-inner { width: 100%; }
  main .hero4 h1 { font-size: clamp(2.3rem, 9.5vw, 3.4rem); }
}

/* language flags (system emoji) */
.flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1.15em; line-height: 1; display: inline-block; }
.drop > summary .flag { font-size: 1.2rem; }
.lang-grid a { display: flex; align-items: center; gap: 10px; }
.lang-grid a .flag { flex: none; width: 1.4em; text-align: center; }
@media (max-width: 560px) { .drop > summary span:not(.flag) { display: none; } .drop > summary .flag { display: inline-block; } }

/* "Not just square feet": cards standing on the marble counter */
.nsf { background: #e9edf2; color: #0b1220; overflow: hidden; }
.nsf-stage { position: relative; margin: 0 auto; max-width: 2000px; container-type: inline-size; }
.nsf-brand { display: flex; align-items: center; justify-content: center; gap: .5em; margin: 0 0 .25em; font-size: clamp(1.4rem, 2.6cqw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; color: #0b1220; }
.nsf-brand img { width: 1.25em; height: auto; border-radius: 24%; }
.nsf-brand b { color: #0a84d6; font-weight: 600; }
main .nsf h2 { position: relative; display: inline-block; margin: 0; background: none; color: #0b1220; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
main .nsf h2::after { content: ""; position: absolute; right: 0; bottom: -.16em; width: 42%; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9C60 3 140 2 198 5' fill='none' stroke='%231e8bff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.nsf-lead { margin: .5em auto 0; color: #3c4658; max-width: 60ch; text-wrap: balance; }
.nsf-head { text-align: center; }
.nsf-cards { list-style: none; margin: 0; padding: 0; }
.nsf-card { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(11,18,32,.06), 0 24px 50px -24px rgba(11,18,32,.45); display: flex; flex-direction: column; }
.nsf-photo { display: block; width: 100%; aspect-ratio: 392 / 216; object-fit: cover; }
.nsf-body { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 20px; }
.nsf-icon { flex: none; width: 34px; height: 34px; padding-right: 14px; box-sizing: content-box; border-right: 1px solid #dfe4ec; fill: none; stroke: #1e8bff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nsf-body h3 { margin: 0 0 6px; color: #0b1220; font-size: 1.15rem; line-height: 1.15; letter-spacing: -0.01em; }
.nsf-body p { margin: 0; color: #4a5568; font-size: .95rem; line-height: 1.4; }
/* computer: the cards sit exactly over the four cards in the photo */
@media (min-width: 1200px) {
  .nsf-stage { aspect-ratio: 1672 / 780; background: url(/assets/media/nsf-bg.webp) center top / 100% auto no-repeat; }
  .nsf-head { position: absolute; left: 0; right: 0; top: 1.5cqw; }
  .nsf-brand { font-size: 1.9cqw; margin-bottom: .1em; }
  main .nsf h2 { font-size: 3.9cqw; }
  .nsf-lead { font-size: 1.22cqw; margin-top: .6em; max-width: 56cqw; text-wrap: balance; text-shadow: 0 0 .6em rgba(255,255,255,.9), 0 0 .2em rgba(255,255,255,.8); color: #2b3446; }
  .nsf-card { position: absolute; top: calc(31.54% - .2cqw); min-height: calc(49.5% + .4cqw); border-radius: 1.85cqw; }
  .nsf-card:nth-child(1) { left: calc(9.15% - .2cqw); width: calc(20.16% + .4cqw); }
  .nsf-card:nth-child(2) { left: calc(30.08% - .2cqw); width: calc(19.80% + .4cqw); }
  .nsf-card:nth-child(3) { left: calc(50.66% - .2cqw); width: calc(19.92% + .4cqw); }
  .nsf-card:nth-child(4) { left: calc(71.35% - .2cqw); width: calc(20.04% + .4cqw); }
  .nsf-body { gap: 1cqw; padding: 1.2cqw 1.3cqw 1.4cqw; }
  .nsf-icon { width: 2.3cqw; height: 2.3cqw; padding-right: 1cqw; }
  .nsf-body h3 { font-size: 1.42cqw; }
  .nsf-body p { font-size: 1.08cqw; }
}
/* phones and tablets: wall on top, cards on the marble */
@media (max-width: 1199px) {
  .nsf { background: url(/assets/media/nsf-marble.webp) center bottom / cover no-repeat, #e9edf2; }
  .nsf-head { padding: 44px 20px 30px; background: url(/assets/media/nsf-wall.webp) center / cover no-repeat; }
  main .nsf h2 { font-size: clamp(2rem, 7vw, 3.2rem); }
  .nsf-lead { font-size: 1.05rem; }
  .nsf-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 6px 20px 44px; max-width: 900px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .nsf-cards { grid-template-columns: 1fr; }
}
.js .nsf-card.rv { transition-delay: .05s; }
.js .nsf-card.rv:nth-child(2) { transition-delay: .12s; } .js .nsf-card.rv:nth-child(3) { transition-delay: .19s; } .js .nsf-card.rv:nth-child(4) { transition-delay: .26s; }
@media (max-width: 1060px) {
  .nav { display: none; }
  .menu { display: block; }
  .proof ul { grid-template-columns: repeat(2, 1fr); }
  .proof li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .ipad-new { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-in, .page-hero .hero-in, .feature, .maker, .example, .cta-band .wrap { grid-template-columns: 1fr; }
  .feature.flip .media { order: 0; }
  .hero h1, .page-hero h1 { max-width: 16ch; }
  .stage { margin-top: 8px; padding-bottom: 14%; }
  .stage .phone { inset-inline-start: 0; width: 26%; }
  .order { width: 210px; padding: 12px 14px 8px; inset-inline-end: 0; }
  .order dl div { padding: 6px 0; font-size: .86rem; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps .phone { width: 190px; }
  .who { grid-template-columns: 1fr; }
  .who div { grid-template-columns: 1fr; gap: 4px; }
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tips { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .head-dl span { display: none; }
  .proof ul { grid-template-columns: 1fr; }
  .proof li, .proof li + li { padding: 14px 0; border-inline-start: 0; }
  .proof li + li { border-top: 1px solid var(--rule); }
  .order { position: relative; width: 100%; inset: auto; margin-top: 18px; }
  .stage { padding-bottom: 0; }
  .stage .phone { display: none; }
  .maker blockquote { font-size: 1.15rem; font-weight: 550; line-height: 1.45; }
  .fgrid { grid-template-columns: 1fr; }
  .ipad-new { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(2, minmax(110px, 1fr)); min-width: 0; }
  .drop-panel { position: fixed; left: 12px; right: 12px; top: 64px; max-height: calc(100vh - 88px); overflow-y: auto; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* closing App Store band: the room being scanned, real text and tags on top */
.cta2 { background: #051425; color: #dfe6f3; overflow: hidden; }
[data-theme="dark"] .cta2 { border-top: 1px solid #12233a; }
.cta2-stage { position: relative; margin: 0 auto; max-width: 2000px; container-type: inline-size; }
.cta2-media { position: relative; }
.cta2-media img { display: block; width: 100%; height: auto; }
.cta2-tag { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: .3em .55em .32em; border: 2px solid #34e36a; border-radius: .45em; background: rgba(3, 22, 13, .84); color: #fff; font-weight: 700; font-size: 1.3cqw; line-height: 1; letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; box-shadow: 0 0 .9em rgba(52, 227, 106, .45); }
.cta2-tag.sm { font-size: 1.1cqw; }
.cta2-brand { display: flex; align-items: center; gap: .45em; margin: 0; color: #fff; font-weight: 600; letter-spacing: -0.02em; }
.cta2-brand img { width: 1.55em; height: auto; border-radius: 24%; }
.cta2-brand b { color: #2fb8ff; font-weight: 600; }
.cta2 h2 { margin: 0; color: #2fd35b; font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; hyphens: manual; }
.cta2-lead { margin: 0; color: #e4e9f3; line-height: 1.42; }
.cta2-accent { margin: 0; color: #fff; font-weight: 750; letter-spacing: -0.015em; border-inline-start: 4px solid #2fd35b; padding-inline-start: .7em; line-height: 1.15; }
.cta2 .btn-store { background: #fff; color: #0b1220; }
.cta2 .btn-store:hover { background: #e9edf5; color: #0b1220; }
.cta2-note { margin: 12px 0 0; color: #93a0bb; font-size: .82rem; line-height: 1.45; }
@media (min-width: 1150px) {
  .cta2-text { position: absolute; top: 0; bottom: 0; left: 6.2%; width: 33%; display: flex; flex-direction: column; justify-content: center; padding: 3cqw 0; }
  [dir="rtl"] .cta2-text { text-align: right; left: 5%; width: 26.5%; }
  [dir="rtl"] .cta2 h2 { width: auto; }
  [dir="rtl"] .cta2-lead, [dir="rtl"] .cta2-note { max-width: none; }
  .cta2-brand { font-size: 2.5cqw; margin-bottom: 2cqw; }
  .cta2 h2 { font-size: 4.7cqw; margin-bottom: 1.7cqw; width: 37cqw; }
  .cta2-lead { font-size: 1.5cqw; max-width: 31cqw; margin-bottom: 1.9cqw; }
  .cta2-accent { font-size: 2.05cqw; border-inline-start-width: .26cqw; margin-bottom: 2.2cqw; }
  .cta2-note { max-width: 25cqw; }
}
@media (max-width: 1149px) {
  .cta2-tag { left: var(--mx); top: var(--my); font-size: clamp(10px, 2.3cqw, 16px); border-width: 1.5px; }
  .cta2-tag.sm { font-size: clamp(9px, 1.9cqw, 14px); }
  .cta2-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(to bottom, rgba(5,20,37,0), #051425); }
  .cta2-text { padding: 8px 22px 56px; max-width: 640px; margin: 0 auto; }
  .cta2-brand { font-size: 1.5rem; margin-bottom: 16px; }
  .cta2 h2 { font-size: clamp(2.3rem, 9.5vw, 3.6rem); margin-bottom: 16px; }
  .cta2-lead { font-size: 1.08rem; margin-bottom: 18px; }
  .cta2-accent { font-size: 1.35rem; margin-bottom: 24px; }
}

/* who it's for: eight trades on the picture */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.who2 { background: #011522; color: #fff; overflow: hidden; }
.who2-stage { position: relative; margin: 0 auto; max-width: 2000px; }
.who2-bg img { display: block; width: 100%; height: auto; }
.who2-tiles { list-style: none; margin: 0; padding: 0; }
.who2-tile { position: relative; container-type: inline-size; }
.who2-tile span { position: absolute; left: 50%; transform: translate(-50%, -50%); width: 84%; text-align: center; color: #fff; font-weight: 700; line-height: 1.12; letter-spacing: -0.005em; text-wrap: balance; overflow-wrap: break-word; }
.who2 .btn-store { background: #fff; color: #0b1220; }
.who2 .btn-store:hover { background: #e9edf5; color: #0b1220; }
@media (min-width: 1150px) {
  .who2-stage { container-type: inline-size; }
  .who2-panel { position: absolute; inset: 0; }
  .who2-logo, .who2-tile img { display: none; }
  .who2-tile { position: absolute; width: 10.15%; height: 18.04%; }
  .who2-tile:nth-child(1), .who2-tile:nth-child(5) { left: 52.93%; }
  .who2-tile:nth-child(2), .who2-tile:nth-child(6) { left: 64.21%; }
  .who2-tile:nth-child(3), .who2-tile:nth-child(7) { left: 75.65%; }
  .who2-tile:nth-child(4), .who2-tile:nth-child(8) { left: 86.98%; }
  .who2-tile:nth-child(-n+4) { top: 32.47%; }
  .who2-tile:nth-child(n+5) { top: 53.21%; }
  .who2-tile:nth-child(-n+4) span { top: 76.2%; }
  .who2-tile:nth-child(n+5) span { top: 73%; }
  .who2-tile span { font-size: 12cqi; }
  .who2-tile.long span { font-size: 10.2cqi; }
  .who2-tile.xlong span { font-size: 9.2cqi; }
  .who2-store { position: absolute; left: 74.52%; top: 84.78%; transform: translate(-50%, -50%); }
  .who2-store .btn-store { font-size: 1.15cqw; min-height: 0; padding: .62em 1.9em .62em 1.45em; gap: .8em; border-radius: 999px; box-shadow: 0 1cqw 2.6cqw rgba(0,0,0,.35); }
  .who2-store .btn-store svg { width: 2.7em; height: 2.7em; }
  .who2-store .btn-store small { font-size: 1.12em; }
  .who2-store .btn-store .big { font-size: 2.15em; }
}
@media (max-width: 1149px) {
  .who2-bg { position: relative; display: block; }
  .who2-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, rgba(1,21,34,0), #011522); }
  .who2-panel { padding: 4px 18px 56px; max-width: 760px; margin: 0 auto; text-align: center; }
  .who2-logo { display: block; width: min(340px, 78%); height: auto; margin: 0 auto 18px; }
  .who2-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .who2-tile img { display: block; width: 100%; height: auto; }
  .who2-tile span { top: 72%; font-size: clamp(11px, 10.5cqi, 19px); }
  .who2-tile.long span { font-size: clamp(10px, 9cqi, 17px); }
  .who2-tile.xlong span { font-size: clamp(9px, 8.2cqi, 15px); }
  .who2-store { margin-top: 26px; display: flex; justify-content: center; }
}
@media (max-width: 600px) {
  .who2-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1149px) and (min-width: 601px) {
  .who2-bg img { max-height: 520px; object-fit: cover; object-position: center 45%; }
}

/* wallpaper page: photo hero, the finished room with the paste table */
.ph-hero { --ph: #f5cf3a; --phbg: #0b1b34; position: relative; background: var(--phbg); color: #fff; overflow: hidden; }
.ph-hero.t-paint { --ph: #43e07c; --phbg: #031c43; }
.ph-hero.t-tile { --ph: #66a8ff; --phbg: #061838; }
.ph-hero.t-trim { --ph: #ffa83d; --phbg: #041b3f; }
.ph-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
main .ph-hero h1, [data-theme="dark"] main .ph-hero h1 { hyphens: manual; -webkit-hyphens: manual; margin: 0; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ph); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.ph-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 20px; color: #fff; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
.ph-brand img { width: 34px; height: 34px; border-radius: 22%; }
.ph-brand b { color: #2fb8ff; font-weight: 600; }
.ph-brand small { width: 100%; color: #b8c4da; font-size: .92rem; font-weight: 500; letter-spacing: 0; }
.ph-hero .crumbs { justify-content: flex-start; margin: 0 0 26px; color: #8f9cb6; }
.ph-hero .crumbs a { color: #c9d3e6; }
.ph-hero .crumb-trade { color: #fff; }
.ph-tagline { margin: 18px 0 0; color: #fff; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ph-lead { margin: 16px 0 0; color: #c9d3e6; line-height: 1.55; }
.ph-proof { margin: 20px 0 0; color: #fff; font-weight: 650; line-height: 1.3; border-inline-start: 4px solid var(--ph); padding-inline-start: 14px; }
.ph-hero .cta-row { margin-top: 26px; }
.ph-hero .btn-store { background: #fff; color: #0b1220; }
.ph-hero .btn-store:hover { background: #e9edf5; color: #0b1220; }
@media (min-width: 1280px) {
  .ph-photo { position: absolute; inset: 0; }
  .ph-photo img { object-position: right center; }
  .ph-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--phbg) 75%, transparent) 0%, color-mix(in srgb, var(--phbg) 55%, transparent) 28%, color-mix(in srgb, var(--phbg) 25%, transparent) 40%, transparent 52%); }
  [dir="rtl"] .ph-photo::after { background: linear-gradient(to left, color-mix(in srgb, var(--phbg) 75%, transparent) 0%, color-mix(in srgb, var(--phbg) 55%, transparent) 28%, color-mix(in srgb, var(--phbg) 25%, transparent) 40%, transparent 52%); }
  [dir="rtl"] .ph-photo img { transform: scaleX(-1); }
  .ph-text { position: relative; z-index: 2; min-height: clamp(600px, 50vw, 920px); display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
  .ph-text > * { max-width: min(39%, 620px); }
  .ph-hero .crumbs { margin-bottom: 18px; }
  .ph-brand { margin-bottom: 14px; }
  .ph-hero h1 { font-size: clamp(2.3rem, 3.1vw, 3.9rem); }
  .ph-tagline { margin-top: 14px; font-size: clamp(1.25rem, 1.6vw, 1.75rem); }
  .ph-lead { margin-top: 12px; font-size: clamp(1rem, 1.05vw, 1.18rem); }
  .ph-proof { margin-top: 16px; font-size: clamp(.98rem, 1.1vw, 1.2rem); }
  .ph-hero .cta-row { margin-top: 20px; }
}
@media (max-width: 1279px) {
  .ph-photo { position: relative; display: block; }
  .ph-photo img { height: auto; }
  .ph-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--phbg)); }
  .ph-text { padding: 0 20px 52px; margin-top: -8px; position: relative; }
  .ph-hero h1 { font-size: clamp(2.2rem, 8.5vw, 3.4rem); }
  .ph-tagline { font-size: 1.3rem; }
  .ph-lead { font-size: 1.05rem; }
  .ph-proof { font-size: 1rem; }
  .ph-brand small { width: 100%; padding: 0; border: 0; }
}
@media (max-width: 1279px) and (min-width: 700px) {
  .ph-photo img { max-height: 560px; object-fit: cover; object-position: center 55%; }
  .ph-text > * { max-width: 720px; }
}

.ph-hero h1 span { display: block; text-wrap: balance; }
