/* ===== The site's stylesheet, shared by every page on it =====
   index.html, interactive-books.html and interactive-video.html are one design; a copy per page is three
   copies to keep in step, and they would not stay in step. contact.html and centre.html are deliberately
   NOT here: they are standalone one-page documents with their own look. */
/* Plain CSS on purpose: this page has no build step, so it can be dropped on any host.
   Values are ported 1:1 from design-mockups/Landing.dc.html — the mockup writes them as inline
   styles per element; the repeats live here as classes and the one-offs stay inline. */
:root {
  --accent: #ef4444;
  --ink: #171717;
  --muted: #52525b;
  --dim: #71717a;
  --faint: #a1a1aa;
  --line: #ececee;
  --line2: #e4e4e7;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: #000; }
::selection { background: var(--accent); color: #fff; }
@keyframes cs-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.25; } }
@keyframes cs-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

section { padding: 120px 0 0; }

/* ---- nav ---- */

/* ---- shared type ---- */

h2 { margin: 14px 0 0; font-size: 40px; line-height: 1.07; letter-spacing: -0.028em; font-weight: 700; }

/* ===== Design update — macOS or web =====
   Two cards, the desktop one outlined because it is the complete product and the web one plain
   because it is the same product minus recording. */
#hosts { padding: 100px 0 0; }

/* The hero's second way in, under the buttons. */

.mono-note { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--faint); }

/* ---- cards ---- */

/* A feature card whose top half is a drawn preview of the screen it describes. The preview is
   built at a fixed 302px width in the mockup and centred, so it reads the same in every card. */

/* The book showcase is three pages on a 5.2s rotation; the dots also step it by hand. */

/* ---- publish: three routes to a reader, one open at a time ---- */

/* After .split, and with a class in the selector: the browser's own [hidden] rule is weaker than
   any class rule, so a split pane would stay laid out and the three routes would stack. */

/* The domain list is the point of option 02, so it is drawn dark like the app's own export dialog. */

/* The demo overlay — an iframe of the click-through demo, dimmed page behind it. */
#demo[hidden] { display: none; }
#demo {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 34px; background: rgba(9, 9, 11, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
#demo .scrim { position: absolute; inset: 0; }
#demo iframe {
  position: relative; width: min(1240px, 100%); height: min(820px, 100%);
  border: 0; background: transparent;
}

/* a checked bullet — used in the editor, books and protection lists */

