/* Strikethrough Text — landing. Built 06.11.2026 from the Website Copier landing (apps/website-copier/landing/styles.css):
   same layout, sizes and colors; product pictures are HTML mockups (assets/mock.css), styled at the end of this file. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
  --ink: #0f1722;
  --grey: #5d6879;
  --main: #0052f5;
  --border: #e4eaf5;
  --bg-soft: #f2f4f9;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.br-m { display: none; }

/* ---------- Buttons and badge ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  white-space: nowrap;
}
.btn-nav {
  padding: 14px 18px;
  background: linear-gradient(90deg, #2f8cf0 0%, #0052f5 55%, #0047e0 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}
.btn-primary {
  gap: 10px;
  padding: 16px 30px 16px 28px;
  background: linear-gradient(90deg, #0052f5, #316adb);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}
.btn-white {
  gap: 8px;
  height: 58px;
  padding: 14px 24px;
  background: #fff;
  color: var(--main);
  font-size: 16px;
  font-weight: 500;
}
.btn img, .badge-cws img { flex: none; }

/* Chrome Web Store badge (Figma note: replace with the official badge before launch) */
.badge-cws {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 12px;
  background: #fff;
  border: 1px solid #dfeae6;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: normal;
}
.badge-cws span { display: flex; flex-direction: column; }
.badge-cws small { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--grey); }

/* ---------- Header and footer ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
}
.brand img { flex: none; width: 32px; height: 32px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 79px;
}

.footer { border-top: 1px solid var(--border); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 77px;
}
.footer__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  line-height: normal;
  color: var(--grey);
  white-space: nowrap;
}

/* ---------- 1 · Hero ---------- */
.hero {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, #fff 0%, #eef4ff 59.115%, #fff 100%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 {
  font-size: 64px;
  line-height: 72px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero__lead {
  max-width: 420px;
  margin-top: 20px;
  font-size: 20px;
  line-height: 30px;
  color: var(--grey);
}
.hero__cta { display: flex; align-items: center; gap: 16px; margin-top: 60px; }
.hero__window {
  width: 100%;
  max-width: 974px;
  margin-top: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 51, 0.06), 0 24px 60px rgba(15, 23, 51, 0.1);
}
.hero__window img { width: 100%; height: auto; }

/* ---------- Sections 2 and 3 ---------- */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 60px 0;
}
.section h2 {
  font-size: 44px;
  line-height: 52px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: center;
}
.section__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.modes h2 { font-weight: 700; } /* Figma 474:2062: Bold, the audience heading stays Semi Bold */

