:root {
  color-scheme: dark;
  --paper: #0b130d;
  --paper-raised: #111d14;
  --ink: #edf1e7;
  --muted: #b5c0b4;
  --quiet: #89988a;
  --line: rgb(237 241 231 / 16%);
  --accent: #b9cf99;
  --accent-contrast: #142017;
  --surface: #17251a;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --side: clamp(1rem, 5vw, 5rem);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f2f0e9;
  --paper-raised: #e8e5dc;
  --ink: #1b2b20;
  --muted: #566258;
  --quiet: #536057;
  --line: rgb(27 43 32 / 17%);
  --accent: #466544;
  --accent-contrast: #f5f3ed;
  --surface: #e4e1d8;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --paper: #f2f0e9;
    --paper-raised: #e8e5dc;
    --ink: #1b2b20;
    --muted: #566258;
    --quiet: #536057;
    --line: rgb(27 43 32 / 17%);
    --accent: #466544;
    --accent-contrast: #f5f3ed;
    --surface: #e4e1d8;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.6; }
img { display: block; max-width: 100%; }
button, input, select, textarea { color: inherit; font: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-contrast); }
h1, h2, h3, p, li, a { overflow-wrap: anywhere; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 20; top: .65rem; left: .65rem; display: inline-flex; min-height: 44px; align-items: center; padding: .5rem .85rem; transform: translateY(-160%); border-radius: .3rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; width: min(100% - 2 * var(--side), 90rem); min-height: 76px; align-items: center; gap: .6rem 1.5rem; margin-inline: auto; }
.brand { display: inline-flex; min-width: 0; min-height: 48px; align-items: center; gap: .62rem; color: var(--ink); font-size: .93rem; font-weight: 730; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand img, .brand-mark { width: 38px; height: 38px; flex: 0 0 auto; padding: 5px; border-radius: 11px; background: #f4f0e7; object-fit: contain; }
.main-nav, .header-actions, .language-switch { display: flex; align-items: center; }
.main-nav { gap: clamp(.3rem, 1.3vw, 1.3rem); margin-inline: auto; }
.main-nav a, .language-switch a, .theme-toggle { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: .38rem .48rem; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .75rem; text-decoration: none; transition: color 180ms ease, background-color 180ms ease; }
.main-nav a:hover, .main-nav a:focus-visible, .language-switch a:hover, .language-switch a[aria-current="page"], .theme-toggle:hover { color: var(--ink); background: var(--surface); }
.language-switch { gap: .06rem; padding-inline: .25rem; border-inline: 1px solid var(--line); }
.language-switch a { min-width: 38px; font-size: .67rem; font-weight: 790; letter-spacing: .06em; }
.language-switch a[aria-current="page"] { color: var(--accent); }
.header-actions { gap: .3rem; }
.theme-toggle { width: 44px; font-size: 1rem; }
.theme-toggle span { line-height: 1; }

.studio-hero { position: relative; display: grid; min-height: min(760px, calc(100svh - 76px)); place-items: center; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) var(--side) 4rem; border-bottom: 1px solid var(--line); isolation: isolate; text-align: center; }
.studio-hero::before { position: absolute; z-index: -2; inset: 0; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 55%), linear-gradient(180deg, var(--paper-raised), var(--paper)); content: ""; }
.hero-orbit { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(78vw, 870px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.hero-orbit span { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; }
.hero-orbit span:nth-child(2) { inset: 11%; opacity: .76; }
.hero-orbit span:nth-child(3) { inset: 22%; opacity: .5; }
.hero-content { display: grid; justify-items: center; width: min(100%, 62rem); }
.hero-brand { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.35rem; color: var(--ink); font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 670; letter-spacing: -.045em; }
.hero-brand img { width: clamp(52px, 7vw, 72px); height: clamp(52px, 7vw, 72px); padding: 8px; border: 1px solid var(--line); border-radius: 19px; background: #f4f0e7; box-shadow: 0 18px 52px rgb(0 0 0 / 17%); animation: mark-arrive 650ms cubic-bezier(.18,.7,.25,1) both; }
.eyebrow { margin: 0; color: var(--accent); font-size: .66rem; font-weight: 800; letter-spacing: .16em; line-height: 1.45; text-transform: uppercase; }
.studio-hero h1 { max-width: 22ch; margin: .45rem 0 0; color: var(--ink); font-family: var(--serif); font-size: clamp(2.6rem, 6.5vw, 5.6rem); font-weight: 430; letter-spacing: -.055em; line-height: 1.02; }
.hero-intro { max-width: 48ch; margin: 1rem 0 0; color: var(--muted); font-size: clamp(.98rem, 1.35vw, 1.1rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 2.4rem; margin-top: 1.6rem; }
.arrow-link { display: inline-flex; min-height: 48px; align-items: center; gap: .8rem; padding: .48rem .08rem .62rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .8rem; font-weight: 690; text-decoration: none; transition: color 180ms ease, border-color 180ms ease; }
.arrow-link:hover { border-color: var(--accent); color: var(--accent); }
.arrow-link-icon { color: var(--accent); font-size: 1rem; transition: transform 180ms ease; }
.arrow-link:hover .arrow-link-icon { transform: translate(3px, 2px); }
.hero-index { position: absolute; right: var(--side); bottom: 1.3rem; color: var(--quiet); font-size: .6rem; letter-spacing: .16em; }

.section-inner, .section-wrap { width: min(100% - 2 * var(--side), 82rem); margin-inline: auto; }
.apps-section, .studio-section, .contact-section { scroll-margin-block-start: 1rem; }
.apps-section { padding-block: clamp(3.4rem, 7vw, 5.7rem); border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 1.3rem; }
.section-heading h2, .studio-heading h2, .contact-heading h2 { max-width: 18ch; margin: .28rem 0 0; color: var(--ink); font-family: var(--serif); font-size: clamp(2.2rem, 4.2vw, 3.55rem); font-weight: 430; letter-spacing: -.045em; line-height: 1.06; }
.empty-app-note { margin: 0; padding-block: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.app-shelf { display: grid; grid-auto-columns: minmax(0, 31%); grid-auto-flow: column; gap: 1rem; overflow-x: auto; padding: .2rem .1rem 1rem; overscroll-behavior-inline: contain; scroll-padding-inline: .1rem; scroll-snap-type: x mandatory; scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent; scrollbar-width: thin; }
.app-shelf-item { display: grid; min-width: 0; min-height: 230px; grid-template-columns: 72px minmax(0, 1fr); align-content: start; align-items: start; gap: .8rem 1rem; padding: 1rem .5rem .8rem; border-top: 1px solid var(--line); scroll-snap-align: start; }
.app-shelf-icon { width: 72px; height: 72px; border-radius: 17px; object-fit: cover; }
.app-shelf-copy h3 { margin: .1rem 0 0; color: var(--ink); font-size: 1.1rem; font-weight: 660; letter-spacing: -.035em; line-height: 1.2; }
.app-shelf-copy p { margin: .4rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.app-store-badge { display: inline-flex; min-width: 120px; min-height: 44px; grid-column: 2; align-items: center; justify-content: flex-start; margin-top: .2rem; }
.app-store-badge img { width: 120px; height: 40px; object-fit: contain; }

.studio-section { padding-block: clamp(3.6rem, 7vw, 5.8rem); border-bottom: 1px solid var(--line); background: var(--paper-raised); }
.studio-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.studio-heading h2 { max-width: 14ch; }
.studio-detail > p { max-width: 48ch; margin: 0; color: var(--muted); font-size: clamp(.98rem, 1.35vw, 1.1rem); }
.studio-action { margin-top: 1.1rem; }

.contact-section { padding-block: clamp(3.6rem, 7vw, 5.7rem); background: radial-gradient(ellipse at 82% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 38%), var(--paper); }
.contact-heading { max-width: 55rem; margin-bottom: 2rem; }
.contact-heading h2 { max-width: 18ch; }
.contact-heading > p:last-child { max-width: 52ch; margin: .8rem 0 0; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr); align-items: start; gap: clamp(2rem, 7vw, 7rem); }
.contact-aside h3 { margin: 0; color: var(--ink); font-size: .88rem; font-weight: 670; }
.contact-aside p { margin: .4rem 0 0; }
.contact-email { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent); font-size: .88rem; font-weight: 650; }
.support-contact { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; min-width: 0; }
.field { display: flex; min-width: 0; flex-direction: column; gap: .42rem; }
.field-wide { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .76rem; font-weight: 650; }
.field label span { color: var(--quiet); font-size: .69rem; font-weight: 450; }
.field-hint { margin: -.08rem 0 0; color: var(--quiet); font-size: .7rem; line-height: 1.45; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 48px; padding: .7rem .78rem; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font-size: .88rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .field select:invalid { color: var(--quiet); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; }
.form-actions { display: grid; grid-column: 1 / -1; justify-items: start; gap: .7rem; margin-top: .15rem; }
.form-actions button { display: inline-flex; min-height: 48px; align-items: center; gap: .7rem; padding: .65rem 1rem; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: var(--accent-contrast); font-size: .79rem; font-weight: 740; transition: transform 180ms ease, background-color 180ms ease; }
.form-actions button:hover { transform: translateY(-2px); background: transparent; color: var(--accent); }
.form-actions button span { font-size: 1rem; }
.form-instruction { max-width: 54ch; margin: 0; color: var(--quiet); font-size: .74rem; line-height: 1.5; }
.no-script-email { grid-column: 1 / -1; margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.no-script-email a { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); color: var(--quiet); }
.footer-inner { display: flex; width: min(100% - 2 * var(--side), 90rem); flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; margin-inline: auto; padding-block: 1.25rem 1.5rem; font-size: .72rem; }
.footer-inner > p { margin: 0; color: var(--muted); }
.footer-email { color: var(--accent); font-weight: 620; }
.footer-links { display: flex; flex-wrap: wrap; gap: .15rem .8rem; }
.footer-links a { display: inline-flex; min-height: 40px; align-items: center; color: var(--quiet); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Localized app, privacy, terms, support and deletion routes. */
.page-header { border-bottom: 1px solid var(--line); }
.page-header .header-inner { min-height: 76px; }
.page-header .brand { text-decoration: none; }
.header-tools { display: flex; align-items: center; gap: .8rem; }
.site-nav { display: flex; align-items: center; gap: .3rem; }
.site-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: .35rem .45rem; color: var(--muted); font-size: .76rem; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.language-menu { position: relative; font-size: .82rem; }
.language-menu summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; list-style: none; color: var(--muted); }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { margin-left: .45rem; color: var(--accent); content: "⌄"; }
.language-options { position: absolute; z-index: 10; top: calc(100% + .5rem); right: 0; display: grid; min-width: 190px; max-height: min(65vh, 400px); overflow: auto; margin: 0; padding: .4rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper-raised); box-shadow: 0 16px 50px rgb(0 0 0 / 22%); list-style: none; }
.language-options a { display: block; min-height: 40px; padding: .55rem .65rem; color: var(--muted); text-decoration: none; }
.language-options a:hover, .language-options a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.document-main { width: min(100% - 2 * var(--side), 880px); min-height: 65vh; margin-inline: auto; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin: .1rem 0 1.2rem; color: var(--quiet); font-size: .8rem; }
.breadcrumbs a { color: var(--muted); }
.document-title { max-width: 19ch; margin: .25rem 0 .85rem; font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4.7rem); font-weight: 450; letter-spacing: -.025em; line-height: 1.05; }
.document-intro { max-width: 66ch; margin: 0; color: var(--muted); font-size: 1.03rem; }
.document-links { display: flex; flex-wrap: wrap; gap: .35rem .7rem; margin-top: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.document-links a { display: inline-flex; min-height: 40px; align-items: center; padding-inline: .5rem; color: var(--accent); font-size: .8rem; font-weight: 650; text-decoration: none; }
.document-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
.document-body { padding-top: 2rem; }
.document-body h2 { margin: 2rem 0 .55rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 450; letter-spacing: -.025em; line-height: 1.25; }
.document-body h2:first-child { margin-top: 0; }
.document-body p { max-width: 76ch; margin: .65rem 0 1.25rem; color: var(--muted); }
.document-body p + h2 { margin-top: 2.35rem; }
.document-body a, .document-end a, .support-email { color: var(--accent); }
.legal-updated { color: var(--quiet) !important; font-size: .84rem; }
.document-end { margin-top: 3rem; padding-top: 1.35rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.steps { margin: 1.6rem 0; padding-left: 1.25rem; color: var(--muted); }
.steps li + li { margin-top: .65rem; }
.support-note { margin-top: 1.7rem; padding: 1.1rem 1.25rem; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.support-note p { margin: 0; }
.support-email { display: inline-flex; min-height: 44px; align-items: center; margin-top: .8rem; font-weight: 700; }
.product-main { padding-top: 2.6rem; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.product-icon { width: 68px; height: 68px; margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: 18px; }
.product-body { max-width: 48ch; color: var(--muted); font-size: 1.1rem; }

@keyframes mark-arrive { from { opacity: .55; transform: translateY(9px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 900px) {
  .header-inner { gap: .45rem .75rem; }
  .main-nav { gap: .1rem; }
  .main-nav a { padding-inline: .32rem; font-size: .72rem; }
  .app-shelf { grid-auto-columns: minmax(0, 46%); }
  .contact-layout { grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 2rem; }
}

@media (max-width: 760px) {
  :root { --side: 1.1rem; }
  .header-inner { min-height: 68px; flex-wrap: wrap; justify-content: space-between; gap: .25rem .5rem; padding-block: .3rem .45rem; }
  .brand { gap: .45rem; font-size: .84rem; }
  .brand img, .brand-mark { width: 33px; height: 33px; border-radius: 9px; }
  .header-actions { gap: .04rem; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: .08rem; margin: 0; padding-top: .12rem; border-top: 1px solid var(--line); }
  .main-nav a { min-height: 38px; padding-inline: .25rem; font-size: .69rem; }
  .studio-hero { min-height: 540px; padding-top: 3rem; padding-bottom: 3.5rem; }
  .studio-hero h1 { max-width: 15ch; font-size: clamp(2.65rem, 9vw, 4.6rem); }
  .hero-orbit { width: min(110vw, 720px); }
  .hero-index { bottom: .85rem; font-size: .53rem; }
  .app-shelf { grid-auto-columns: minmax(0, 74%); }
  .studio-inner { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .studio-heading h2 { max-width: 17ch; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .contact-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .support-contact { margin-top: 0; padding: 0 0 0 1rem; border-top: 0; border-left: 1px solid var(--line); }
  .footer-inner { align-items: flex-start; }
  .page-header .header-inner { gap: .6rem; }
  .header-tools { gap: .25rem; }
}

@media (max-width: 520px) {
  .header-inner { padding-block: .45rem .35rem; }
  .brand { margin-right: auto; }
  .main-nav a { min-height: 40px; padding-inline: .55rem; }
  .header-tools { flex: 1 0 100%; justify-content: space-between; }
  .site-nav { gap: .25rem; }
  .site-nav a { padding-inline: .32rem; font-size: .72rem; }
  .language-menu summary { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; }
  .studio-hero { min-height: 510px; padding-top: 2.5rem; padding-bottom: 3rem; }
  .hero-brand { gap: .65rem; margin-bottom: 1.1rem; font-size: 1.55rem; }
  .hero-brand img { width: 52px; height: 52px; border-radius: 14px; }
  .studio-hero h1 { max-width: 13ch; font-size: clamp(2.5rem, 11.5vw, 3.8rem); }
  .hero-intro { max-width: 34ch; font-size: .96rem; }
  .hero-actions { gap: .45rem 1.2rem; margin-top: 1.25rem; }
  .section-wrap, .section-inner { width: min(100% - 2.2rem, 82rem); }
  .apps-section, .studio-section, .contact-section { padding-block: 3.35rem; }
  .section-heading h2, .studio-heading h2, .contact-heading h2 { font-size: clamp(2.2rem, 10.2vw, 3.3rem); }
  .app-shelf { grid-auto-columns: minmax(0, 84%); gap: .7rem; margin-right: calc(-1 * var(--side)); padding-right: var(--side); }
  .app-shelf-item { min-height: 215px; }
  .contact-heading { margin-bottom: 1.5rem; }
  .contact-aside { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .support-contact { padding: .85rem 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .contact-form { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .field-wide, .form-actions { grid-column: auto; }
  .footer-inner { width: min(100% - 2.2rem, 90rem); flex-direction: column; gap: .55rem; }
  .footer-links { gap: 0 .55rem; }
  .footer-links a { font-size: .68rem; }
  .document-main { width: min(100% - 2.2rem, 880px); }
  .document-title { font-size: clamp(2.3rem, 10.5vw, 3.55rem); }
}

@media (max-width: 360px) {
  :root { --side: 1rem; }
  .brand { font-size: .82rem; }
  .brand img, .brand-mark { width: 31px; height: 31px; }
  .main-nav a { padding-inline: .42rem; }
  .studio-hero h1 { font-size: clamp(2.3rem, 11.5vw, 3rem); }
  .hero-actions { gap: .2rem .8rem; }
  .arrow-link { font-size: .75rem; }
  .app-shelf { grid-auto-columns: minmax(0, 88%); }
  .app-shelf-item { grid-template-columns: 60px minmax(0, 1fr); gap: .65rem .75rem; }
  .app-shelf-icon { width: 60px; height: 60px; border-radius: 14px; }
  .footer-links { gap: 0 .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-brand img { animation: none !important; }
}
