:root {
  color-scheme: dark;
  --bg: #111318;
  --surface: #191c23;
  --ink: #f5f5f8;
  --muted: #b0b2c0;
  --line: #343845;
  --accent: #beb0ff;
  --soft: #242135;
  --button: #bcaaff;
  --button-text: #171126;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; font-weight: 650; letter-spacing: -.04em; }
h1 { font-size: clamp(2.8rem, 5.1vw, 4.7rem); line-height: 1.04; }
h2 { font-size: 1.8rem; }
p { margin-bottom: 1.2em; }
::selection { background: #bcaaff; color: #171126; }
.shell { width: min(1400px, calc(100% - 112px)); margin-inline: auto; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { font-size: 2.1rem; font-weight: 750; letter-spacing: -.065em; line-height: 1; text-decoration: none; }
.brand::after { content: "."; color: var(--accent); }
.header-links { display: flex; align-items: center; gap: 36px; font-size: .95rem; }
.header-links a { text-decoration: none; }
.eyebrow { margin-bottom: 1.1rem; color: var(--muted); font-size: .7rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.lead { max-width: 590px; color: var(--muted); font-size: 1.15rem; line-height: 1.65; }
.muted, .small { color: var(--muted); }
.small { margin-top: 14px; font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The home page uses one repeated card layout for every app. */
.hub-intro { position: relative; isolation: isolate; overflow: hidden; padding: 42px 28px 30px; }
.hub-intro-copy { position: relative; z-index: 1; }
.hub-intro h1 { margin-bottom: 12px; }
.hub-intro .lead { margin-bottom: 12px; font-size: clamp(1.1rem, 2vw, 1.65rem); }
.studio-badge { display: inline-block; margin: 0; padding: 3px 13px; border: 1px solid #bcaaff26; border-radius: 30px; background: #302547; color: #d9ceff; font-size: .81rem; line-height: 1.6; }
.hero-orbits { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; mask-image: linear-gradient(90deg, transparent 30%, #000 66%); }
.orbit { position: absolute; width: 760px; height: 660px; border: 1px solid #c0b0ff2b; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, #8d7dd634 0%, #2c2c5030 26%, #11131800 64%); box-shadow: inset 0 5px 15px #c7b9ff1f, 0 -3px 25px #9983fa10; transform: rotate(-22deg); }
.orbit-back { top: 36px; right: -425px; }
.orbit-front { top: 130px; right: -95px; width: 850px; }
.catalogue { position: relative; padding-top: 0; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-card { min-width: 0; display: grid; grid-template-rows: minmax(104px, auto) auto auto auto; align-content: start; gap: 18px; padding: 24px 22px 0; background: linear-gradient(145deg, #1b1e25, #171a20); border: 1px solid #3d414e; border-radius: 20px; box-shadow: 0 12px 32px #00000014; }
.app-card-heading { min-width: 0; display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 20px; }
.app-icon { flex-shrink: 0; border-radius: 23%; }
.app-card-heading h2 { margin: 0 0 8px; font-size: clamp(1.2rem, 1.65vw, 1.6rem); line-height: 1.2; letter-spacing: -.04em; }
.app-card-heading h2 a { text-decoration: none; }
.app-card-heading p { margin: 0; color: #bfc0cc; font-size: .94rem; line-height: 1.5; }
.app-preview { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.78; width: 100%; border-radius: 13px; background: #292735; }
.app-preview > img { width: 100%; height: 100%; object-fit: cover; }
.preview-caption { position: absolute; z-index: 1; color: #fff; font-size: 1.1rem; font-weight: 500; line-height: 1.5; text-shadow: 0 1px 8px #0005; }
.preview-caption span { display: block; }
.preview-nyrecipes > img { object-position: 65% center; }
.preview-nyrecipes::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #1d1413d9, #1d141300 85%); }
.preview-nyrecipes .preview-caption { bottom: 20px; left: 22px; }
.preview-weekwall { background: radial-gradient(ellipse at 10% 100%, #7975c5, transparent 65%), linear-gradient(120deg, #34335e, #292333); }
.preview-weekwall::before, .preview-weekwall::after { content: ""; position: absolute; top: 36px; width: 29%; height: 120%; border: 1px solid #ffffff26; border-radius: 17px; box-shadow: 0 8px 20px #0003; }
.preview-weekwall::before { left: 9%; transform: rotate(-9deg); background: radial-gradient(ellipse at 0% 100%, #8175c7 30%, transparent 31%), linear-gradient(150deg, #b8cbff, #7775bc 65%); }
.preview-weekwall::after { right: 8%; transform: rotate(9deg); background: radial-gradient(ellipse at 90% 100%, #353b69 43%, transparent 44%), linear-gradient(160deg, #ef9b81, #8e6eaa); }
.preview-weekwall > img { position: absolute; z-index: 1; top: 14px; left: 50%; width: 36%; height: auto; max-width: none; transform: translateX(-50%); border: 1px solid #ffffff45; border-radius: 17px; box-shadow: 0 12px 30px #0005; }
.preview-weekwall .preview-caption { display: none; }
.preview-glimmer > img { object-position: center 22%; }
.preview-glimmer::after { content: ""; position: absolute; inset: 0; background: #1c153b12; }
.preview-glimmer .preview-caption { top: 50%; left: 50%; width: 78%; padding: 20px 12px; transform: translate(-50%, -50%); border: 1px solid #ffffff4a; border-radius: 15px; background: #3d294c59; backdrop-filter: blur(12px); text-align: center; font-weight: 400; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 12px; padding: 13px 23px; border-radius: 11px; background: var(--button); color: var(--button-text); font-size: .94rem; font-weight: 650; line-height: 1.5; text-align: center; text-decoration: none; transition: background .18s ease; }
.button:hover { background: #cbbbff; color: var(--button-text); }
.explore-link { width: 100%; margin-top: 0; padding: 12px 20px; }
.explore-link::after { content: "→"; font-size: 1.2em; line-height: 1; }
.app-card-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; border-top: 1px solid var(--line); padding: 11px 0 12px; }
.app-card-docs a { display: flex; justify-content: center; align-items: center; min-height: 44px; color: #cfc4ff; font-size: .85rem; text-decoration: none; }
.app-card-docs a:hover { color: #fff; text-decoration: underline; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 44px; padding: 26px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-identity { display: flex; align-items: center; gap: 24px; }
.footer .brand { color: var(--ink); font-size: 1.7rem; }
.footer-tagline { padding-left: 24px; border-left: 1px solid var(--line); }
.footer-contact { overflow-wrap: anywhere; text-decoration: none; }

/* App overviews, language selection and documents share the same dark theme. */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; }
.languages { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.language { padding: 7px 15px; border: 1px solid var(--line); border-radius: 30px; font-size: .8rem; text-decoration: none; }
.language:hover { border-color: var(--accent); }
.language[aria-current="page"] { border-color: var(--accent); background: var(--soft); color: #e1d8ff; }
.selector-intro { padding: 50px 0 10px; }
.selector-intro > .app-icon { margin-bottom: 28px; }
.selector-intro h1 { max-width: 880px; margin-bottom: 24px; font-size: clamp(2.5rem, 4.8vw, 4.1rem); }
.locale-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 32px 0 80px; }
.locale-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 20px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; }
.locale-card > span:first-child { color: var(--muted); font-size: .78rem; }
.locale-card strong { grid-column: 1; font-size: 1.25rem; font-weight: 550; overflow-wrap: anywhere; }
.locale-card > span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent); font-size: 1.5rem; }
.locale-card:hover, .document-card:hover { border-color: var(--accent); }
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; padding: 15px 0 65px; }
.hero-copy > .app-icon { margin-bottom: 28px; }
.hero-copy h1 { max-width: 620px; margin-bottom: 25px; font-size: clamp(2.8rem, 4.4vw, 4rem); }
.hero-photo { height: 530px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.phone-preview { display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(ellipse at top, #3c345d, var(--surface) 75%); }
.phone-preview img { width: auto; max-width: 100%; height: 100%; object-fit: contain; border-radius: 18px; box-shadow: 0 12px 30px #0004; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--line); padding: 38px 0 48px; }
.feature h2 { margin-top: 16px; font-size: 1.2rem; line-height: 1.35; letter-spacing: -.02em; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }
.feature-number { color: var(--accent); font-size: .73rem; }
.feature-number, .doc-number { font-variant-numeric: tabular-nums; }
.documents-section { border-top: 1px solid var(--line); padding-top: 40px; }
.documents-section > h2 { margin-bottom: 14px; font-size: 2.5rem; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.document-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 10px; padding: 24px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); text-decoration: none; }
.doc-number { color: var(--muted); font-size: .7rem; }
.document-card strong { grid-column: 1; font-size: .98rem; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.document-card > span:last-child { grid-column: 2; grid-row: 2; color: var(--accent); }
.privacy-note { max-width: 800px; color: var(--muted); font-size: .86rem; }
.document-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; border-bottom: 1px solid var(--line); padding-bottom: 20px; font-size: .86rem; }
.document-nav a { text-decoration: none; }
.document-nav [aria-current="page"] { color: var(--accent); text-decoration: underline; }
.document-title { padding: 48px 0 38px; }
.document-title h1 { margin-bottom: 20px; font-size: clamp(2.3rem, 4.8vw, 3.7rem); overflow-wrap: anywhere; }
.document-title .muted { margin-bottom: 0; font-size: .85rem; }
.document-layout { display: grid; grid-template-columns: 235px minmax(0, 750px); align-items: start; gap: 55px; }
.toc { position: sticky; top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.toc .eyebrow { margin-bottom: 12px; }
.toc nav { display: flex; flex-direction: column; gap: 13px; }
.toc a { color: var(--muted); font-size: .8rem; line-height: 1.5; text-decoration: none; }
.toc a:hover { color: var(--accent); }
.prose { max-width: 750px; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.prose p { margin-bottom: 1.4em; }
.prose h2 { margin-top: 42px; margin-bottom: 18px; font-size: 1.4rem; line-height: 1.35; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--accent); }
.prose li { margin-bottom: .5em; }
.prose .content-note { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.back-link { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 24px; font-size: .9rem; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 10px; background: var(--surface); }
.skip:focus { top: 15px; }

@media (min-width: 1001px) and (max-width: 1250px) {
  .shell { width: calc(100% - 64px); }
  .app-card { padding-inline: 18px; }
  .app-card-heading { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .app-card-heading .app-icon { width: 64px; }
  .app-card-heading p { font-size: .84rem; }
  .preview-caption { font-size: .95rem; }
}

@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .hub-intro { padding: 48px 0 30px; }
  .hub-intro h1 { font-size: 4rem; }
  .hero-orbits { mask-image: linear-gradient(90deg, transparent 10%, #000 80%); opacity: .7; }
  .orbit-front { right: -450px; }
  .orbit-back { right: -750px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 650px; margin-inline: auto; }
  .app-card { padding: 24px 24px 0; grid-template-rows: auto auto auto auto; }
  .app-card-heading { min-height: 88px; }
  .app-card-heading h2 { font-size: 1.6rem; }
  .app-card-heading p { max-width: 370px; font-size: 1rem; }
  .app-preview { aspect-ratio: 1.9; }
  .preview-caption { font-size: 1.35rem; }
  .app-hero { gap: 30px; }
  .hero-photo { height: 470px; }
  .document-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 30px; }
  .document-grid { grid-template-columns: minmax(0, 1fr); }
  .document-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
  .document-card strong { grid-column: 2; }
  .document-card > span:last-child { grid-row: 1; grid-column: 3; }
  .features { gap: 24px; }
  .footer-identity { gap: 16px; }
  .footer-tagline { max-width: 290px; padding-left: 16px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 76px; }
  .brand { font-size: 1.85rem; }
  .header-links { gap: 20px; font-size: .8rem; }
  .hub-intro { padding: 38px 0 28px; }
  .hub-intro h1 { font-size: clamp(2.6rem, 10.5vw, 3.8rem); }
  .hub-intro .lead { margin-bottom: 14px; font-size: 1.1rem; }
  .studio-badge { font-size: .74rem; }
  .hero-orbits { opacity: .45; }
  .orbit-front { top: 95px; right: -650px; }
  .app-card { gap: 16px; padding: 20px 18px 0; border-radius: 18px; }
  .app-card-heading { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .app-card-heading .app-icon { width: 64px; }
  .app-card-heading h2 { margin-bottom: 6px; font-size: 1.35rem; }
  .app-card-heading p { font-size: .85rem; line-height: 1.5; }
  .app-preview { aspect-ratio: 1.65; }
  .preview-caption { font-size: 1rem; }
  .preview-glimmer .preview-caption { padding: 15px 10px; }
  .app-card-docs { padding-block: 6px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 32px; padding-block: 24px; }
  .footer-identity { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-tagline { max-width: none; border: 0; padding: 0; }
  .selector-intro { padding-top: 30px; }
  .selector-intro h1 { font-size: 2.65rem; }
  .locale-grid { grid-template-columns: minmax(0, 1fr); margin-bottom: 45px; }
  .locale-card { padding: 22px; }
  .languages { gap: 6px; margin-top: 22px; }
  .language { padding: 6px 12px; }
  .app-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 38px; }
  .hero-copy h1 { font-size: 2.8rem; }
  .hero-copy > .app-icon { width: 70px; margin-bottom: 24px; }
  .hero-photo { height: 320px; border-radius: 18px; }
  .hero-photo.phone-preview { height: 490px; padding: 20px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 30px 0; }
  .feature h2 { margin-top: 8px; margin-bottom: 10px; }
  .document-title { padding: 32px 0 28px; }
  .document-title h1 { font-size: clamp(1.8rem, 7.5vw, 2.45rem); hyphens: auto; }
  .document-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-block: 20px; }
  .toc nav { gap: 10px; }
  .toc a { font-size: .82rem; }
  .prose { font-size: .96rem; }
  .prose h2 { margin-top: 32px; font-size: 1.3rem; }
  .document-nav { gap: 10px 18px; font-size: .8rem; }
  .documents-section > h2 { font-size: 2.2rem; }
}

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