/* Mode cards */
.modes__cards, .audience__cards { display: flex; gap: 24px; width: 100%; }
.modes__cards { padding: 0 60px; } /* two cards of 528 in Figma */
.mode-card {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.mode-card__preview { position: relative; height: 189px; overflow: hidden; background: var(--bg-soft); }
.mode-card__text { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px 28px; }
.mode-card h3 { font-size: 22px; line-height: 28px; font-weight: 600; }
.mode-card__text p { font-size: 16px; line-height: 24px; color: var(--grey); }

/* Audience cards */
.aud-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 232px; /* as the two taller cards in the design; the row keeps one height */
  padding: 24px 24px 28px;
  background: #f7f9fc;
  border-radius: 20px;
}
.aud-card__icon { display: flex; padding: 12px; margin-bottom: 16px; /* 4 px spacer + 12 px gap in the design */ background: #e6efff; border-radius: 14px; }
.aud-card h3 { font-size: 19px; line-height: 26px; font-weight: 600; }
.aud-card p { font-size: 15px; line-height: 22px; color: var(--grey); }

/* Final CTA */
.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 52px 64px;
  border-radius: 28px;
  background: linear-gradient(98.82deg, #324d9b 20.125%, #0047e0 110.27%);
}
.final-cta h2 { font-size: 36px; line-height: 44px; letter-spacing: -0.01em; color: #fff; text-align: left; }
.final-cta__actions { display: flex; align-items: center; gap: 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .modes__cards, .audience__cards { flex-wrap: wrap; }
  .modes__cards { padding: 0; }
  .mode-card { flex-basis: calc(50% - 12px); }
  .aud-card { flex-basis: calc(50% - 12px); }
  .final-cta { flex-direction: column; text-align: center; }
}

/* ---------- Phone (328:2196) ---------- */
@media (max-width: 767px) {
  .br-d { display: none; }
  .br-m { display: inline; }

  .nav { height: 79px; }
  .nav .brand { gap: 10px; font-size: 17px; }
  .nav .brand img { width: 28px; height: 28px; }
  .btn-nav { padding: 10px 14px; font-size: 14px; }

  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 36px; line-height: 42px; }
  .hero__lead { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .hero__cta { flex-direction: column; gap: 12px; width: 100%; margin-top: 28px; }
  .hero__cta .btn-primary { width: 100%; }
  .hero__window { margin-top: 36px; }

  .section { gap: 28px; padding: 48px 0; }
  .section h2 { font-size: 30px; line-height: 36px; }
  .audience { padding-bottom: 56px; }

  .modes__cards, .audience__cards { flex-direction: column; }
  .modes__cards { gap: 16px; }
  .audience__cards { gap: 12px; }
  .aud-card { min-height: 0; }
  .mode-card h3 { font-size: 20px; }
  .mode-card__text p { font-size: 15px; line-height: 22px; }

  .final-cta { gap: 0; padding: 36px 24px; background: linear-gradient(91.5deg, #324d9b 20.125%, #0047e0 110.27%); }
  .final-cta h2 { margin-bottom: 24px; font-size: 28px; line-height: 34px; letter-spacing: -0.01em; text-align: center; }
  /* phone: the button first, the badge under it */
  .final-cta__actions { flex-direction: column-reverse; gap: 12px; width: 100%; }
  .final-cta .btn-white { width: 100%; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    height: auto;
    padding: 28px 0 32px;
  }
  .footer__links { flex-wrap: wrap; gap: 10px 20px; }
}

/* ======================================================================
   Strikethrough Text additions (not in Website Copier)
   ====================================================================== */

/* the first word of the title, on a selection highlight — like Figma 474:1872 (Aruzhan 07.11).
   It flows through the styles (script at the end of index.html, Aruzhan 13.11): weight, slant and the two lines are animated,
   so one look turns into the next without blinking; s-rest is the look from Figma (bold, italic, crossed out).
   The letter case (FORMAT, format) is switched by the script letter by letter, see .ch below.
   Italic is a slant (skew): the font has no italic face, so the browser slanted it before as well. */
.h1-strike { position: relative; display: inline-block; padding: 0 0.06em; background: #bce1ff; text-align: center; --t: 0.3s; }
.h1-strike .fw { position: relative; display: inline-block; font-weight: 400; transform: none;
  transition: font-weight var(--t) ease, transform var(--t) ease, opacity var(--t) ease; }
.h1-strike .fw::before, .h1-strike .fw::after { content: ""; position: absolute; left: -0.02em; right: -0.02em; height: 0.08em;
  background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform var(--t) ease; }
.h1-strike .fw::before { top: 0.56em; }           /* strikethrough */
.h1-strike .fw::after { top: 1.06em; height: 0.06em; } /* underline */
.s-bold .fw, .s-rest .fw { font-weight: 700; }
.s-italic .fw, .s-rest .fw { transform: skewX(-12deg); }
.s-strike .fw::before, .s-rest .fw::before, .s-underline .fw::after { transform: scaleX(1); }
/* letter case: each letter that changes (o → O) eases to its new width while its old shape dissolves into the new one in place;
   the other spelling is a pseudo-element (data-alt), so the page text stays "Format" */
.h1-strike .ch { position: relative; display: inline-block; transition: width var(--t) ease; }
.h1-strike .ch .t { transition: opacity var(--t) ease; }
.h1-strike .ch::after { content: attr(data-alt); position: absolute; left: 50%; top: 0; transform: translateX(-50%); opacity: 0;
  transition: opacity var(--t) ease; }
.h1-strike .ch.alt .t { opacity: 0; }
.h1-strike .ch.alt::after { opacity: 1; }
.h1-strike.no-anim .fw, .h1-strike.no-anim .fw::before, .h1-strike.no-anim .fw::after,
.h1-strike.no-anim .ch, .h1-strike.no-anim .ch::after, .h1-strike.no-anim .t { transition: none; }

/* ---------- Hero mockup: a post composer in Chrome (design width 1200 = the WC hero picture) ---------- */
.mk--hero { --w: 97.4; } /* Figma 474:1886: window 974 wide */
.mk--hero .mk-tabs { background: #dfe8f7; }
.hero-page { display: flex; justify-content: center; padding: 4em 0 6.1em; }
.hero-card { position: relative; width: 60em; font-size: 1.25em; } /* larger than life, so the toolbar reads */
.mk-anchor { position: relative; white-space: nowrap; }
/* the toolbar sits above the selection (as in lib/toolbar.ts); its em is set back to the mockup's em */
.mk-anchor .tb { position: absolute; bottom: calc(100% + 0.5em); left: 50%; transform: translateX(-50%); font-size: 0.5em; z-index: 2; }

/* ---------- Mode-card previews (Figma: card 528 wide, preview 189 high; the phone keeps design width 380) ---------- */
.mk--card { --w: 52.8; height: 18.9em; overflow: hidden; }
.mode-card__preview.mk-scale { height: auto; }
.prev-toolbar { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5em; }
.prev-toolbar__text { font-size: 1.9em; white-space: nowrap; }
.prev-toolbar .mk-anchor .tb { font-size: 0.6em; } /* Figma 478:1988: toolbar 352 wide */
/* Figma 478:2035: the window without its head, 332 wide = 1.105 × the 300 window */
.prev-popup { left: 50%; top: 3.71em; width: 30em; margin-left: -15em; padding: 1.4em 1.4em 1.8em; font-size: 1.105em; }
.prev-popup .mk-popup__text { min-height: 0; padding: 1.2em .4em 0; }
.prev-popup .mk-popup__text p { margin: 0; font-size: 1.4em; line-height: 1.3; }

/* ---------- Phone: the composer only, larger (like the WC mobile hero picture) ---------- */
@media (max-width: 767px) {
  .mk--hero { --w: 62; }
  .mk--hero .mk-tabs, .mk--hero .mk-nav, .mk--hero .mk-avatar:not(.mk-card .mk-avatar) { display: none; }
  .mk--card { --w: 38; }
  .prev-toolbar .mk-anchor .tb { font-size: 0.42em; }
  .hero-page { padding: 7em 1.6em 2em; }
  .hero-card { width: 100%; }
  /* the toolbar is wider than half the card: center it on the text block, not on the word */
  .hero-card .mk-anchor { position: static; }
  .hero-card .mk-card__text { position: relative; }
}
