/* Article Structure Studio — "Joonis": the site as a set of drawing sheets. Cobalt blueprint paper with
   a measuring grid, white plates for the real screens, dimension lines and a numbered plan strip. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #eef1f6;
  --white: #ffffff;
  --ink: #141b34;
  --soft: #4a5373;
  --line: #d3d9e5;
  --cobalt: #2541b2;
  --cobalt-dark: #1a2f86;
  --cobalt-tint: #e1e6fa;
  --cyan: #0b7f8a;
  --cyan-light: #8fe3ec;
  --grid-minor: #3049b8;
  --grid-major: #4560c8;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--cyan-light); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; overflow-wrap: anywhere; hyphens: auto; }
p, li, dd, dt, td, th, span { overflow-wrap: anywhere; hyphens: auto; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.1; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 10px 0; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cobalt); }

/* Shared */
.kicker { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 12px; }
.lead { font-size: 19px; color: var(--soft); }
.light { color: var(--white); }
.lead.light { color: #dce3f7; }
.kicker.light { color: var(--cyan-light); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link.light { color: var(--cyan-light); }
.text-link.light:hover { color: var(--white); }
.section-title { font-size: clamp(28px, 4vw, 40px); }
.section-lead { color: var(--soft); max-width: 640px; }
.button { display: inline-block; background: var(--cobalt); color: var(--white); padding: 12px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.button:hover { background: var(--cobalt-dark); color: var(--white); }

/* Blueprint sheet background */
.hero, .offline { background-color: var(--cobalt); background-image:
  linear-gradient(var(--grid-major) 2px, transparent 2px), linear-gradient(90deg, var(--grid-major) 2px, transparent 2px),
  linear-gradient(var(--grid-minor) 1px, transparent 1px), linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 180px 180px, 180px 180px, 36px 36px, 36px 36px; }

/* Hero */
.hero { color: var(--white); padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); color: var(--white); }
.sheet-label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; color: var(--cyan-light); border-bottom: 2px solid #c9d3f5; padding-bottom: 8px; margin: 0 0 24px; max-width: 520px; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--white); margin: 28px 0; max-width: 560px; }
.specs div { padding: 10px 12px; border-left: 2px solid var(--white); min-width: 0; }
.specs div:first-child { border-left: 0; }
.specs dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-light); }
.specs dd { margin: 0; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero-shots { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.hero-shots .hero-b { margin-top: 64px; }
.hero-shots .hero-b .dim { display: none; }

/* Screen plate with a dimension line */
.plate { position: relative; margin: 0; background: var(--white); padding: 10px; box-shadow: 0 1px 0 rgba(20, 27, 52, 0.08); border: 1px solid var(--line); max-width: 360px; }
.plate img { width: 100%; }
.plate .dim { position: absolute; top: 0; bottom: 0; left: -26px; width: 14px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; color: var(--ink); }
.plate .dim::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; border-left: 2px solid currentColor; }
.plate .dim span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; background: var(--paper); padding: 2px 6px; color: var(--cobalt); }
.hero .plate .dim { color: var(--white); }
.hero .plate .dim span { background: var(--cobalt); color: var(--cyan-light); }

/* Google Play label */
.play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; background: var(--ink); color: var(--white); text-decoration: none; border: 2px solid var(--white); border-radius: 6px; min-height: 56px; }
.play-mark { width: 18px; height: 18px; background: var(--cyan-light); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #c9d3f5; }
.play-big { font-weight: 600; font-size: 18px; }
.play-soon { cursor: default; opacity: 0.92; }
a.play:hover { background: var(--cobalt-dark); color: var(--white); }

/* Plan strip */
.plan { padding: 64px 0 24px; }
.plan-strip { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 2px solid var(--ink); background: var(--white); }
.plan-strip li { padding: 14px 14px 16px; border-left: 2px solid var(--ink); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.plan-strip li:first-child { border-left: 0; }
.plan-n { font-family: var(--mono); font-weight: 600; color: var(--cobalt); font-size: 14px; }
.plan-l { font-weight: 600; line-height: 1.3; }

/* Feature sheets */
.sheets { padding: 24px 0 40px; }
.sheet { padding: 48px 0; border-bottom: 1px solid var(--line); }
.sheet:last-child { border-bottom: 0; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.sheet.flip .sheet-text { order: 2; }
.sheet .plate { justify-self: center; width: 100%; }
.sheet h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sheet-no { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: var(--cyan); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: inline-block; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }
.ticks.light li::before { border-color: var(--cyan-light); }

/* Templates table */
.templates { padding: 56px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin-top: 24px; }
.tpl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tpl th, .tpl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tpl thead th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); border-bottom: 2px solid var(--ink); }
.tpl td { font-family: var(--mono); color: var(--cobalt); }

/* Offline band */
.offline { color: var(--white); padding: 64px 0; }
.offline-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; }
.offline h2 { font-size: clamp(28px, 4vw, 44px); color: var(--white); grid-row: span 2; }

/* Final call */
.final { padding: 56px 0; }
.final-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--white); border: 2px solid var(--ink); padding: 28px; }
.final h2 { font-size: 30px; margin-bottom: 4px; }
.final p { margin: 0; color: var(--soft); }
.final .play { border-color: var(--ink); }

/* Text pages */
.page { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); }
.legal h2 { font-size: 24px; margin-top: 36px; }
.legal p { margin: 0 0 14px; }
.dimline { position: relative; height: 14px; margin: 8px 0 24px; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.dimline::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 1px solid var(--ink); }
.dimline::after { content: ""; position: absolute; left: 12px; top: 4px; width: 48px; height: 6px; background: var(--cobalt); }
.small { font-size: 14px; color: var(--soft); }
.missing { text-align: left; }

/* Footer */
.foot { background: var(--ink); color: #c9d3f5; padding: 32px 0; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-name { margin: 0; color: var(--white); font-family: var(--display); font-weight: 800; font-size: 18px; }
.foot-small { margin: 0; font-size: 14px; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; }
.foot-links a { color: var(--white); }

@media (max-width: 960px) {
  .hero-grid, .sheet-grid, .offline-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet.flip .sheet-text { order: 0; }
  .hero-shots { max-width: 560px; padding-left: 28px; }
  .plan-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-strip li:nth-child(4) { border-left: 0; }
  .plan-strip li:nth-child(n + 4) { border-top: 2px solid var(--ink); }
  .sheet .plate { max-width: 320px; margin-left: 28px; justify-self: start; }
  .final-inner { grid-template-columns: minmax(0, 1fr); }
  .offline h2 { grid-row: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 48px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs div:nth-child(3) { border-left: 0; }
  .specs div:nth-child(n + 3) { border-top: 2px solid var(--white); }
  .hero-shots { gap: 12px; padding-left: 24px; }
  .hero-shots .hero-b { margin-top: 36px; }
  .hero-shots .plate { padding: 6px; }
  .hero-shots .plate .dim { left: -20px; width: 10px; }
  .hero-shots .plate .dim::before { left: 4px; }
  .plan-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-strip li:nth-child(4) { border-left: 2px solid var(--ink); }
  .plan-strip li:nth-child(odd) { border-left: 0; }
  .plan-strip li:nth-child(n + 3) { border-top: 2px solid var(--ink); }
  .brand { font-size: 17px; }
  .nav { gap: 2px 16px; }
  .final-inner { padding: 20px; }
  .tpl th, .tpl td { padding: 10px 8px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
