:root {
  --page: #F3F6FB;
  --panel: #FFFFFF;
  --ink: #132444;
  --ink-soft: #465878;
  --royal: #1F4F9E;
  --blue: #2D6BD2;
  --mustard: #EBB030;
  --line: #D3DCEA;
  --sf: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sf-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Arial, sans-serif;
  --sf-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0F1C36; --panel: #16284A; --ink: #EDF2FA; --ink-soft: #A9B8D2;
    --royal: #8DB4F2; --blue: #5B92EC; --line: #27406B;
  }
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--sf);
  font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); }
a:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2 { font-family: var(--sf-rounded); font-weight: 800; letter-spacing: -0.015em; }

/* Header */
header.site { background: #1F4F9E; color: #F3F6FB; border-bottom: 6px solid var(--mustard); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 52px; border-radius: 12px; }
.brand span { font-family: var(--sf-rounded); font-weight: 800; font-size: 1.4rem; line-height: 1; letter-spacing: -0.01em; }
nav.site a { color: #F3F6FB; text-decoration: none; margin-left: 22px; font-weight: 600; }
nav.site a:first-child { margin-left: 0; }
nav.site a:hover { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 5px; }
nav.site a:focus-visible { outline-color: var(--mustard); }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; text-align: center; } .hero .emblem { margin: 0 auto; } .hero p { margin-left: auto; margin-right: auto; } }
.hero .emblem { width: min(420px, 100%); animation: pop 700ms cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.85) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero .emblem { animation: none; } }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; margin: 0 0 18px; color: var(--ink); max-width: 16ch; }
@media (max-width: 820px) { .hero h1 { margin-left: auto; margin-right: auto; } }
.hero p { font-size: 1.2rem; color: var(--ink-soft); max-width: 44ch; margin: 0; }

