/* CíBar: native, calm and readable. Aesthetic inspiration, not an official Apple design system. */
:root {
  color-scheme: light dark;
  --page: #f8faf9;
  --surface: #ffffff;
  --soft: #ecf3f1;
  --ink: #172d2c;
  --muted: #3e5553;
  --accent: #286d6d;
  --on-accent: #ffffff;
  --line: #cddcda;
  --shadow: 0 20px 70px #183d3520;
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #111c1c; --surface: #192727; --soft: #203232;
    --ink: #edf5f3; --muted: #b4c9c5; --accent: #8dcfca;
    --on-accent: #102828; --line: #405957; --shadow: 0 20px 70px #00000050;
  }
}
:root[data-theme="dark"] {
  --page: #111c1c; --surface: #192727; --soft: #203232;
  --ink: #edf5f3; --muted: #b4c9c5; --accent: #8dcfca;
  --on-accent: #102828; --line: #405957; --shadow: 0 20px 70px #00000050;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a, button, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--on-accent); }
img { display: block; max-width: 100%; height: auto; }
p { color: var(--muted); margin: 0 0 20px; }
h1, h2, h3 { color: var(--ink); font-weight: 650; }
h1 { font-size: clamp(38px, 4.3vw, 58px); line-height: 1.09; letter-spacing: -.052em; margin: 22px 0 26px; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(34px, 3.8vw, 50px); line-height: 1.13; letter-spacing: -.042em; margin: 0 0 22px; }
h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 16px; }
.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 750; letter-spacing: -.04em; text-decoration: none; color: var(--ink); }
.brand-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 26px; line-height: 1; border-radius: 10px; }
.nav nav { display: flex; align-items: center; gap: 32px; }
.nav nav a { color: var(--ink); font-size: 14px; font-weight: 550; text-decoration: none; }
.nav nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 38px; padding-block: 42px 48px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.intro { font-size: 18px; line-height: 1.65; max-width: 430px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 24px; border: 1px solid var(--accent); border-radius: 10px; font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.primary { background: var(--accent); color: var(--on-accent); }
.secondary { background: transparent; color: var(--accent); }
.button:hover { text-decoration: none; box-shadow: 0 4px 15px #244d4015; }
.hero-product { padding: 12px 0 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.native-pill { display: block; width: 100%; max-width: 440px; }
.native-pill img { width: 100%; border-radius: 8px; }
.word-card { width: 300px; height: 400px; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow); background: var(--surface); }
.facts-band { background: var(--soft); }
.facts { padding-block: 30px; display: grid; grid-template-columns: 1fr .8fr 1fr 1.25fr; gap: 28px; }
.facts strong { display: block; font-size: 26px; line-height: 1.25; letter-spacing: -.04em; font-weight: 650; }
.facts span { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.section { padding-block: 96px; }
.section-intro { max-width: 590px; font-size: 17px; margin-bottom: 36px; }
.feature-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.feature-layout article { min-width: 0; border-radius: var(--radius); overflow: hidden; }
.feature-layout p { font-size: 15px; }
.feature-photo { grid-row: span 2; background: var(--surface); }
.feature-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.feature-copy { padding: 30px 32px; }
.feature-timer { padding: 32px; background: var(--soft); display: flex; flex-direction: column; justify-content: space-between; }
.feature-timer .native-pill { margin-block: 18px 12px; }
.feature-timer .small { margin: 0; font-size: 12px; }
.feature-reading { padding: 32px; background: var(--surface); }
.feature-backup { grid-column: 1/-1; padding: 32px; display: grid; grid-template-columns: 1fr 1.45fr; column-gap: 44px; align-items: start; border: 1px solid var(--line); }
.feature-backup h3 { grid-row: span 2; }
.feature-backup p { margin-bottom: 10px; }
.feature-layout a { font-size: 14px; font-weight: 550; justify-self: start; }
.demo-section { background: var(--soft); }
.demo { margin: 0; }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border-radius: var(--radius); background: #f5f3ec; }
figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }
figcaption a { margin-left: 12px; }
.demo-transcript { margin-top: 20px; max-width: 780px; }
summary { cursor: pointer; color: var(--ink); font-weight: 550; font-size: 16px; padding-block: 12px; }
details p { margin: 16px 0; }
.comparison-table { overflow-x: auto; border-radius: 12px; }
.comparison-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.comparison-table caption { text-align: left; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.comparison-table th, .comparison-table td { padding: 22px 24px; vertical-align: top; }
.comparison-table thead { background: var(--soft); }
.comparison-table tbody tr:nth-child(even) { background: var(--surface); }
.comparison-table th { font-weight: 600; }
.comparison-table td { color: var(--muted); }
.comparison-table th:first-child { width: 23%; }
.comparison-table td { width: 38.5%; }
.small { font-size: 13px; line-height: 1.7; }
.legal { max-width: 760px; margin-top: 28px; margin-bottom: 0; }
.download { background: var(--soft); }
.download .eyebrow { margin-bottom: 18px; }
.downloads { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-top: 38px; }
.platform { background: var(--surface); padding: 36px; border-radius: var(--radius); display: flex; flex-direction: column; align-items: start; }
.windows { background: transparent; border: 1px solid var(--line); }
.release-status { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 24px; }
.platform h3 { font-size: 33px; margin-bottom: 18px; }
.platform > p:not(.small) { font-size: 15px; max-width: 390px; }
.platform-actions { display: flex; align-items: start; flex-direction: column; gap: 12px; margin-top: 8px; }
.platform .small { margin: 24px 0 0; }
.platform .button { padding-inline: 20px; }
.text-link { display: inline-block; padding-block: 8px; font-size: 14px; }
.download-note { margin-top: 26px; max-width: 760px; font-size: 13px; }
.download-note p { margin-bottom: 10px; }
.sources { display: grid; grid-template-columns: 1fr 1.1fr; gap: 88px; }
.source-copy p { font-size: 15px; }
.source-copy a { font-size: 14px; }
.faq { padding-top: 10px; }
.faq h3 { font-size: 22px; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 10px; }
.faq p { font-size: 14px; }
.closing { padding-block: 52px 64px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(34px, 4.8vw, 64px); margin-bottom: 14px; }
.closing p { grid-column: 1; font-size: 16px; margin: 0; }
.closing .button { grid-column: 2; grid-row: 1/span 2; }
footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 12px; }
.credit p { margin: 0 0 6px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; align-items: start; gap: 12px 22px; max-width: 400px; }
.theme-control { display: none; align-items: center; gap: 8px; color: var(--muted); }
.theme-ready .theme-control { display: flex; }
select { font: inherit; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); }
/* Only the skip link overlays the page. No decorative layer stack. */
.skip { position: absolute; top: -100px; left: 20px; z-index: 1; padding: 12px; background: var(--accent); color: var(--on-accent); }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button { transition: transform 180ms ease, box-shadow 180ms ease; }
  .button:hover { transform: translateY(-2px); }
  .hero-copy { animation: arrive 600ms ease both; }
  .hero-product { animation: arrive 700ms 80ms ease both; }
  @keyframes arrive { from { transform: translateY(8px); } to { transform: none; } }
}
@media (max-width: 1023px) {
  .wrap { width: calc(100% - 64px); }
  .hero { grid-template-columns: 1.4fr 1fr; gap: 20px; }
  h1 { font-size: clamp(36px, 4.2vw, 46px); }
  .word-card { width: 250px; height: 333.33px; }
  .feature-copy, .feature-timer, .feature-reading, .feature-backup, .platform { padding: 26px; }
  .sources { gap: 44px; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .nav { height: 72px; }
  .brand { font-size: 23px; gap: 8px; }
  .brand-icon { width: 32px; height: 32px; font-size: 24px; }
  .nav nav { gap: 18px; }
  .nav nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 38px 44px; gap: 30px; }
  h1 { font-size: clamp(32px, 6.7vw, 48px); margin-block: 18px 22px; }
  .intro { font-size: 16px; max-width: 450px; }
  .actions { margin-top: 24px; }
  .hero-product { max-width: 430px; width: 100%; margin-inline: auto; padding: 0; }
  .word-card { width: 270px; height: 360px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 28px; }
  .facts strong { font-size: 24px; }
  .section { padding-block: 60px; }
  h2 { font-size: 36px; }
  .section-intro { font-size: 16px; margin-bottom: 28px; }
  .feature-layout { grid-template-columns: 1fr; }
  .feature-photo { grid-row: auto; }
  .feature-copy, .feature-timer, .feature-reading, .feature-backup { padding: 26px; }
  .feature-backup { grid-column: auto; display: block; }
  .feature-backup h3 { margin-bottom: 16px; }
  .feature-timer { gap: 12px; }
  .demo video { border-radius: 12px; }
  figcaption a { margin: 0; display: inline-block; }
  .comparison-table table { min-width: 660px; }
  .comparison-table th, .comparison-table td { padding: 18px; }
  .downloads { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .platform { padding: 28px; }
  .platform h3 { font-size: 30px; }
  .sources { grid-template-columns: 1fr; gap: 40px; }
  .faq { padding-top: 0; }
  .closing { grid-template-columns: 1fr; padding-block: 40px 44px; gap: 10px; }
  .closing h2 { margin-bottom: 0; }
  .closing .button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 16px; }
  footer { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { justify-content: start; max-width: none; }
}
@media (max-width: 374px) {
  .wrap { width: calc(100% - 32px); }
  .nav nav { gap: 12px; }
  .brand { font-size: 20px; }
  .brand-icon { width: 28px; height: 28px; font-size: 22px; }
  h1 { font-size: 30px; }
  .platform { padding: 22px; }
  .platform .button { font-size: 13px; padding-inline: 14px; }
}
@media (forced-colors: active) {
  .button, .brand-icon, .platform, .feature-layout article { border: 1px solid CanvasText; }
  .word-card { box-shadow: none; }
}
