/* IP Deadline Organizer — landing. Art direction "Patentschrift": the page reads like the front page
   of a patent document (INID codes in brackets, double rules, figures with reference numerals) in the
   app's palette "Fristenregister". Fonts are self-hosted (SIL Open Font License). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-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: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-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: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-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: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-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: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-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: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-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: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-sans-3-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: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-sans-3-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: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-sans-3-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: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-sans-3-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: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-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: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-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: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/jetbrains-mono-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: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/jetbrains-mono-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; }

:root {
  --paper: #f6f7f3;
  --card: #fbfcfa;
  --sunk: #e4e8e1;
  --ink: #142026;
  --soft: #4d5a60;
  --line: #cdd3cb;
  --pine: #1c5a4c;
  --pine-dark: #123f35;
  --tint: #d6e7e0;
  --copper: #b4572a;
  --copper-text: #8e3f17;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --wrap: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper-text); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2.3rem, 6vw, 4.3rem); }
h2 { font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-weight: 700; font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 800px; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.small { font-size: 0.92rem; color: var(--soft); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* INID code line: (54) Label */
.inid { font-family: var(--mono); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.inid b { color: var(--copper); margin-right: 6px; }

/* ---------- Header ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.biblio { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 10px; padding-bottom: 8px; border-bottom: 4px solid var(--ink); box-shadow: 0 3px 0 var(--paper), 0 4px 0 var(--ink); }
.biblio b { color: var(--copper); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.2rem; min-height: 44px; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--copper); color: var(--ink); }

/* The app's deadline ruler */
.ruler { position: relative; height: 18px; margin-bottom: 10px; border-bottom: 2px solid var(--ink);
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 60px), repeating-linear-gradient(90deg, var(--soft) 0 1px, transparent 1px 12px);
  background-size: 100% 12px, 100% 6px; background-position: 0 100%, 0 100%; background-repeat: no-repeat; }
.ruler-mark { position: absolute; left: 30%; top: -2px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--copper); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--pine); }
.lead { font-size: 1.22rem; color: var(--soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 28px 0 22px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.facts li { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 10px; border: 1.5px solid var(--ink); }

.play { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 22px; background: var(--ink); color: #fff; text-decoration: none; border: 2px solid var(--ink); }
.play:hover { background: var(--pine-dark); color: #fff; }
.play-small { font-size: 0.78rem; letter-spacing: 0.04em; }
.play-big { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.play-soon { background: transparent; color: var(--ink); border-style: dashed; cursor: default; }
.text-link { font-weight: 700; color: var(--pine-dark); padding: 10px 0; }
.text-link::after { content: " →"; }
.text-link.light { color: #fff; }

/* ---------- Figures (screenshots as patent drawings) ---------- */
.fig { position: relative; margin: 0; padding-left: 44px; }
.fig-frame { border: 3px solid var(--ink); background: var(--card); max-width: 340px; overflow: hidden; }
.fig-frame img { width: 100%; }
.fig-label { position: absolute; left: 0; bottom: 18%; transform: rotate(-90deg); transform-origin: left bottom; font-family: var(--mono); font-weight: 700; letter-spacing: 0.2em; font-size: 0.85rem; white-space: nowrap; margin-left: 22px; }
.fig-ref { position: absolute; left: 0; top: 70px; width: 64px; font-family: var(--mono); font-weight: 700; color: var(--copper); font-size: 0.95rem; border-bottom: 2px solid var(--copper); padding-bottom: 2px; }
.fig-ref::after { content: ""; position: absolute; right: -5px; bottom: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); }
.fig-hero { justify-self: end; }

/* ---------- Abstract ---------- */
.abstract { border-top: 4px solid var(--ink); border-bottom: 1px solid var(--line); background: var(--card); }
.abstract-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.abstract-text { font-size: 1.15rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.steps li { display: flex; gap: 14px; padding: 20px 16px 16px 0; border-bottom: 1px solid var(--line); }
.steps li:nth-child(odd) { border-right: 1px solid var(--line); }
.steps li:nth-child(even) { padding-left: 16px; }
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--soft); font-size: 0.98rem; }
.step-n { font-family: var(--mono); font-weight: 700; color: var(--copper); font-size: 1.05rem; }

/* ---------- Features ---------- */
.figures { padding-top: 72px; padding-bottom: 32px; }
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature.flip .fig { order: 2; }
.feature-fig { font-family: var(--mono); font-weight: 700; color: var(--copper); letter-spacing: 0.12em; margin-bottom: 8px; }
.feature-text h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
.feature-text p { max-width: 36em; }
.points { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.points li { padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line); position: relative; }
.points li::before { content: "—"; position: absolute; left: 0; font-family: var(--mono); color: var(--copper); }

/* ---------- Rules table ---------- */
.rules { padding-top: 56px; padding-bottom: 72px; border-top: 4px solid var(--ink); }
.rules-intro { max-width: 46em; color: var(--soft); }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th { text-align: left; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); padding: 12px 14px 10px 0; border-bottom: 1px solid var(--ink); }
td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }

/* ---------- Privacy band ---------- */
.privacy-band { background: var(--ink); color: #eef2ee; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 48px; padding-top: 56px; padding-bottom: 56px; align-items: start; }
.privacy-band h2 { color: #fff; }
.privacy-band ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #50606a; }
.privacy-band li { padding: 10px 0 10px 30px; border-bottom: 1px solid #50606a; position: relative; }
.privacy-band li::before { content: "■"; position: absolute; left: 0; top: 10px; color: #e08a5c; font-size: 0.8rem; }
.privacy-band .text-link { grid-column: 2; }

/* ---------- Download ---------- */
.download { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: end; padding-top: 64px; padding-bottom: 72px; }
.download-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact { margin: 0; }

/* ---------- Pages (help, privacy) ---------- */
.page { padding-top: 48px; padding-bottom: 72px; }
.page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page h2 { font-size: 1.5rem; margin-top: 1.8em; padding-top: 14px; border-top: 1px solid var(--ink); }
.legal h2 { font-size: 1.25rem; }
.help-steps { padding-left: 1.4em; }
.help-steps li { margin-bottom: 14px; }
.help-steps li::marker { font-family: var(--mono); color: var(--copper); font-weight: 700; }
.help-steps h3 { font-size: 1.12rem; margin-bottom: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 44px; }
.faq summary::marker { color: var(--copper); }
.faq details p { color: var(--soft); }

/* ---------- Footer ---------- */
.foot { border-top: 4px solid var(--ink); box-shadow: 0 -3px 0 var(--paper), 0 -4px 0 var(--ink); background: var(--card); padding: 32px 0 20px; }
.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 { font-family: var(--display); font-weight: 800; margin: 0; }
.foot-small { margin: 0; font-size: 0.9rem; color: var(--soft); }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.foot-links a { display: inline-block; padding: 10px 0; }
.foot-note p { margin: 16px 0 0; font-size: 0.85rem; color: var(--soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .abstract-grid, .feature, .privacy-grid, .download { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding-top: 36px; padding-bottom: 48px; }
  .fig-hero { justify-self: start; }
  .feature.flip .fig { order: 0; }
  .feature { padding: 36px 0; }
  .privacy-band .text-link { grid-column: auto; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(odd) { border-right: 0; }
  .steps li:nth-child(even) { padding-left: 0; }
  .biblio span:last-child { display: none; }
  .fig { padding-left: 36px; }
  .fig-frame { max-width: 100%; }
  .lead { font-size: 1.1rem; }
}