/* CalendarTV */
section.app { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.app-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; gap: 36px; } }
.app h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 4px; line-height: 1.1; color: var(--royal); }
.app .tag { color: var(--ink-soft); font-size: 1.15rem; margin: 0 0 22px; }
.app ul { list-style: none; padding: 0; margin: 0 0 28px; }
.app li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.app li:last-child { border-bottom: 1px solid var(--line); }
.app li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 12px; background: var(--mustard); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.app li strong { display: block; font-weight: 700; }
.app li span { color: var(--ink-soft); font-size: 0.98rem; }
.status { display: inline-block; font-family: var(--sf-rounded); font-weight: 700; font-size: 1rem; padding: 10px 18px; border-radius: 999px; background: var(--mustard); color: #132444; border: 3px solid #132444; }

/* TV mock */
.tv { background: #2D6BD2; border: 6px solid #132444; border-radius: 26px; padding: 16px; box-shadow: 8px 8px 0 #132444; }
.screen { background: linear-gradient(160deg, #16284A, #0C1830); border: 4px solid #132444; border-radius: 12px; aspect-ratio: 16 / 9; color: #EAF0FA; padding: 5% 6%; display: flex; flex-direction: column; font-size: clamp(0.62rem, 1.35vw, 0.95rem); }
.screen .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4%; }
.screen .day { font-family: var(--sf-rounded); font-weight: 800; font-size: 2.1em; line-height: 1; }
.screen .date { opacity: .7; margin-top: .3em; }
.screen .wx { text-align: right; }
.screen .wx b { font-size: 1.8em; font-weight: 700; display: block; line-height: 1; color: #EBB030; }
.screen .ev { display: grid; grid-template-columns: 6.5em 1fr; gap: .9em; padding: .55em 0; border-top: 1px solid rgba(255,255,255,.12); align-items: center; }
.screen .ev time { opacity: .75; font-family: var(--sf-mono); font-size: .92em; }
.screen .ev .t { display: flex; align-items: center; gap: .6em; }
.screen .dot { width: .6em; height: .6em; border-radius: 50%; flex: none; }
.legs { display: flex; justify-content: space-between; width: 60%; margin: 0 auto; }
.legs i { display: block; width: 10px; height: 26px; background: #132444; border-radius: 0 0 6px 6px; }
.legs i:first-child { transform: skewX(18deg); } .legs i:last-child { transform: skewX(-18deg); }

/* Support + privacy */
section.info { padding: 56px 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; gap: 36px; } }
.info h2 { font-size: 1.7rem; margin: 0 0 10px; color: var(--royal); }
.info p { margin: 0 0 12px; max-width: 52ch; color: var(--ink-soft); }
.info p strong { color: var(--ink); }
.small-print { font-size: 0.85rem; }

footer.site { background: #132444; color: #C9D5EA; padding: 26px 0 36px; font-size: 0.92rem; border-top: 6px solid var(--mustard); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Inner pages */
nav.site a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 10px; color: var(--royal); }
.page-head p { font-size: 1.15rem; color: var(--ink-soft); margin: 0; max-width: 60ch; }
.doc { padding: 24px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 1.45rem; color: var(--ink); margin: 36px 0 8px; }
.doc h3 { font-family: var(--sf-rounded); font-weight: 700; font-size: 1.1rem; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.summary { background: var(--panel); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--mustard); padding: 20px 24px; margin: 8px 0 12px; }
.summary p { margin: 0; color: var(--ink); font-size: 1.1rem; }
.contact-card { background: var(--panel); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--mustard); padding: 22px 24px; margin: 8px 0 12px; }
.contact-card p { margin: 0 0 6px; color: var(--ink); }
.contact-card a { font-weight: 700; font-size: 1.2rem; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
summary:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
details p, details ol, details ul { margin: 10px 0 0; }
.more { margin-top: 8px; }

/* Price sticker: a mustard starburst, echoing the logo */
.deal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 4px 0 8px; }
.sticker {
  width: 118px; height: 118px; flex: none; display: grid; place-items: center; text-align: center;
  background: #132444;
  clip-path: polygon(50% 0%,59% 13%,74% 5%,76% 21%,92% 22%,87% 37%,100% 46%,89% 57%,97% 71%,82% 76%,80% 92%,65% 88%,55% 100%,45% 89%,31% 97%,26% 82%,10% 81%,13% 66%,0% 57%,10% 45%,4% 30%,19% 25%,20% 9%,36% 12%);
  transform: rotate(-8deg);
}
.sticker > span {
  width: 108px; height: 108px; display: grid; place-content: center; background: var(--mustard); color: #132444;
  clip-path: inherit; font-family: var(--sf-rounded); line-height: 1;
}
.sticker small { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 2px; }
.sticker b { display: block; font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; }
.deal-text strong { display: block; font-family: var(--sf-rounded); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.deal-text span { color: var(--ink-soft); font-size: .98rem; }

/* Products grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.product-card { background: var(--panel); border: 3px solid #132444; border-radius: 22px; box-shadow: 6px 6px 0 var(--mustard); padding: 22px; display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
a.product-card:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--mustard); }
a.product-card:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; }
.product-card h2 { margin: 0; font-size: 1.6rem; color: var(--royal); }
.product-card p { margin: 0; color: var(--ink-soft); }
.product-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.pill { font-family: var(--sf-rounded); font-weight: 800; padding: 6px 14px; border-radius: 999px; background: var(--mustard); color: #132444; border: 2px solid #132444; }
.pill.free { background: var(--panel); color: var(--ink); }
.card-link { font-weight: 700; color: var(--royal); }
.mini-tv { background: #2D6BD2; border: 4px solid #132444; border-radius: 16px; padding: 10px; }
.mini-tv .screen { font-size: .62rem; }
.mini-mac { background: #EEF2F8; border: 4px solid #132444; border-radius: 12px 12px 4px 4px; aspect-ratio: 16/10; display: grid; place-items: center; color: #132444; font-family: var(--sf-rounded); font-weight: 800; }
.mini-mac span { font-size: .95rem; background: #fff; border: 3px solid #132444; border-radius: 10px; padding: 8px 12px; }

/* Product page */
.product-hero { padding: 48px 0 56px; }
.product-hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .product-hero .wrap { grid-template-columns: 1fr; gap: 32px; } }
.product-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin: 0 0 6px; color: var(--royal); line-height: 1.05; }
.product-hero .tag { font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 22px; max-width: 34ch; }
.crumbs { font-size: .95rem; margin: 0 0 10px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.credits { background: var(--panel); border-top: 1px solid var(--line); padding: 48px 0 56px; }
.credits h2 { font-size: 1.45rem; margin: 0 0 12px; color: var(--ink); }
.credits p { color: var(--ink-soft); margin: 0 0 10px; max-width: 70ch; font-size: .95rem; }

/* Footer credits */
footer.site .trademarks { flex-basis: 100%; font-size: .8rem; color: #9FB0CC; line-height: 1.5; }

/* About page */
.story { padding: 24px 0 56px; }
.story .wrap { max-width: 760px; }
.story p { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 16px; }
.story p:first-of-type { color: var(--ink); font-size: 1.25rem; }
.team { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0 64px; }
.team > .wrap > h2, .values > .wrap > h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 28px; color: var(--royal); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.person { background: var(--page); border: 3px solid #132444; border-radius: 22px; box-shadow: 6px 6px 0 var(--mustard); padding: 26px; }
.person-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.avatar { width: 84px; height: 84px; flex: none; display: grid; place-items: center; background: #1F4F9E; color: #fff; font-family: var(--sf-rounded); font-weight: 800; font-size: 1.9rem; border: 3px solid #132444; border-radius: 50%; box-shadow: 0 0 0 5px var(--mustard); }
.person h3 { font-family: var(--sf-rounded); font-weight: 800; font-size: 1.45rem; margin: 0; color: var(--ink); line-height: 1.15; }
.person .role { margin: 4px 0 0; color: var(--royal); font-weight: 700; }
.person p { color: var(--ink-soft); margin: 0 0 12px; }
.person ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.person li { font-size: .88rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--line); color: var(--ink); background: var(--panel); }
.values { padding: 56px 0 72px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.values h3 { font-family: var(--sf-rounded); font-weight: 800; font-size: 1.2rem; margin: 0 0 6px; color: var(--ink); padding-left: 26px; position: relative; }
.values h3::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; background: var(--mustard); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.values p { color: var(--ink-soft); margin: 0; }
