/* YazNot 1.0 — landing page
   Near-black, warm paper text, one orange accent. Display: Georgia. Body: Segoe UI. */

:root {
  --bg: #0b0b0c;
  --bg-2: #101012;
  --panel: #141416;
  --panel-2: #19191b;
  --line: #282521;
  --line-2: #3a352e;
  --text: #f2ede5;
  --text-strong: #fbf8f2;
  --muted: #a49a8d;
  --muted-2: #7f766a;
  --accent: #df6733;
  --accent-2: #f08a55;
  --accent-soft: #2e1d14;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1240px;
  --r: 7px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #1b0d06; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 10px 14px; background: var(--accent); color: #1b0d06;
  border-radius: var(--r); transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: min(var(--wrap), calc(100% - 64px)); margin: 0 auto; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 30px;
  padding: 14px max(32px, calc((100vw - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { width: 28px; height: 28px; }
.brand-name { font-weight: 740; letter-spacing: -0.02em; font-size: 16px; color: var(--text-strong); }
.brand-version {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--accent-2); border: 1px solid #5a3422;
  padding: 0 5px; border-radius: 3px; line-height: 1.5;
}
.topnav { display: flex; align-items: center; gap: 25px; margin-left: auto; font-size: 14px; color: var(--muted); }
.topnav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.topnav a:hover { color: var(--text-strong); border-bottom-color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 7px 9px; cursor: pointer; line-height: 1;
}
.lang button + button { border-left: 1px solid var(--line-2); }
.lang button.active { background: var(--accent); color: #1b0d06; }
.top-cta {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 0 14px; border: 1px solid var(--line-2); border-radius: 4px;
  font-size: 13px; font-weight: 650; background: transparent;
  transition: background .16s, border-color .16s, color .16s;
}
.top-cta:hover { background: var(--panel); border-color: var(--accent); color: var(--text-strong); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px; align-items: center;
}
.kicker {
  font-size: 13px; font-weight: 650; color: var(--muted);
  letter-spacing: 0.01em; margin-bottom: 20px;
}
.kicker::before {
  content: ""; display: inline-block; width: 22px; height: 2px;
  background: var(--accent); vertical-align: middle; margin-right: 10px;
  transform: translateY(-1px);
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 6.7vw, 86px);
  line-height: 0.98; letter-spacing: -0.048em;
  margin: 0 0 26px; text-wrap: balance;
  color: var(--text-strong);
}
h1 em { font-style: italic; color: var(--accent); }
.lead {
  max-width: 50ch; font-size: 18px; line-height: 1.68;
  color: #cfc5b8;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 52px; padding: 9px 16px; border-radius: var(--r);
  border: 1px solid transparent; font-size: 13px; line-height: 1.25;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.btn .icon { width: 19px; height: 19px; }
.btn span { display: flex; flex-direction: column; gap: 1px; }
.btn b { font-size: 14px; font-weight: 700; }
.btn small { font-size: 11px; font-weight: 500; opacity: .7; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1b0d06; }
.btn-primary:hover { background: var(--accent-2); }
.btn-line { border-color: var(--line-2); background: transparent; color: var(--text); }
.btn-line:hover { border-color: #6b5b4c; background: var(--panel); color: var(--text-strong); }
.hero-meta { margin-top: 18px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }

.hero-visual { min-width: 0; }
.browser {
  border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden;
  background: var(--panel); box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; background: #17171a;
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: inline-flex; gap: 5px; }
.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3d3a35; }
.browser-title { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.browser img { width: 100%; height: auto; }
.hero-visual figcaption {
  margin-top: 12px; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.hero-visual figcaption::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

.proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px;
  margin-top: 66px; padding: 16px 0 18px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.015em;
}
.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof span::before { content: "·"; color: var(--accent); font-size: 16px; line-height: 1; }

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end; gap: 40px; margin-bottom: 38px;
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04;
  letter-spacing: -0.038em; color: var(--text-strong); text-wrap: balance;
}
.section-lead { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 44ch; }

/* ---------- film ---------- */
.film { background: var(--bg-2); }
.film .section-head { margin-bottom: 28px; }
.film-frame {
  border: 1px solid var(--line-2); border-radius: 7px;
  overflow: hidden; background: #08080a;
}
.film-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #08080a; }
.film-meta { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); text-align: right; }

/* ---------- works ---------- */
.works-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.works-grid article { padding: 28px 34px 0 0; }
.works-grid article + article { border-left: 1px solid var(--line); padding-left: 34px; }
.num {
  display: block; font-family: var(--serif); font-size: 46px;
  line-height: 1; color: var(--accent); margin-bottom: 20px;
}
.works-grid h3 {
  font-family: var(--serif); font-weight: 400; font-size: 34px;
  line-height: 1.05; letter-spacing: -0.035em; color: var(--text-strong);
  margin-bottom: 10px;
}
.works-grid p { color: var(--muted); font-size: 15px; line-height: 1.68; max-width: 35ch; }

/* ---------- tools ---------- */
.spec {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px; border-top: 1px solid var(--line-2);
}
.spec-row {
  display: grid; grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.spec dt {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent-2); padding-top: 4px;
}
.spec dd { color: var(--muted); font-size: 15px; line-height: 1.62; }
.spec code {
  font-family: var(--mono); font-size: 0.88em; color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 3px; white-space: nowrap;
}

/* ---------- devices ---------- */
.device-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
}
.device {
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 30px;
  display: flex; flex-direction: column;
}
.device-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em;
  color: var(--accent-2); margin-bottom: 20px;
}
.device h3 {
  font-family: var(--serif); font-weight: 400; font-size: 36px;
  line-height: 1.06; letter-spacing: -0.035em; color: var(--text-strong);
  margin-bottom: 12px;
}
.device > p:not(.device-label):not(.fine) { color: var(--muted); font-size: 15px; line-height: 1.68; max-width: 42ch; }
.device .btn { align-self: flex-start; margin-top: 26px; }
.detail-list { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.detail-list li {
  padding: 9px 0; border-bottom: 1px solid var(--line);
  color: #cfc5b8; font-size: 14px;
}
.detail-list li::before { content: "—"; color: var(--accent); margin-right: 10px; }
.fine { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--muted-2); }
.phone-steps { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.phone-steps li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: #cfc5b8;
}
.phone-steps span { font-family: var(--mono); font-size: 10px; color: var(--accent-2); }
.phone-steps b { font-weight: 600; }
.text-link {
  display: inline-block; align-self: flex-start; margin-top: 22px;
  font-weight: 700; font-size: 14px; color: var(--text-strong);
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.phone-card .text-link { margin-top: auto; padding-top: 22px; }
.text-link:hover { color: var(--accent-2); }

/* ---------- guide ---------- */
.guide { background: var(--bg-2); }
.guide-grid {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.book {
  width: 300px; height: 396px; background: #111113;
  border: 1px solid var(--line-2); border-radius: 3px 8px 8px 3px;
  box-shadow: 10px 10px 0 #1c1b19; position: relative; overflow: hidden;
}
.book::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; background: var(--accent); }
.book-face { padding: 34px 28px 24px 38px; height: 100%; display: flex; flex-direction: column; }
.book-face img { width: 34px; height: 34px; }
.book-name { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--text-strong); margin-top: 26px; letter-spacing: -0.035em; }
.book-sub { color: #cfc5b8; font-size: 15px; margin-top: 8px; }
.book-edition { margin-top: auto; font-family: var(--mono); font-size: 10px; color: var(--muted-2); letter-spacing: 0.08em; }
.guide-copy h2 { margin-bottom: 16px; }
.topics { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.topics li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: #cfc5b8;
}
.topics span { font-family: var(--mono); font-size: 10px; color: var(--accent-2); }
.topics b { font-weight: 600; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.guide-actions .btn { margin-top: 0; min-height: 46px; }

/* ---------- faq ---------- */
.faq-list { max-width: 900px; border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 650; color: var(--text-strong);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; font-family: var(--mono); font-size: 18px;
  line-height: 1; color: var(--accent);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:hover { color: var(--accent-2); }
.faq-list details p {
  padding: 0 40px 20px 0; max-width: 68ch;
  color: var(--muted); font-size: 15px; line-height: 1.7;
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #08080a; }
.footer-grid {
  display: flex; justify-content: space-between; gap: 40px;
  padding: 46px 0 28px;
}
.footer-brand p { margin-top: 10px; color: var(--muted); font-size: 13px; max-width: 34ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; font-size: 13px; color: var(--muted); }
.footer-nav a:hover { color: var(--text-strong); }
.colophon {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 16px 0 26px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; color: var(--muted-2);
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero-grid { gap: 40px; }
  .topnav { gap: 18px; }
  .works-grid article { padding-right: 24px; }
  .works-grid article + article { padding-left: 24px; }
  .spec { column-gap: 40px; }
  .spec-row { grid-template-columns: 148px minmax(0, 1fr); gap: 20px; }
  .device-grid { gap: 14px; }
  .device { padding: 24px; }
  .guide-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 44px; }
  .book { width: 250px; height: 330px; }
}
@media (max-width: 860px) {
  .wrap { width: min(var(--wrap), calc(100% - 40px)); }
  .topbar { padding-left: 20px; padding-right: 20px; gap: 14px; }
  .topnav { display: none; }
  .top-actions { margin-left: auto; }
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-visual { order: 2; }
  h1 { font-size: clamp(48px, 12vw, 68px); }
  .proof { margin-top: 42px; gap: 8px 18px; }
  .section { padding: 62px 0; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .works-grid { grid-template-columns: 1fr; border-top-color: var(--line); }
  .works-grid article,
  .works-grid article + article {
    padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line);
  }
  .num { font-size: 36px; margin-bottom: 12px; }
  .works-grid h3 { font-size: 30px; }
  .works-grid p { max-width: 52ch; }
  .spec { grid-template-columns: 1fr; column-gap: 0; }
  .spec-row { grid-template-columns: 1fr; gap: 5px; padding: 14px 0; }
  .spec dt { padding-top: 0; }
  .device-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; gap: 34px; }
  .guide .book { order: 2; }
  .faq-list details p { padding-right: 0; }
  .footer-grid { flex-direction: column; gap: 24px; padding-top: 34px; }
  .colophon { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .brand-version { display: none; }
  .top-cta { min-height: 34px; padding: 0 11px; font-size: 12px; }
  .top-actions { gap: 7px; }
  .lang button { padding: 6px 7px; }
  .hero { padding-top: 40px; }
  .lead { font-size: 16.5px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: flex-start; }
  .proof { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .proof span { font-size: 10px; }
  .film-meta { text-align: left; }
  h2 { font-size: 36px; }
  .works-grid h3 { font-size: 27px; }
  .spec dd { font-size: 14.5px; }
  .faq-list summary { font-size: 16px; padding: 15px 0; }
  .device { padding: 22px; }
  .device h3 { font-size: 32px; }
  .book { width: 230px; height: 304px; }
  .book-face { padding: 26px 22px 18px 30px; }
  .book-name { font-size: 38px; }
  .guide-actions { gap: 12px; }
  .footer-nav { gap: 9px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
