/* ==========================================================================
   Homepage redesign (body.v2). Same palette as Alvankra Assets: white and
   cool-gray sections, navy for structure, deep copper for the main action,
   category tints on icons only. Loaded after style.css, so the shared
   masthead, footer and CTA band keep working unchanged.
   ========================================================================== */

.v2 {
  --canvas: #F5F7FA;
  --line: #E3E8EE;
  --ink2: #1A2533;      /* 14.4:1 on canvas */
  --muted2: #5E6A78;    /* 5.1:1 on canvas */
  --action: #9C5824;    /* white on it 5.5:1 */
  --action-hover: #7A4219;

  --teal: #2A9D8F;  --teal-bg: #E3F3F1;
  --lav: #8E7DBE;   --lav-bg: #EFECF7;
  --cop-bg: #FBF1E7;
  --coral: #E76F51; --coral-bg: #FDECE7;

  background: #fff;
  color: var(--ink2);
}

.x-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------ buttons -- */

.x-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.x-btn--primary { background: var(--action); color: #fff; }
.x-btn--primary:hover { background: var(--action-hover); transform: translateY(-1px); }
.x-btn--quiet { background: #fff; color: var(--navy); border-color: var(--line); }
.x-btn--quiet:hover { border-color: #CBD3DD; background: var(--canvas); }

/* --------------------------------------------------------------- hero -- */

.x-hero {
  background: linear-gradient(180deg, var(--canvas) 0%, #fff 100%);
  padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px);
  overflow: hidden;
}
.x-hero__grid {
  display: grid; gap: clamp(32px, 5vw, 56px); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  max-width: 1200px;
}
.x-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--action); background: var(--cop-bg);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.x-hero h1 {
  font-size: clamp(36px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -.025em;
  color: var(--navy); font-weight: 700; margin-bottom: 18px;
}
.x-lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted2); max-width: 34em; }
.x-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.x-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; }
.x-trust li { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted2); }
.x-trust svg { color: var(--teal); }

/* A browser window around each product screenshot. */
.x-shot {
  position: relative; margin: 0;
  border-radius: 14px; overflow: visible;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 43, 70, .06), 0 24px 60px -24px rgba(15, 43, 70, .28);
}
.x-shot img { display: block; width: 100%; height: auto; border-radius: 0 0 13px 13px; }
.x-shot__bar {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line);
  background: #FAFBFC; border-radius: 13px 13px 0 0;
}
.x-shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #DDE3EA; }
.x-shot__bar span {
  margin-left: 10px; font-size: 12px; color: var(--muted2);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px;
}
.x-shot--hero { transform: perspective(1600px) rotateY(-4deg); transform-origin: left center; }
.x-float {
  position: absolute; left: -22px; bottom: 28px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; color: var(--ink2);
  box-shadow: 0 12px 30px -12px rgba(15, 43, 70, .35);
}
.x-float b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--cop-bg); color: var(--action); font-size: 15px;
}

/* -------------------------------------------------------------- bands -- */

.x-band { padding-block: clamp(56px, 7vw, 96px); }
.x-band--tint { background: var(--canvas); }
.x-band .shell, .x-hero .shell { max-width: 1200px; }

.x-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 44px); }
.x-kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--action); margin-bottom: 10px;
}
.x-band h2 {
  font-size: clamp(28px, 2.8vw, 40px); line-height: 1.12; letter-spacing: -.02em;
  color: var(--navy); font-weight: 700;
}
.x-sub { margin-top: 14px; font-size: 18px; color: var(--muted2); max-width: 40em; }

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

.x-cards { display: grid; gap: 18px; }
.x-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.x-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.x-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(15, 43, 70, .3); }
.x-card h3 { font-size: 18px; color: var(--navy); margin: 16px 0 8px; line-height: 1.3; }
.x-card p { font-size: 15px; color: var(--muted2); line-height: 1.55; }

