/* Mosaic's landing page. Mobile first: the base rules are for a phone, and the
   media queries at the end widen the layout for tablets and desktops. Colors come
   from the app icon (Design/AppIcon): a violet-navy night and a dusk gradient. */

:root {
    --night-top: #2c2150;
    --night-bottom: #11142f;
    --dusk: linear-gradient(120deg, #fdae72 0%, #e05e98 48%, #5a6cff 100%);
    --dusk-text: linear-gradient(100deg, #ffb877 0%, #f06ba4 45%, #8d8cff 100%);
    --accent: #5a5ff0;

    --bg: #ffffff;
    --bg-soft: #f4f3f8;
    --card: #ffffff;
    --text: #15142a;
    --text-2: #4c4b63;
    --text-3: #6f6e86;
    --line: rgba(21, 20, 42, 0.1);
    --shadow: 0 1px 2px rgba(17, 20, 47, 0.06), 0 8px 24px rgba(17, 20, 47, 0.08);

    --radius: 22px;
    --wrap: 1120px;
    --gutter: 20px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #9b9cff;
        --bg: #0e1029;
        --bg-soft: #15173a;
        --card: #1b1d45;
        --text: #f3f2fb;
        --text-2: #c4c3dc;
        --text-3: #9d9cb8;
        --line: rgba(255, 255, 255, 0.1);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.15em; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 9vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 6.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    background: var(--card); color: var(--text); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.gradient-text {
    background: var(--dusk-text);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

.eyebrow {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-3); margin-bottom: 0.9em;
}

.lede { font-size: 1.15rem; color: var(--text-2); max-width: 40em; }

/* Header */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(17, 20, 47, 0.78);
    -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 8px; height: 56px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
    color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    padding: 8px 10px; border-radius: 10px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.site-nav .nav-extra { display: none; }

/* Buttons */

.store-button {
    display: inline-flex; align-items: center; gap: 10px;
    background: #000; color: #fff; text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 12px;
    padding: 9px 18px 9px 14px; min-height: 52px;
    transition: transform 0.15s ease;
}
a.store-button:hover { transform: translateY(-1px); }
.store-button svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-button span { display: flex; flex-direction: column; line-height: 1.1; }
.store-button small { font-size: 0.7rem; letter-spacing: 0.02em; }
.store-button strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.header-store { white-space: nowrap; gap: 6px; padding: 4px 10px 4px 8px; min-height: 36px; border-radius: 9px; }
.header-store svg { width: 17px; height: 17px; }
.header-store small { font-size: 0.55rem; }
.header-store strong { font-size: 0.9rem; }

/* Privacy and Support join the header from 720 points, where all five links fit beside the
   name and the App Store button; below that they're in the footer. */
@media (min-width: 720px) {
    .site-nav .nav-extra { display: inline-block; }
}
/* On phones the header holds the icon, the links, and the App Store button, so the name
   is left to the icon and the links sit closer; on the narrowest the button drops "Coming soon
   to the" and the links shrink, so Inspirations, Styles, and Pricing all fit. */
@media (max-width: 599px) {
    .brand-name {
        position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
        clip: rect(0 0 0 0); white-space: nowrap;
    }
    .site-nav { gap: 0; }
    .site-nav a { padding: 8px 7px; }
}
@media (max-width: 429px) {
    .site-header .wrap { gap: 6px; }
    .site-nav a { padding: 8px 5px; font-size: 0.9rem; }
    .header-store small { display: none; }
    .header-store { padding: 4px 9px 4px 7px; gap: 5px; }
}
@media (max-width: 389px) {
    .site-header .wrap { padding: 0 12px; gap: 4px; }
    .site-nav a { padding: 8px 4px; font-size: 0.85rem; }
    .header-store strong { font-size: 0.82rem; }
    .header-store svg { width: 15px; height: 15px; }
}
@media (max-width: 339px) {
    .site-nav a { padding: 8px 3px; font-size: 0.8rem; }
}
.store-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.66); margin: 12px 0 0; }

/* Hero */

.hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(180deg, var(--night-top) 0%, var(--night-bottom) 100%);
    padding: 44px 0 0;
}
.hero::before {
    content: ""; position: absolute; inset: -30% -40% auto auto; width: 120%; height: 90%;
    background: radial-gradient(closest-side, rgba(224, 94, 152, 0.35), transparent 70%),
                radial-gradient(closest-side at 70% 60%, rgba(90, 108, 255, 0.3), transparent 70%);
    pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 40px; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { color: rgba(255, 255, 255, 0.8); }
.hero .eyebrow { color: rgba(255, 255, 255, 0.6); }

/* The hero's phone: a Home Screen made of real widget pictures. */

.phone {
    position: relative; width: min(340px, 86vw); margin: 0 auto -170px;
    aspect-ratio: 9 / 19.5;
    border-radius: 54px; padding: 12px;
    background: #0b0b12;
    box-shadow: 0 0 0 2px #3a3a48, 0 30px 80px rgba(0, 0, 0, 0.5);
}
.phone-screen {
    position: relative; height: 100%; border-radius: 43px; overflow: hidden;
    background:
        radial-gradient(120% 70% at 10% 0%, rgba(253, 174, 114, 0.55), transparent 60%),
        radial-gradient(120% 70% at 100% 40%, rgba(224, 94, 152, 0.5), transparent 60%),
        radial-gradient(120% 80% at 30% 100%, rgba(90, 108, 255, 0.6), transparent 60%),
        #1d1640;
    padding: 52px 13px 14px;
}
.phone-screen::before {
    content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
    width: 31%; height: 26px; border-radius: 20px; background: #000;
}
/* Whole widgets, each drawn with its own rounded corners and theme. */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.home-grid img { width: 100%; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)); }
.widget {
    background: #4d4d4d; border-radius: 18px; overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.widget img { width: 100%; height: auto; }
.home-grid .wide { grid-column: span 2; }
.widget.light { background: #fff; }

.phone-shine { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* Sections */

section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 36px; }

/* Steps */

.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow);
}
.step p { color: var(--text-2); margin: 0; }
.step-num {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--dusk); color: #fff; font-weight: 800; margin-bottom: 14px;
}

