/* Auraform website. Colours and fonts follow Shared/Brand.swift. */

@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/BricolageGrotesque.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/IBMPlexSans.woff2) format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/IBMPlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/IBMPlexMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
    --base: #1A1B1E;
    --sidebar: #141517;
    --line: #2C2D31;
    --off: #3A3B40;
    --raised: rgba(255, 255, 255, 0.035);
    --text: #E9E6E1;
    --muted: #8F8C87;
    --accent: #F0A08A;      /* BrandAccent.fallback; aura.js follows the picked aura */
    --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --ui: "IBM Plex Sans", -apple-system, system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
    --radius: 8px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--text); font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
h2 { font-size: clamp(36px, 5vw, 52px); line-height: 1; letter-spacing: -1px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 120px; padding-bottom: 120px; }
@media (max-width: 720px) { .section { padding-top: 80px; padding-bottom: 80px; } }
.ruled { border-top: 1px solid var(--line); }
.eyebrow { font: 500 13px var(--mono); letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; }
.lead { color: var(--muted); font-size: 18px; max-width: 620px; }
.mono { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; align-items: center; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 22px; border-radius: var(--radius); font: 600 16px var(--ui); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s; }
.button.primary { background: var(--accent); color: var(--base); }
.button.primary:hover { filter: brightness(1.08); }
.button.ghost { color: var(--text); border-color: rgba(233, 230, 225, 0.3); background: transparent; }
.button.ghost:hover { border-color: var(--text); }
.button.big { font-size: 17px; padding: 14px 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Navigation */
.nav { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.nav .logo img { height: 30px; width: auto; }
.nav .links { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 15px; }
.nav .links a:not(.button) { color: var(--text); text-decoration: none; }
.nav .links a:not(.button):hover { color: var(--accent); }
.nav .links .button { padding: 10px 18px; font-size: 15px; }
@media (max-width: 720px) { .nav .links a:not(.button) { display: none; } }

/* Hero: the copy beside a Mac wearing the picked aura, with the picker under it */
.hero { padding-bottom: 72px; overflow-x: clip; }
.hero .wrap { max-width: 1360px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "buy"; gap: 32px; padding-top: 16px; }
@media (min-width: 1100px) {
    .hero-grid { grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); grid-template-areas: "copy stage" "buy stage"; column-gap: 48px; row-gap: 24px; align-items: center; min-height: min(780px, calc(100svh - 88px)); }
    .hero-copy { align-self: end; }
    .hero-buy { align-self: start; }
}
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 22px; }
.hero-stage { grid-area: stage; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; width: 100%; max-width: 820px; justify-self: center; }
.hero-buy { grid-area: buy; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1; letter-spacing: -1.5px; text-wrap: balance; }
.hero p.intro { font-size: 19px; color: #B7B3AD; }
.hero-buy .fine { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.price-tag { font: 500 15px var(--mono); padding: 2px 8px; border-radius: 6px; background: rgba(233, 230, 225, 0.1); }

/* Only on touch devices, which can't run the app */
.on-phone { display: none; flex-direction: column; gap: 12px; padding: 20px; border-radius: 12px; background: var(--sidebar); border: 1px solid var(--line); }
@media (pointer: coarse) { .on-phone { display: flex; } }
.on-phone strong { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.on-phone strong svg { color: var(--accent); }
.on-phone p { color: #B7B3AD; font-size: 15px; }
.on-phone .button { justify-content: center; }

.tour { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 14px var(--ui); cursor: pointer; }
.tour:hover { border-color: var(--off); }
.tour[hidden] { display: none; }
.tour .mono { font-size: 12px; }

/* The Mac: a dark bezel around the screen and a base under it */
.mac { width: 100%; padding: 1.6%; border-radius: 14px; background: #0B0B0D; border: 1px solid var(--line); position: relative; }
.mac::after { content: ""; position: absolute; left: -4%; right: -4%; top: 100%; height: clamp(6px, 1.4%, 12px); border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #34353A, #1C1D20); border: 1px solid var(--line); border-top: none; }
.hero-stage .chips { margin-top: 14px; justify-content: center; }
@media (max-width: 720px) {
    .hero-stage .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: calc(100% + 48px); margin-left: -24px; margin-right: -24px; padding: 4px 24px; scrollbar-width: none; }
    .hero-stage .chips::-webkit-scrollbar { display: none; }
    .hero-stage .chip { flex-shrink: 0; white-space: nowrap; }
    .hero-buy .actions .button { flex: 1 1 100%; justify-content: center; }
    .hero-buy .fine { text-align: center; }
}

/* Aura picker and the screen it drives */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--base); color: var(--text); font: 600 15px var(--ui); cursor: pointer; transition: background 0.2s, color 0.2s; text-decoration: none; }
.chip img { width: 44px; height: 28px; object-fit: cover; border-radius: 4px; }
.chip:hover { border-color: var(--off); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--sidebar); border-color: var(--text); }

.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--sidebar); }
.screen > video, .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Desktop shows the taskbar; the lock screen shows the clock and the login */
.screen[data-view="desktop"] .lock, .screen[data-view="desktop"] .login { display: none; }
.screen[data-view="lock"] .bar { display: none; }
/* The Desktop / Lock screen switch sits on the screen, top right, where every aura leaves room.
   A small screen keeps only the icons, so it stays clear of the clocks at the top. */