/* ---- the two hosts, side by side (was the pricing table) ---- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 44px auto 0; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 32px; background: #fff; }
.plan.on { border: 1.5px solid var(--ink); position: relative; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.4); }
.plan .name { font-size: 14px; font-weight: 660; color: var(--ink); }
.plan .price { margin-top: 14px; display: flex; align-items: baseline; gap: 4px; }
.plan .price span { font-size: 46px; font-weight: 720; letter-spacing: -0.03em; }
.plan .price small { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.plan .sub { margin-top: 4px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.plan .cta {
  display: flex; align-items: center; justify-content: center; margin-top: 24px; padding: 12px;
  border-radius: 10px; font-size: 14px; font-weight: 620;
}
.plan .cta.ghost { background: #fff; border: 1px solid #d4d4d8; color: var(--ink); }
.plan .cta.ghost:hover { border-color: var(--ink); }

.plan hr { height: 1px; border: 0; background: #f0f0f2; margin: 24px 0; }

.plan .rows { display: flex; flex-direction: column; gap: 12px; }
/* ---- the download panel: one app, three systems ---- */
.ostabs { margin-top: 22px; display: flex; gap: 3px; padding: 3px; background: #f4f4f5; border-radius: 10px; }
.ostabs button {
  flex: 1; padding: 8px 6px; border: 0; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 650; background: transparent; color: var(--faint);
}
.ostabs button[aria-selected='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.dls { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.dl {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px;
  border-radius: 10px; border: 1px solid #d4d4d8; background: #fff; color: var(--ink);
  cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; text-align: left;
}
.dl:hover { border-color: var(--ink); }
.dl .l { display: flex; align-items: center; gap: 8px; }
.dl .s { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--faint); }
.dl.primary { padding: 12px 14px; border: 0; background: var(--ink); color: #fff; font-size: 14px; font-weight: 620; }
.dl.primary:hover { background: #000; }
.dl.primary .s { color: #fff; opacity: 0.6; }
/* The "not yet" note. Amber rather than red: nothing has gone wrong, the build is simply not out. */
.soon {
  margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px;
  border: 1px solid #f0e6d2; border-radius: 12px; background: #fdf8ef;
  font-size: 13px; line-height: 1.55; color: #7a6a4f;
}
.soon svg { flex-shrink: 0; margin-top: 1px; color: #b8935a; }
.dlmeta { margin-top: 9px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dlmeta .v { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.dlmeta button {
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 600; color: var(--dim); text-decoration: underline; text-underline-offset: 2px;
}

.row { display: flex; gap: 10px; align-items: flex-start; }
.row > .m { color: var(--ink); flex-shrink: 0; display: flex; }
.row > .t { font-size: 14px; color: #3f3f46; }
.row.no > .m, .row.no > .t { color: var(--faint); }
.badge {
  position: absolute; top: 22px; right: 24px; padding: 4px 10px; border-radius: 100px;
  background: var(--accent); color: #fff; font-family: var(--mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---- faq ---- */

/* ---- footer ---- */
footer { padding: 64px 0 56px; margin-top: 64px; border-top: 1px solid var(--line); }

/* ---- the small-screen menu ---- */
/* The header cannot hold logo + nav + CTA below ~1120px, so the nav folds into this button rather
   than being clipped. The panel is plain markup (no overlay): it pushes the page down, which is what
   a visitor scrolling on a phone expects. */

/* Below this the topbar keeps only the brand, the language switch and the one CTA. */

/* Below 900 every 2/3-column grid stacks and the drawn mocks stop being load-bearing. */
@media (max-width: 900px) {
  section { padding: 84px 0 0; }
  h2 { font-size: 32px; }
  .plans { grid-template-columns: 1fr; }
}
/* Phone: the wrap padding, the hero type and the dark panels are all still desktop-sized at 900. */

/* ---- nav dropdowns ---- */
/* The panel itself is drawn inline by the design; `.dropdown` is only the positioning wrapper and the
   hook the script opens and closes. Anything visual here would draw a second box around the first. */

/* ---- the two products, on the front page ---- */

/* ---- the three promises ---- */

/* ---- the footer's link columns ---- */

/* ---- the EN/VI switch ----
   The design computes these two states in script (segBase + segOn/segOff), so they cannot be inlined the
   way the rest of the nav is. The values are its own. */
#langEn,
#langVi {
  padding: 5px 11px; border-radius: 7px; border: none; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em; transition: all 0.15s;
  background: transparent; color: #a1a1aa;
}
#langEn.on,
#langVi.on { background: #171717; color: #fff; }

/* ===== Hover states for the transcribed markup =====
   The design is written as inline styles, element by element, which is how it stays a pixel-for-pixel copy
   of the mockup. Inline styles cannot express :hover, so the handful of hover rules the design has live
   here, one class per rule — the base value is still on the element. */
.hv-nav:hover { background: #f4f4f5; color: #171717; }
.hv-item:hover { background: #f7f7f8; }
.hv-ink:hover { color: #171717; }
.hv-line:hover { border-color: #171717; }
.hv-dark:hover { background: #000; color: #fff; }
.hv-fade:hover { opacity: 0.7; }
.hv-under:hover { color: #171717; border-color: #171717; }

.hv-lift:hover { border-color: #d4d4d8; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.28); transform: translateY(-2px); }

/* ===== The folded menu =====
   Closed is the default and it is stated HERE, not with the `hidden` attribute: `hidden` is only a UA
   style rule, and the inline `display:flex` this panel carries out-ranks it — which is exactly how the
   menu ended up rendering open on every page, on every screen size, pushing the site down the viewport.
   A class decides it instead, and only when the nav is folded at all. */
[data-menu] { display: none; }
[data-menu].open { display: flex; }

/* The nav folds below this width: the links become a menu, and the two CTAs make way for it. */
@media (max-width: 1080px) {
  [data-topnav] { display: none !important; }
  [data-menubtn] { display: inline-flex !important; }
  [data-signin] { display: none !important; }
}
/* Above it there is no button to open the menu, so the menu cannot be open either — a stale `open` class
   (a resize with the panel showing) must not leave a wide screen with a list down its front page. */
@media (min-width: 1081px) {
  [data-menu].open { display: none; }
}

@media (max-width: 760px) {
  [data-rg='split'] { grid-template-columns: 1fr !important; gap: 8px !important; }
  [data-rg='3'] { grid-template-columns: 1fr !important; gap: 18px !important; }
  [data-rg='2'] { grid-template-columns: 1fr !important; }
}