/* Layout diagrams: zones drawn on a CSS grid from LayoutCatalog's specs (site.js). */

.diagram {
    display: grid; gap: 4px; padding: 6px; border-radius: 14px;
    background: rgba(127, 127, 160, 0.16);
}
.diagram span {
    display: grid; place-items: center; border-radius: 8px;
    font-size: 0.7rem; font-weight: 700; color: rgba(255, 255, 255, 0.92);
    background: var(--dusk); background-attachment: local;
    min-height: 0;
}
.diagram span:nth-child(3n+2) { background: linear-gradient(120deg, #e05e98, #8b67e8); }
.diagram span:nth-child(3n) { background: linear-gradient(120deg, #7a6af0, #5a6cff); }
.diagram.small { aspect-ratio: 1; }
.diagram.medium { aspect-ratio: 2.12; }
.diagram.large { aspect-ratio: 1 / 1.05; }
.diagram.xl { aspect-ratio: 1 / 1.68; }
/* Taller than a Wide widget really is, so the 18 tiles of its Mosaic and Featured have room for
   their numbers (Dan, 2026-11-08: they overflowed at the true shape); a filter chip keeps the true
   shape, as it shows no numbers. */
.diagram.wide { aspect-ratio: 1.4; }
.insp-chip .diagram.wide { aspect-ratio: 2.12; }
.family-layouts .diagram.wide { gap: 3px; padding: 5px; }
.family-layouts .diagram.wide span { font-size: 0.62rem; border-radius: 6px; }

.step .diagram { width: 128px; margin: 0 0 16px; }

.layout-families { display: grid; gap: 28px; }
/* A grid item is as wide as its content unless told otherwise, and a row of diagrams
   scrolled sideways would otherwise widen the whole page on a phone. */
.family { min-width: 0; }
.family h3 { display: flex; align-items: baseline; gap: 10px; }
.family h3 small { font-size: 0.85rem; font-weight: 500; color: var(--text-3); }
.family-layouts {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; padding: 4px 2px 12px;
}
.family-layouts figure { margin: 0; }
.family-layouts figcaption { font-size: 0.85rem; color: var(--text-2); margin-top: 8px; text-align: center; }

/* One element at four sizes. */

.sizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 14px; }
.sizes figure { margin: 0; flex: none; max-width: 100%; }
.sizes figcaption { font-size: 0.85rem; color: var(--text-3); margin-top: 10px; }
.sizes .widget { box-shadow: var(--shadow); }
.sizes .s-tile { width: 76px; }
.sizes .s-small { width: 158px; }
.sizes .s-medium, .sizes .s-large { width: 340px; max-width: 100%; }

/* Three widgets apart, and the same three in one. */

.compare { display: grid; gap: 18px; align-items: center; justify-items: center; margin-bottom: 36px; }
.compare figure { margin: 0; width: min(100%, 380px); }
.compare figure img { width: 100%; filter: drop-shadow(0 6px 16px rgba(17, 20, 47, 0.2)); }
.apart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apart-grid .wide { grid-column: span 2; }
.apart-grid img { opacity: 0.92; }
.compare figcaption { margin-top: 12px; text-align: center; }
.compare figcaption strong { display: block; }
.compare figcaption span { color: var(--text-3); font-size: 0.92rem; }
.compare-arrow { font-size: 2rem; color: var(--text-3); transform: rotate(90deg); line-height: 1; }
.features.compact .feature { padding: 20px 22px; }

/* Mosaic in numbers: the catalog's figures (site.js doesn't touch them; a MosaicCore test
   checks them against the catalogs). */

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.numbers { background: var(--bg-soft); padding: 56px 0; text-align: center; }
.figures {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px;
    list-style: none; padding: 0; margin: 0 auto 36px; max-width: 900px;
    color: var(--text-2); font-size: 0.95rem;
}
.figures li:last-child { grid-column: span 2; }
.figures b {
    display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1.05;
    letter-spacing: -0.03em; color: var(--text);
}
.ways { font-family: var(--font-display); font-size: clamp(1.5rem, 5.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 auto 0.4em; max-width: 22em; }
.ways b { background: var(--dusk-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ways-more { color: var(--text-2); font-size: 1.1rem; max-width: 34em; margin: 0 auto 0.8em; }
.ways-more span { color: var(--text); font-weight: 700; }
.figures-note { font-size: 0.82rem; color: var(--text-3); margin: 0; }

/* The widgets that come with iPhone, beside Mosaic: a table on wider screens, a card for
   each row on a phone. */

.versus { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; }
.versus thead { display: none; }
.versus tr {
    display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px;
}
.versus td { display: block; padding: 0; }
.versus td:first-child { color: var(--text-3); font-size: 0.92rem; margin-bottom: 6px; }
.versus td:first-child::before { content: "Built in: "; font-weight: 700; }
.versus td:last-child { font-weight: 600; }
.versus td:last-child::before { content: "Mosaic: "; font-weight: 800; color: var(--accent); }

/* Examples: the size filter. */

/* Without site.js, the filter, the arrows, and the count, which need it, stay hidden. */

.gallery figure[hidden] { display: none; }

/* The nine categories. */

.categories { display: grid; gap: 16px; }
.category {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 22px 8px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column;
}
.category header { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin-bottom: 12px; }
.category .icon {
    grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--dusk); color: #fff;
}
.category .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.category h3 { margin: 0; }
.category-count { font-size: 0.85rem; color: var(--text-3); }
.category-count b { font-weight: 600; }
.category > p { color: var(--text-2); margin: 0 0 12px; }
.category-elements { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; }
.category-elements li {
    border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 0.82rem; color: var(--text-2);
}

/* Feature cards. */

.features { display: grid; gap: 16px; }
.feature {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow);
}
.feature p { color: var(--text-2); margin: 0; }
.feature .icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--dusk); color: #fff; margin-bottom: 16px;
}
.feature .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Gallery. */

.gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 20px;
    align-items: start;
}
.gallery figure { margin: 0; display: flex; flex-direction: column; }
.gallery .widget { box-shadow: var(--shadow); }
.gallery figcaption { margin-top: 12px; }

.gallery figcaption strong { display: block; font-size: 1.05rem; }
.gallery figcaption span { color: var(--text-2); font-size: 0.95rem; }
.gallery figcaption em { display: block; font-style: normal; font-size: 0.8rem; color: var(--text-3); margin: 2px 0 4px; }

/* site.js adds the arrows over its edges, centred on the pictures (--arrow-top), each shown while
   there's more that way, and fades that edge. */

/* The galleries' full-screen view (site.js): the picture as large as fits in 92% of the
   width and 78% of the height, up to its own pixels, over the dimmed page. */

.gallery figure > img[role="button"] { cursor: zoom-in; }
.gallery figure > img[role="button"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }

html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(10, 10, 20, 0.88); color: #fff; color-scheme: dark;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    overflow: auto; touch-action: pan-y pinch-zoom;
}
.lightbox[open] { display: flex; animation: lightbox-in 0.2s ease-out; }
.lightbox::backdrop { background: transparent; }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox-body {
    margin: auto; display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: max(16px, env(safe-area-inset-top)) 4vw max(16px, env(safe-area-inset-bottom));
}
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox-picture {
    width: auto; height: auto; max-width: 92vw; max-height: 78vh; max-height: 78dvh;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5));
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.lightbox figcaption { margin-top: 16px; max-width: min(92vw, 34em); text-align: center; }
.lightbox-name { display: block; font-size: 1.1rem; }
.lightbox-detail { display: block; font-style: normal; font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); margin: 2px 0 4px; }
.lightbox-line { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.lightbox-bar { display: flex; align-items: center; gap: 16px; }
.lightbox-count {
    margin: 0; min-width: 5em; text-align: center;
    font-size: 0.9rem; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.7);
}
.lightbox button {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.lightbox button:disabled { opacity: 0.3; cursor: default; }
.lightbox-close {
    position: absolute; z-index: 1;
    top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right));
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li {
    border: 1px solid var(--line); background: var(--card); border-radius: 999px;
    padding: 6px 14px; font-size: 0.9rem; color: var(--text-2);
}