.view-switch { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; padding: 3px; border-radius: 999px; background: rgba(20, 21, 23, 0.55); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.view-switch button { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px; border-radius: 999px; border: none; background: transparent; color: rgba(255, 255, 255, 0.78); font: 600 13px var(--ui); cursor: pointer; }
.view-switch button:hover { color: #FFFFFF; }
.view-switch button[aria-pressed="true"] { background: rgba(233, 230, 225, 0.95); color: #141517; }
.view-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@container (max-width: 520px) {
    .view-switch { top: 8px; right: 8px; }
    .view-switch button { padding: 0 9px; }
    .view-switch button span { display: none; }
}
.login { position: absolute; left: 0; right: 0; bottom: calc(100cqw * 72 / 1512); display: flex; flex-direction: column; align-items: center; gap: calc(100cqw * 10 / 1512); font-family: var(--ui); color: rgba(255, 255, 255, 0.88); }
.login .avatar { width: calc(100cqw * 44 / 1512); height: calc(100cqw * 44 / 1512); border-radius: 50%; background: rgba(255, 255, 255, 0.28); border: 1px solid rgba(255, 255, 255, 0.35); }
.login .who { font-size: calc(100cqw * 14 / 1512); font-weight: 600; }
.login .password { font-size: calc(100cqw * 12 / 1512); padding: calc(100cqw * 5 / 1512) calc(100cqw * 14 / 1512); border-radius: 999px; background: rgba(255, 255, 255, 0.2); }
/* Light wallpapers get dark login text, as macOS does */
.screen[data-ink="dark"] .login { color: rgba(40, 30, 45, 0.8); }
.screen[data-ink="dark"] .login .avatar { background: rgba(40, 30, 45, 0.12); border-color: rgba(40, 30, 45, 0.25); }
.screen[data-ink="dark"] .login .password { background: rgba(40, 30, 45, 0.1); }

/* A built-in look drawn on a picture of the screen: the lock screen clock and the bar, both sized in
   points of a 1512 × 945 pt screen (aura.js turns the presets' points into container units). */
.look { position: relative; container-type: size; overflow: hidden; }
.look .lock { position: absolute; display: flex; flex-direction: column; gap: 0.3cqw; filter: drop-shadow(0 0 var(--shadow-r, 0) rgba(0, 0, 0, var(--shadow-a, 0))); }
.look[data-pos="center"] .lock { left: 0; right: 0; top: 50%; transform: translateY(-58%); align-items: center; }
.look[data-pos="topCenter"] .lock { left: 0; right: 0; top: var(--vm); align-items: center; }
.look[data-pos="topLeft"] .lock { left: var(--hm); top: var(--vm); align-items: flex-start; }
.look .date { color: var(--label); font-family: var(--label-font); font-weight: var(--label-weight); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: var(--label-case); white-space: nowrap; }
.look .date:empty { display: none; }
.look .time { display: flex; font-family: var(--time-font); font-weight: var(--time-weight); font-stretch: var(--time-stretch); font-size: var(--time-size); line-height: 0.92; opacity: var(--time-opacity); font-variant-numeric: tabular-nums; }
.look .time span { background: linear-gradient(180deg, var(--time-top), var(--time-bottom)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.look[data-stack] .time { flex-direction: column; }
.look[data-stack] .time .sep { display: none; }

/* The bar is a picture Taskbar drew of itself (make-media.sh); glass styles get their blur from the page */
.look .bar { position: absolute; width: var(--bar-w); height: var(--bar-h); border-radius: var(--bar-radius); backdrop-filter: var(--bar-blur); -webkit-backdrop-filter: var(--bar-blur); }
.look .bar img { display: block; width: 100%; height: 100%; }
.look[data-edge="bottom"] .bar { left: 50%; transform: translateX(-50%); bottom: var(--gap); }
.look[data-edge="left"] .bar { top: 50%; transform: translateY(-50%); left: var(--gap); }

/* Make your own: an aura put together from its three parts, like the Auras page in the app */
/* Included wallpapers */

/* The three parts of a theme */
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; margin-top: 48px; }
.part { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.part .pic { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sidebar); }
.part .pic > img, .part .pic > .look > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.part .pic.bar-only .lock, .part .pic.clock-only .bar { display: none; }
/* Like the old taskbar cards: the part of the screen with the clock or the bar, at twice the size */
.part .pic > .look { position: absolute; width: 200%; aspect-ratio: 1512 / 945; }
.part .pic.clock-only > .look { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.part .pic.bar-only > .look { left: 50%; bottom: 0; transform: translateX(-50%); }
.part h3 { font-size: 24px; }
.part p { color: var(--muted); }

/* Promises */

/* Price */
.price { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
@media (min-width: 860px) { .price > div:first-child { padding-top: 36px; } }
.price > div:first-child { flex: 1 1 min(420px, 100%); }
.price h2 { margin-bottom: 16px; }
.price-card { flex: 1 1 min(380px, 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: var(--raised); }
.price-card .amount { display: flex; align-items: baseline; gap: 10px; color: var(--muted); }
.price-card .amount strong { font: 700 64px/1 var(--display); color: var(--text); }
.price-card ul { margin: 24px 0 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--accent); margin-right: 10px; }
.price-card .fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq h2 { font-size: 40px; margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details p { margin-top: 12px; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 32px; color: var(--muted); font-size: 14px; }
.footer .brand { display: flex; align-items: center; gap: 12px; }
.footer .brand img { width: 32px; height: 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Plain text pages (support, privacy, terms) */
.page { max-width: 760px; padding-top: 48px; padding-bottom: 120px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -1px; margin-bottom: 24px; }
.page h2 { font-size: 28px; letter-spacing: 0; margin: 48px 0 12px; }
.page p, .page li { color: #C9C6C1; }
.page p + p { margin-top: 12px; }
.page code { font-family: var(--mono); font-size: 14px; background: var(--raised); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }

/* Tour video dialog */
dialog.tour-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 0; background: var(--sidebar); width: min(1100px, 92vw); }
dialog.tour-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog.tour-dialog video { width: 100%; }
dialog.tour-dialog form { position: absolute; top: 10px; right: 10px; }

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