:root {
  --paper: #fbf7f0;
  --paper-2: #f4ede0;
  --card: rgba(255, 253, 248, 0.88);
  --ink: #1e1b17;
  --ink-2: #4a4339;
  --mut: #7c7365;
  --red: #b83121;
  --red-h: #9d2719;
  --red-soft: rgba(184, 49, 33, 0.09);
  --line: rgba(130, 114, 92, 0.18);
  --shadow: 0 20px 50px rgba(34, 26, 18, 0.08);
  --serif: "Noto Serif", "Songti SC", Georgia, serif;
  --sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --han: "Kaiti SC", "STKaiti", "Noto Serif SC", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  font: 15.5px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 240, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font: 700 19px/1 var(--serif); letter-spacing: -0.01em;
}
.brand img {
  width: 34px; height: 34px; border-radius: 9px;
  box-shadow: 0 4px 12px rgba(184, 49, 33, 0.22);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: color .18s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.btn-red, .nav-links a.btn-red:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font: 600 15px/1 var(--sans);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, background .18s, box-shadow .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 10px 24px rgba(184, 49, 33, 0.24);
}
.btn-red:hover { background: var(--red-h); box-shadow: 0 12px 28px rgba(184, 49, 33, 0.32); }
.btn-ghost {
  background: var(--card); color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; box-shadow: 0 6px 16px rgba(184, 49, 33, 0.2); }

/* ---------- Eyebrow & Headings ---------- */
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.18; }
h2 { font-size: clamp(26px, 3.3vw, 36px); line-height: 1.24; }
.lead { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; margin: 16px 0 26px; max-width: 480px; }

/* ---------- Decorative Ink Artwork ---------- */
.art-plum {
  position: absolute; top: -16px; right: -16px; width: min(360px, 40vw);
  mix-blend-mode: multiply; opacity: 0.88; pointer-events: none; z-index: 0;
  filter: brightness(1.07) contrast(1.06);
  -webkit-mask-image: radial-gradient(ellipse 76% 76% at 88% 12%, black 32%, transparent 80%);
  mask-image: radial-gradient(ellipse 76% 76% at 88% 12%, black 32%, transparent 80%);
}
.art-mtn {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 240px;
  object-fit: cover; object-position: bottom center;
  mix-blend-mode: multiply; opacity: 0.4; pointer-events: none; z-index: 0;
  filter: brightness(1.06) contrast(1.04);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 46%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 46%, black 85%, transparent 100%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 88px; overflow: hidden; }
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 1.08fr; gap: 44px; align-items: center;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-sublink {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 13.5px; color: var(--mut); text-decoration: none; font-weight: 500;
}
.hero-sublink:hover { color: var(--red); }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; }