.x-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px; flex: none;
}
.x-ico svg { width: 24px; height: 24px; }
.x-ico--sm { width: 40px; height: 40px; border-radius: 11px; }
.x-ico--sm svg { width: 20px; height: 20px; }
.x-ico--teal   { background: var(--teal-bg);  color: var(--teal); }
.x-ico--lav    { background: var(--lav-bg);   color: var(--lav); }
.x-ico--copper { background: var(--cop-bg);   color: var(--action); }
.x-ico--coral  { background: var(--coral-bg); color: var(--coral); }

.x-note {
  margin-top: 22px; max-width: 46em; font-size: 15px; color: var(--muted2);
  padding: 14px 18px; border-radius: 12px; background: var(--canvas);
}
.x-note strong { color: var(--ink2); }
.x-more { margin-top: 26px; }
.x-more a, .x-fine a, .x-faq a { color: var(--action); font-weight: 600; text-decoration: none; }
.x-more a:hover, .x-fine a:hover, .x-faq a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ product -- */

.x-split {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.x-tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; color: #166534; background: #DCFCE7;
  padding: 5px 12px; border-radius: 999px;
}
.x-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.x-features { display: grid; gap: 16px; margin: 26px 0 28px; }
.x-features li { display: flex; gap: 14px; align-items: flex-start; }
.x-features b { display: block; color: var(--navy); font-size: 16px; }
.x-features span:not(.x-ico) { display: block; color: var(--muted2); font-size: 15px; }

.x-signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 30em; }
.x-signup input[type=email] {
  flex: 1 1 220px; min-height: 46px; padding: 0 14px;
  font: inherit; font-size: 15px; color: var(--ink2);
  background: #fff; border: 1px solid #CBD3DD; border-radius: 10px;
}
.x-signup input[type=email]:focus {
  outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(201, 123, 60, .25);
}
.x-signup .captcha { flex-basis: 100%; }
.x-signup .status { flex-basis: 100%; font-size: 14px; }
.x-signup .status--ok { color: #166534; }
.x-signup .status--bad { color: #9F1239; }
.x-fine { margin-top: 10px; font-size: 14px; color: var(--muted2); }

/* -------------------------------------------------------------- steps -- */

.x-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  padding: 0; margin: 0; list-style: none; position: relative;
}
/* The thread joining the four numbers. */
.x-steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px;
  height: 2px; background: linear-gradient(90deg, var(--copper), var(--line));
}
.x-steps li { position: relative; }
.x-step {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 0 0 6px #fff;
}
.x-steps h3 { font-size: 18px; color: var(--navy); margin: 18px 0 6px; }
.x-steps p { font-size: 15px; color: var(--muted2); }

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

.x-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); }
.x-faq .x-head { margin-bottom: 0; }
.x-faq__list details {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
.x-faq__list details:first-child { border-top: 1px solid var(--line); }
.x-faq__list summary {
  cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.x-faq__list summary::-webkit-details-marker { display: none; }
.x-faq__list summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--canvas); color: var(--action); font-size: 18px; font-weight: 600;
}
.x-faq__list details[open] summary::after { content: "–"; }
.x-faq__list p { margin-top: 10px; color: var(--muted2); font-size: 16px; max-width: 40em; }

/* --------------------------------------------------------- responsive -- */

@media (max-width: 980px) {
  .x-hero__grid, .x-split, .x-faq { grid-template-columns: minmax(0, 1fr); }
  .x-shot--hero { transform: none; }
  .x-float { left: 12px; bottom: -18px; }
  .x-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-cards--3 { grid-template-columns: minmax(0, 1fr); }
  .x-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .x-steps::before { display: none; }
}
@media (max-width: 560px) {
  .x-cards--4, .x-steps { grid-template-columns: minmax(0, 1fr); }
  .x-actions .x-btn, .x-signup .x-btn { width: 100%; }
  .x-float { font-size: 13px; }
}