/* Themes: each theme's real background and colors, from ThemeCatalog. */

.theme-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.segmented {
    display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(127, 127, 160, 0.16);
}
.segmented button {
    border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 0.92rem; font-weight: 600;
    padding: 7px 16px; border-radius: 9px; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }

.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.theme {
    border-radius: 18px; padding: 14px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between;
    border: 1px solid var(--line); box-shadow: var(--shadow);
    background: var(--t-bg); color: var(--t-text);
    transition: background 0.3s ease, color 0.3s ease;
}
.theme .t-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-accent); }
.theme .t-figure { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.theme .t-detail { font-size: 0.82rem; color: var(--t-text-2); }
.theme .t-name { font-size: 0.9rem; font-weight: 600; }

.fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.font-sample {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
}
.font-sample b { display: block; font-size: 2.1rem; font-weight: 600; line-height: 1.1; }
.font-sample span { font-size: 0.85rem; color: var(--text-3); }
.font-sans b { font-family: system-ui, -apple-system, sans-serif; }
.font-rounded b { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
.font-serif b { font-family: ui-serif, "New York", Georgia, serif; }
.font-mono b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 500; }

/* Privacy band. */

.privacy-band {
    background: linear-gradient(180deg, var(--night-top), var(--night-bottom)); color: #fff;
}
.privacy-band .lede { color: rgba(255, 255, 255, 0.8); }
.privacy-band .eyebrow { color: rgba(255, 255, 255, 0.6); }
.privacy-points { display: grid; gap: 14px; list-style: none; padding: 0; margin: 28px 0; }
.privacy-points li {
    display: flex; gap: 14px; align-items: flex-start;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px; padding: 16px 18px; color: rgba(255, 255, 255, 0.88);
}
.privacy-points svg { width: 22px; height: 22px; flex: none; margin-top: 2px; stroke: #ffb877; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.privacy-band a { color: #ffc89a; }

/* Final call to action. */

.cta { text-align: center; }
.cta img.app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.cta .lede { margin: 0 auto 26px; }
.cta .store-note { color: var(--text-3); }

/* Document pages: Support and Privacy. */

.page-hero {
    background: linear-gradient(180deg, var(--night-top), var(--night-bottom)); color: #fff;
    padding: 48px 0 40px;
}
.page-hero .lede { color: rgba(255, 255, 255, 0.8); margin: 0; }
.page-hero a { color: #ffc89a; }
.page-hero h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); }

.doc { padding: 44px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 1.6rem; margin-top: 1.8em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.4em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.5em; }
.doc .updated { color: var(--text-3); font-size: 0.95rem; }
.doc .summary {
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 32px;
}
.doc .summary ul { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }

.contact-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); margin-bottom: 36px;
}
.contact-card p:last-child { margin: 0; }
.contact-card .email { font-size: 1.2rem; font-weight: 700; }