/* ---------- Realistic iPad Mockup ---------- */
.ipad {
  position: relative; background: #191817; border-radius: 26px; padding: 11px;
  box-shadow: 0 28px 65px rgba(26, 20, 14, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .35s ease;
}
.ipad:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(1deg); }
.ipad.flat { transform: perspective(1200px) rotateY(3deg) rotateX(1.5deg); }
.ipad.flat:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.ipad-scr {
  background: #f7f2e5; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12); aspect-ratio: 16 / 10.6;
  display: flex; flex-direction: column;
}
.ipad-top {
  background: #1c1914; color: #f7f2e5; padding: 6px 10px;
  display: flex; align-items: center; gap: 8px; font-size: 10px;
}
.ipad-seal {
  background: var(--red); color: #fff; font: 700 11px var(--han);
  padding: 1px 5px; border-radius: 2px;
}
.ipad-sel {
  background: #2d2922; color: #e9e1cf; padding: 2px 8px; border-radius: 3px; font-size: 9.5px;
}
.ipad-body { flex: 1; display: grid; grid-template-columns: 43% 57%; min-height: 0; }
.ipad-vid {
  background: #ebe3d2; border-right: 1.5px solid #d6cbb2;
  display: flex; flex-direction: column;
}
.vid-box {
  background: linear-gradient(135deg, #27372d, #1c2620); aspect-ratio: 16/9.5;
  position: relative; display: flex; align-items: center; justify-content: center; color: #f7f2e5;
}
.vid-board {
  width: 78%; height: 68%; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--han); font-size: 20px; letter-spacing: 6px; color: #f4efe3;
}
.vid-board small { font-family: var(--sans); font-size: 8px; letter-spacing: 0.06em; opacity: 0.72; margin-top: 2px; }
.vid-toc { padding: 6px 8px; font-size: 9.5px; display: flex; flex-direction: column; gap: 4px; color: #3b362d; }
.toc-r { display: flex; gap: 6px; padding: 3px 5px; border-radius: 3px; align-items: baseline; }
.toc-r b { color: var(--mut); font-weight: 500; font-size: 8.5px; }
.toc-r.on { background: #ecd9d2; border-left: 3px solid var(--red); font-weight: 600; color: #1c1914; }
.toc-r.on b { color: var(--red); }

.ipad-pad { display: flex; flex-direction: column; background: #f7f2e5; }
.ipad-tabs {
  display: flex; gap: 8px; padding: 5px 10px 0; border-bottom: 1px solid #d6cbb2;
  background: #efe7d6; font-size: 9px; color: var(--mut);
}
.ipad-tabs span { padding-bottom: 4px; border-bottom: 2px solid transparent; }
.ipad-tabs span.on { color: #1c1914; font-weight: 700; border-bottom-color: var(--red); }
.ipad-canvas {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px; gap: 12px;
}
.mzg {
  width: 132px; height: 132px; background: #fffdf6; border: 1.5px solid #1c1914;
  position: relative; display: flex; align-items: center; justify-content: center;
  font: 90px/1 var(--han); color: #1c1914; flex-shrink: 0;
}
.mzg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0V100M0 50H100M0 0L100 100M100 0L0 100' stroke='%23d9a99f' stroke-width='.9' stroke-dasharray='3 2.5' fill='none'/%3E%3C/svg%3E");
}
.mzg span { position: relative; z-index: 1; }
.mzg-info { font-size: 10px; line-height: 1.45; color: #3b362d; }
.mzg-info b { color: var(--red); font-size: 12px; display: block; }
.mzg-tag {
  display: inline-block; border: 1px solid var(--red); color: var(--red);
  font-size: 8px; padding: 0 4px; margin: 2px 0 4px;
}

/* Copybook preview inside Solution iPad */
.cb-mini { width: 100%; padding: 8px 10px; display: flex; flex-direction: column; gap: 7px; }
.cb-m-row {
  display: flex; gap: 7px; align-items: center; background: #fffdf6;
  border: 1px solid #ddd2bc; padding: 5px; border-radius: 3px;
}
.cb-m-big {
  width: 38px; height: 38px; border: 1px solid #1c1914; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font: 28px/1 var(--han);
  position: relative;
}
.cb-m-cells { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid #c9bea6; }
.cb-m-c {
  aspect-ratio: 1; border-left: 1px solid #e2d8c5; display: flex; align-items: center;
  justify-content: center; font: 19px/1 var(--han); color: rgba(28, 25, 20, 0.24);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0V100M0 50H100M0 0L100 100M100 0L0 100' stroke='%23e5c7bf' stroke-width='1.2' stroke-dasharray='4 3' fill='none'/%3E%3C/svg%3E");
}
.cb-m-c:first-child { border-left: 0; color: #1c1914; }
.cb-m-c.ink { color: #1e5aa8; }

/* ---------- Sections ---------- */
section { position: relative; padding: 76px 0; }
.sec-soft { background: linear-gradient(180deg, rgba(244, 237, 224, 0.45), rgba(251, 247, 240, 0.8)); }

/* Problem */
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.prob-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: 0 10px 28px rgba(34, 26, 18, 0.04);
}
.prob-ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.prob-card h3 { font-size: 19px; margin-bottom: 6px; }
.prob-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* Solution */
.sol-grid { display: grid; grid-template-columns: 0.96fr 1.04fr; gap: 46px; align-items: center; }
.chk-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.chk-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.chk-dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
  font-size: 12px; font-weight: 700;
}
.chk-list strong { color: var(--ink); }

/* Less Noise */
.no-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 36px 38px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center;
}
.no-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.no-list li { display: flex; gap: 11px; align-items: center; font-size: 15.5px; color: var(--ink); }
.x-dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 11px; font-weight: 800;
}

/* ---------- 4-Step Add to Home Screen Guide ---------- */
.guide-sec { position: relative; overflow: hidden; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; position: relative; z-index: 2; }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 12px 30px rgba(34, 26, 18, 0.05);
}
.step-hd { display: flex; align-items: flex-start; gap: 12px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red);
  font: 700 14px/28px var(--sans); text-align: center; flex-shrink: 0;
}
.step-hd h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 700; margin-bottom: 2px; }
.step-hd p { margin: 0; font-size: 13.5px; color: var(--mut); line-height: 1.45; }

/* Mini Safari UI mockups inside Guide cards */
.ui-mock {
  background: #ede6d9; border: 1px solid rgba(130, 114, 92, 0.22); border-radius: 13px;
  padding: 14px; min-height: 118px; display: flex; align-items: center; justify-content: center;
}
.safari-url {
  width: 100%; background: #fff; border-radius: 10px; padding: 9px 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: #1e1b17; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.safari-bar {
  width: 100%; background: rgba(255, 255, 255, 0.92); border-radius: 12px; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-around; color: #8c857b;
}
.share-hi {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 122, 255, 0.14);
  color: #007aff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.35);
}
.sheet-mock {
  width: 100%; max-width: 280px; background: #fff; border-radius: 11px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); font-size: 12.5px;
}
.sheet-row {
  padding: 8px 12px; display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #f0ece4; color: #7c7365;
}
.sheet-row:first-child { border-top: 0; }
.sheet-row.hi { background: rgba(0, 122, 255, 0.1); color: #0062cc; font-weight: 600; }
.home-mock {
  width: 100%; height: 100%; min-height: 92px; border-radius: 10px;
  background: linear-gradient(135deg, #3c4856, #232a34);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.home-mock img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
.home-mock span { color: #fff; font-size: 11px; font-weight: 500; }

/* Quick install bar below 4 steps */
.install-bar {
  position: relative; z-index: 2; margin-top: 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.install-info { flex: 1 1 280px; }
.install-info h3 { font-family: var(--sans); font-size: 16.5px; margin-bottom: 4px; }
.install-info p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.install-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qr-box {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.qr-box img { width: 68px; height: 68px; border-radius: 6px; }
.qr-box small { display: block; font-size: 11.5px; line-height: 1.35; color: var(--mut); max-width: 110px; }

/* ---------- Closing CTA with Misty Mountain Backdrop ---------- */
.cta-sec {
  position: relative; text-align: center; padding: 92px 0 130px; overflow: hidden;
}
.cta-in { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.cta-in h2 { margin-bottom: 14px; }
.cta-in p { color: var(--ink-2); margin: 0 0 28px; font-size: 16px; }
.cta-mtn {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 290px;
  object-fit: cover; object-position: bottom center;
  mix-blend-mode: multiply; opacity: 0.72; pointer-events: none; z-index: 1;
  filter: brightness(1.06) contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 84%, transparent 100%);
}

/* ---------- Footer ---------- */
footer {
  padding: 28px 0 44px; text-align: center;
  background: var(--paper);
}
.ft-brand { justify-content: center; margin-bottom: 10px; }
.ft-tag { margin: 0 0 14px; font-size: 14px; color: var(--mut); }
.ft-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.ft-links a { text-decoration: none; }
.ft-links a:hover { color: var(--red); }
.ft-cr { font-size: 12px; color: var(--mut); opacity: 0.8; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .sol-grid, .no-box { grid-template-columns: 1fr; gap: 32px; }
  .prob-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .ipad, .ipad.flat { transform: none; }
  .hero { padding: 44px 0 64px; }
  section { padding: 56px 0; }
  .nav-links a:not(.btn) { display: none; }
  .no-box { padding: 26px 22px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .ipad-body { grid-template-columns: 1fr; }
  .ipad-vid { display: none; }
  .mzg { width: 112px; height: 112px; font-size: 74px; }
}