.faq details {
    border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
    cursor: pointer; list-style: none; font-weight: 600; padding: 14px 32px 14px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; font-weight: 400; color: var(--text-3);
    transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { color: var(--text-2); padding: 0 0 14px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Footer. */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 0.9rem; color: var(--text-3); }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.site-footer p { margin: 0; }
.legal { font-size: 0.8rem; }

/* Wider screens. */

@media (min-width: 640px) {
    :root { --gutter: 32px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .compare { grid-template-columns: 1fr auto 1fr; align-items: center; }
    .compare-arrow { transform: none; }
    .themes { grid-template-columns: repeat(3, 1fr); }
    .fonts { grid-template-columns: repeat(4, 1fr); }
    .privacy-points { grid-template-columns: repeat(2, 1fr); }
    .layout-families { grid-template-columns: 1fr; }
    .figures { grid-template-columns: repeat(5, 1fr); }
    .figures li:last-child { grid-column: auto; }
    .versus thead { display: table-header-group; }
    .versus th { text-align: left; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding: 0 18px 10px; }
    .versus th:last-child { color: var(--accent); }
    .versus tr { display: table-row; background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
    .versus td { display: table-cell; padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; width: 50%; }
    .versus td:first-child { margin: 0; font-size: 1rem; }
    .versus td::before { display: none; }
    .versus td:first-child::before, .versus td:last-child::before { content: none; }
    .categories { grid-template-columns: repeat(2, 1fr); }
    .features.four { grid-template-columns: repeat(2, 1fr); }

}

@media (min-width: 960px) {
    body { font-size: 18px; }
    section { padding: 104px 0; }
    .hero { padding: 72px 0 0; }
    .hero .wrap { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
    .phone { margin: 0 0 -190px auto; }
    .features { grid-template-columns: repeat(3, 1fr); }
    .themes { grid-template-columns: repeat(5, 1fr); }
    .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
    .split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }

    .categories { grid-template-columns: repeat(3, 1fr); }

    .features.four { grid-template-columns: repeat(4, 1fr); }
    .numbers { padding: 80px 0; }
    .figures b { font-size: 3.4rem; }
}

/* Premium (pricing-tiers spec; high-add-pricing-tiers): what needs Premium is marked where it's
   named, and every picture showing it carries the note. */
.premium-note {
    display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; line-height: 1.5;
    vertical-align: middle; white-space: nowrap;
}
.premium-note::before { content: "\2726\00a0"; }
figcaption .premium-note { display: block; width: fit-content; margin-top: 6px; }
.category h3 .premium-note { margin-left: 6px; }
li[data-premium]::after {
    content: "Premium"; margin-left: 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--accent);
}
.premium-footnote { margin: 10px 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
.hero .store-note a { color: #fff; }
.premium-footnote .premium-note { color: #fff; margin-right: 6px; }
.family-layouts figcaption .premium-note { display: block; width: fit-content; margin: 4px auto 0; }

.plans { display: grid; gap: 16px; margin-top: 28px; }
.plan {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow); text-align: center;
}
.plan h3 { margin: 0; }
.plan .price { font-size: 1.8rem; font-weight: 700; margin: 6px 0; }
.plan .price span { font-size: 0.95rem; font-weight: 500; color: var(--text-3); }
.plan p { color: var(--text-2); margin: 0; }
.plans-note { color: var(--text-3); font-size: 0.85rem; margin-top: 18px; }
.plan h2 { margin: 0; }
.plan .price .plan-saving {
    display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 8px; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.plan .plan-plus { margin-top: 16px; font-weight: 700; color: var(--text); }
.plan-list { display: inline-block; text-align: left; margin: 10px 0 0; padding-left: 20px; color: var(--text-2); }
.plan-list li { margin: 4px 0; }
.plan-premium { border-color: var(--accent); }
.plan { display: flex; flex-direction: column; }
.plan .plan-list { align-self: center; }
.plan .plan-link { margin-top: auto; padding-top: 16px; font-weight: 600; }
.plan .plan-link a::after { content: " \2192"; }
.plan .plan-store { align-self: center; margin-top: 16px; }
.plan .plan-buy { margin-top: 8px; font-size: 0.85rem; color: var(--text-3); }
@media (min-width: 640px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
}
/* All features (low-pricing-feature-grid): a check where a plan has a feature, in the zone picker's
   sections, always open; the same three columns in every section, at every width. */
.all-features { margin-top: 20px; }
.features-head, .features-table th, .features-table td { box-sizing: border-box; }
.features-head {
    display: grid; grid-template-columns: 60% 20% 20%; padding: 0 0 8px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
    /* Held under the site's sticky header (56 points and its border), so Free and Premium stay in view. */
    position: sticky; top: 57px; padding-top: 10px; background: var(--bg, #fff); z-index: 1;
}
.features-head span { text-align: center; }
.features-head span:last-child { color: var(--accent); }
.all-features .feature-group { border-top: 1px solid var(--line); padding: 14px 0 0; }
.feature-group h3 { font-size: 1rem; margin: 0 0 4px; }
.feature-intro { color: var(--text-2); font-size: 0.92rem; margin: 0 0 4px; }
.features-table .feature-note { display: block; font-size: 0.85rem; color: var(--text-3); margin-top: 2px; }
.features-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0 0 12px; }
.features-table .feature-col { width: 60%; }
.features-table .plan-col { width: 20%; }
.features-table th[scope="row"] { text-align: left; font-weight: 400; color: var(--text-2); padding: 8px 12px 8px 0; }
.features-table td { text-align: center; padding: 8px 0; }
.features-table tr + tr th, .features-table tr + tr td { border-top: 1px solid var(--line); }
.features-table td.yes { color: var(--accent); font-weight: 700; font-size: 1.1rem; }

/* A picture needing Premium carries a Premium pill above it (Dan, 2026-11-07, replacing the corner
   mark and its legend); hidden from screen readers, as its caption says so in hidden text. */
figure[data-premium]::before, .gallery > figure:not([data-premium])::before {
    content: "\2726\00a0Premium"; content: "\2726\00a0Premium" / "";
    display: block; width: fit-content; margin: 0 0 8px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px;
    padding: 1px 8px; line-height: 1.5; white-space: nowrap;
}
/* In a grid, a free picture keeps the pill's space, so pictures in a row line up. */
.gallery > figure:not([data-premium])::before { visibility: hidden; }
.premium-footnote span { color: #fff; }

.tier-cards { display: grid; gap: 16px; }
.tier-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow);
}
.tier-card.premium { border-color: var(--accent); }
.tier-card h3 { margin: 0; }
.tier-card .price { font-size: 1.4rem; font-weight: 700; margin: 6px 0 12px; }
.tier-card .price span { font-size: 0.9rem; font-weight: 500; color: var(--text-3); }
.tier-card ul { margin: 0; padding-left: 1.2em; color: var(--text-2); }
.tier-card li { margin: 4px 0; }
.tier-note { margin: 12px 0 0; font-size: 0.85rem; color: var(--text-3); }
.tier-link { margin-top: 18px; font-weight: 600; }
.premium-page { padding-top: 8px; }
.premium-heading { margin: 48px 0 0; }
.premium-questions { margin-top: 28px; color: var(--text-2); }
@media (min-width: 640px) {
    .tier-cards { grid-template-columns: repeat(2, 1fr); }
}
.plan h2 { margin: 0; font-size: 1.15rem; }

/* The landing page's six examples and the categories' tiles (medium-restructure-website, design
   R2 and R3): grids that wrap, nothing sideways. A picture is drawn at its size's share of the row. */
.examples { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.examples figure > img, .insp-grid figure > img { width: 100%; height: auto; filter: drop-shadow(0 6px 16px rgba(17, 20, 47, 0.18)); }
.examples figure[data-size="small"] > img { width: 52%; }
.examples figure[data-size="xl"] > img { width: 62%; }
.section-head .see-all { font-weight: 600; white-space: nowrap; }
/* Under the examples, the way on to Inspirations (Dan, 2026-11-08: the header's link was easy to miss). */
.more-link { margin: 32px 0 0; text-align: center; }
.outline-button {
    display: inline-block; padding: 12px 22px; border: 1.5px solid var(--accent); border-radius: 999px;
    color: var(--accent); font-weight: 600; text-decoration: none; background: var(--card);
}
.outline-button:hover, .outline-button:focus-visible { background: var(--accent); color: #fff; }
.section-head.with-link { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.section-head.with-link > div { max-width: 44em; }
.category-picture { margin: auto 0 0; padding-top: 4px; }
.category-picture > img { width: 100%; height: auto; filter: drop-shadow(0 4px 12px rgba(17, 20, 47, 0.16)); }
.category-picture > img[width="493"] { width: 56%; }
.category-picture figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--text-3); }
.category-picture figcaption em { font-style: normal; }
.category-picture figcaption em::before { content: " \00b7  "; }
.how-picture { margin: 24px auto 0; max-width: 340px; }
.how-picture img { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow); }

/* Inspirations (design D1 and D2): one size at a time in a grid that scrolls down, the choices
   staying at the top. Without the script, every size shows under its heading. */
.insp { padding: 32px 0 64px; }
.insp-title h1 { margin: 0 0 6px; }
.insp-title .lede { margin: 0; }
.insp-controls {
    position: sticky; top: 0; z-index: 5; display: grid; gap: 10px; margin: 20px calc(-1 * var(--gutter)) 24px;
    padding: 12px var(--gutter); background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.insp-controls[hidden], .insp-empty[hidden], .insp-size[hidden], .insp-grid figure[hidden] { display: none; }
.insp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.insp-sizes { justify-self: start; }
.insp-sizes button:disabled { opacity: 0.4; cursor: default; }
.insp-sizes .short { display: none; }
.insp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.insp-chip {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card); color: var(--text); padding: 6px 12px; font: inherit; font-size: 0.88rem; cursor: pointer;
}
.insp-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.insp-chip[aria-pressed="true"] .filter-count { color: rgba(255, 255, 255, 0.8); }
.insp-chip:disabled { opacity: 0.4; cursor: default; }
.insp-chip .filter-count { color: var(--text-3); font-weight: 400; }
.insp-size h2 { margin: 32px 0 16px; }
.insp-live .insp-size h2 { display: none; }
.insp-grid[data-size="small"] { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.insp-grid[data-size="medium"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.insp-grid[data-size="large"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.insp-grid[data-size="xl"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.insp-grid[data-size="wide"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.insp-grid figcaption .recipe { display: block; margin-top: 4px; font-size: 0.88rem; }
.insp-empty { color: var(--text-2); }
@media (max-width: 639px) {
    .insp-sizes { flex: 1 1 100%; justify-self: stretch; display: flex; }
    .insp-sizes button { flex: 1; }
}
/* Six sizes' names don't fit across a phone, so they shorten (S, M, L, XL, Wide, HV). */
@media (max-width: 599px) {
    .insp-sizes .long { display: none; }
    .insp-sizes .short { display: inline; }
}
.insp-size { padding: 0; }

/* HomeView (homeview.html, and the landing page's HomeView section): rendered faces, as
   HomeView's screen can't be captured, each with the footnote saying so (website spec, "The
   HomeView Page"). */

.homeview-gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.homeview-gallery figure > img, .homeview-face img { width: 100%; height: auto; filter: drop-shadow(0 8px 20px rgba(17, 20, 47, 0.22)); }
.homeview-footnote { color: var(--text-3); margin-top: 24px; max-width: 60ch; }
.homeview-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 70ch; }
.homeview-points strong { display: block; }
.homeview-face { margin: 0; max-width: 420px; justify-self: center; }
.homeview-face figcaption { margin-top: 10px; color: var(--text-3); font-size: 0.85rem; }
.homeview-gallery figcaption .recipe { display: block; color: var(--text-3); font-size: 0.85rem; margin-bottom: 4px; }
.insp-grid[data-size="homeview"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.insp-grid[data-size="homeview"] figcaption .recipe { display: block; color: var(--text-3); font-size: 0.85rem; margin-bottom: 4px; }
.homeview-callout { padding: 28px 0; }
.homeview-callout .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.homeview-callout p { margin: 0; }
