/* =========================================================
   Craft — common stylesheet (design foundation)
   Based on the style guide in assets/logo_images.png
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --c-primary:        #2563eb;   /* royal blue */
  --c-primary-dark:   #1d4ed8;
  --c-primary-soft:   #eaf1ff;   /* light-blue pill / tint */
  --c-bg-tint:        #f4f8ff;   /* section background */

  /* Ink */
  --c-logo:           #1e2a4a;   /* serif wordmark */
  --c-heading:        #1f2a44;
  --c-text:           #4b5670;
  --c-muted:          #5d6a86;   /* darkened for WCAG AA (≈5.4:1 on white) */

  /* Surface */
  --c-white:          #ffffff;
  --c-border:         #d2dbe8;   /* general hairlines (header/footer) */
  --c-border-strong:  #b3c0d8;   /* cards & boxes — more visible */
  --c-border-tint:    #c4d3f3;   /* blue notice boxes (.demo-note / .form-status / .assure) */

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(20, 40, 90, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 40, 90, 0.08);

  /* Shape */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1140px;
  --gutter: 24px;

  /* Type */
  --font-sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
               "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--c-heading);
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;   /* avoid lonely words / awkward heading wraps */
}

/* Tidy paragraph wrapping (no single-character orphan lines) */
.hero p, .page-head p, .section-head p,
.plan-desc, .feature p, .card p, .work-card p,
.cta-band-body p, .info-item p {
  text-wrap: pretty;
}

/* Wrapping helpers — keep a phrase together as one unit */
.phrase { display: inline-block; }

/* Screen-reader-only (visually hidden but exposed to assistive tech) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 84px 0; }
.section--tint { background: var(--c-bg-tint); }

/* Section heading with blue underline accent (style-guide style) */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  display: inline-block;
  padding-bottom: 14px;
  position: relative;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-primary);
}
.section-head p {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--c-muted);
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .05s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { background: var(--c-primary-dark); }

.btn-secondary {
  background: #fff;
  color: var(--c-primary);
  border-color: #cdd9f5;
}
.btn-secondary:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }

.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-logo);
  letter-spacing: .5px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 28px;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-heading);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--c-primary);
  transition: width .2s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--c-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--c-heading);
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header-cta { margin-left: 4px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--c-bg-tint) 0%, #ffffff 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-eyebrow {
  color: var(--c-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
}
.hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  margin: 14px 0 20px;
}
.hero p {
  font-size: 1.02rem;
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(20, 40, 90, 0.14));
}

/* ---------- Card grid ---------- */
.cards {
  display: grid;
  gap: 24px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 30px; height: 30px; stroke: var(--c-primary); }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: 0.92rem; margin: 0; color: var(--c-text); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #eaf1ff 0%, #f4f8ff 100%);
}
.cta-band .container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.cta-band-illust { width: 160px; flex-shrink: 0; }
.cta-band-body { flex: 1; }
.cta-band-body h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  margin-bottom: 8px;
}
.cta-band-body p { margin: 0; color: var(--c-muted); font-size: 0.95rem; }
.cta-band-action { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-bg-tint);
  border-top: 1px solid var(--c-border);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.site-footer .brand { font-size: 1.4rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; color: var(--c-text); transition: color .2s; }
.footer-nav a:hover { color: var(--c-primary); }
.footer-copy { width: 100%; text-align: center; color: var(--c-muted);
  font-size: 0.8rem; border-top: 1px solid var(--c-border); padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section { padding: 60px 0; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 14px 24px; }
  .nav a::after { display: none; }
  .header-cta {
    display: inline-flex;
    margin-left: auto;
    margin-right: 10px;
    padding: 9px 16px;
    font-size: 0.85rem;
    box-shadow: none;
  }

  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero p { margin-inline: auto; }
  .hero-visual { order: -1; }

  .cards--3 { grid-template-columns: 1fr; }

  .cta-band .container { flex-direction: column; text-align: center; }
  .cta-band-illust { width: 130px; }
}

@media (max-width: 520px) {
  :root { --gutter: 18px; }
}

/* =========================================================
   Page components
   ========================================================= */

/* ---------- Sub-page header ---------- */
.page-head {
  background: linear-gradient(180deg, var(--c-bg-tint) 0%, #ffffff 100%);
  text-align: center;
  padding: 56px 0 50px;
}
.page-head .breadcrumb { font-size: 0.78rem; color: var(--c-muted); margin-bottom: 14px; }
.page-head .breadcrumb a { transition: color .2s; }
.page-head .breadcrumb a:hover { color: var(--c-primary); }
.page-head h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: 16px; }
.page-head p { color: var(--c-text); max-width: 640px; margin: 0 auto; font-size: 0.98rem; }

/* ---------- Feature grid (対応できること / オプション) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.feature { text-align: left; }
.feature .card-icon { margin-bottom: 16px; }
.feature h3, .feature h4 { font-size: 1rem; margin-bottom: 8px; color: var(--c-heading); }
.feature p { font-size: 0.86rem; margin: 0; color: var(--c-text); }
.feature .price { display: block; margin-top: 10px; color: var(--c-primary); font-weight: 700; }

/* ---------- Flow (制作の流れ) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.flow-step { text-align: center; position: relative; }
.flow-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
  display: grid; place-items: center; margin: 0 auto 16px;
}
.flow-icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: var(--c-primary-soft);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.flow-icon svg { width: 30px; height: 30px; stroke: var(--c-primary); }
.flow-step h3, .flow-step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.flow-step p { font-size: 0.82rem; color: var(--c-muted); margin: 0; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 14px; right: -9px;
  width: 11px; height: 11px;
  border-top: 2px solid #aab8d4; border-right: 2px solid #aab8d4;
  transform: rotate(45deg);
}
/* Chevron-mark variant (no step numbers): › in a row, ⌄ when stacked */
.flow--arrow .flow-step:not(:last-child)::after {
  content: ""; width: 13px; height: 13px;
  border-top: 2.5px solid #8e9fc2; border-right: 2.5px solid #8e9fc2;
  top: 23px; right: -11px; transform: rotate(45deg);
}
@media (max-width: 860px) {
  .flow--arrow .flow-step:not(:last-child)::after {
    top: auto; bottom: -16px; left: 0; right: 0; margin-inline: auto;
    transform: rotate(135deg);
  }
}
/* お問い合わせの流れ (.flow--4 = number + icon): center chevron on the icon row, desktop only */
@media (min-width: 861px) {
  .flow--4 .flow-step:not(:last-child)::after { top: 80px; }
}

/* ---------- FAQ accordion ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; align-items: start; }
.faq-item {
  border: 1.5px solid var(--c-border-strong); border-radius: var(--radius-sm);
  background: #fff; overflow: hidden; transition: border-color .2s;
}
.faq-item.open { border-color: var(--c-primary); }
.faq-item:not(.open):hover { border-color: var(--c-primary); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; font: inherit;
  font-weight: 700; color: var(--c-heading); cursor: pointer;
  padding: 18px 20px; display: flex; align-items: center; gap: 12px;
}
.faq-q .q-badge { color: var(--c-primary); font-family: var(--font-serif); font-weight: 700; }
.faq-q .chev {
  margin-left: auto; flex-shrink: 0; width: 16px; height: 16px;
  border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary);
  transform: rotate(45deg); transition: transform .25s; margin-bottom: 4px;
}
.faq-item.open .faq-q .chev { transform: rotate(-135deg); margin-bottom: -4px; }
/* Progressive enhancement: answers stay open without JS; the .js class
   (set by an inline script in <head>) enables the collapse/expand behavior. */
.faq-a { overflow: hidden; }
.js .faq-a { max-height: 0; transition: max-height .3s ease; }
.js .faq-item.open .faq-a { max-height: 260px; }
html:not(.js) .faq-q .chev { display: none; }
.faq-a-inner { padding: 0 20px 18px 46px; font-size: 0.9rem; color: var(--c-text); }

/* ---------- Pricing plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--c-border-strong); border-radius: var(--radius);
  padding: 34px 26px; text-align: center; position: relative; box-shadow: var(--shadow-sm);
}
.plan--featured { border: 2px solid var(--c-primary); box-shadow: 0 16px 44px rgba(37, 99, 235, 0.18); }
.plan { transition: transform .2s, box-shadow .2s, border-color .2s; }
.plan:not(.plan--featured):hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.plan--featured:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(37, 99, 235, 0.22); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--c-primary); color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 6px 20px; border-radius: var(--radius-pill); white-space: nowrap;
}
.plan-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--c-primary-soft);
  display: grid; place-items: center; margin: 0 auto 16px; }
.plan-icon svg { width: 28px; height: 28px; stroke: var(--c-primary); }
.plan h3 { font-size: 1.2rem; margin-bottom: 10px; }
.plan-desc { font-size: 0.84rem; color: var(--c-muted); margin: 0 auto 18px; min-height: 2.8em; }
.plan-tag {
  display: inline-block; background: var(--c-primary-soft); color: var(--c-primary-dark);
  font-size: 0.76rem; font-weight: 700; padding: 3px 12px; border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.plan-price { font-size: 2rem; font-weight: 700; color: var(--c-heading); line-height: 1.2; }
.plan-price .unit { font-size: 1rem; font-weight: 700; }
.plan-tax { font-size: 0.76rem; color: var(--c-muted); margin-bottom: 18px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.plan .btn { margin-top: auto; width: 100%; }   /* push buttons to the bottom edge so they line up */
.plan-features li { position: relative; padding: 9px 0 9px 26px; font-size: 0.88rem;
  border-bottom: 1px dashed var(--c-border); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; top: 9px;
  color: var(--c-primary); font-weight: 700; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--c-border-strong); border-radius: var(--radius); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff;
  font-size: 0.9rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--c-border);
  text-align: center; }
.compare thead th { background: var(--c-primary-soft); color: var(--c-heading); font-size: 0.9rem; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--c-text); background: #fbfcff; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--c-primary); font-weight: 700; font-size: 1.05rem; }
.compare .opt { color: var(--c-muted); font-size: 0.82rem; }
.compare .no { color: var(--c-muted); }

/* ---------- Works filter + grid ---------- */
.filter { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.filter button {
  font: inherit; font-weight: 500; font-size: 0.9rem; padding: 9px 24px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--c-border-strong);
  background: #fff; color: var(--c-text); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.filter button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter button.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card {
  background: #fff; border: 1.5px solid var(--c-border-strong); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.work-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }
.work-body { padding: 18px 20px 22px; flex: 1; }
.work-tag { display: inline-block; background: var(--c-primary-soft); color: var(--c-primary-dark);
  font-size: 0.76rem; font-weight: 700; padding: 3px 12px; border-radius: var(--radius-pill);
  margin-bottom: 10px; }
.work-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.work-card p { font-size: 0.85rem; margin: 0; color: var(--c-text); }
.work-more { display: inline-block; margin-top: 14px; color: var(--c-primary);
  font-weight: 700; font-size: 0.85rem; transition: color .2s; }
.demo-note { background: var(--c-primary-soft); border: 1.5px solid var(--c-border-tint);
  color: var(--c-heading); border-radius: var(--radius-sm); padding: 13px 18px;
  font-size: 0.88rem; line-height: 1.7; text-align: center; margin-bottom: 30px; }
.work-card:hover .work-more { color: var(--c-primary-dark); }
.work-card[hidden] { display: none; }

/* ---------- Industries (対応業種) ---------- */
.industries { display: flex; flex-wrap: wrap; justify-content: center;
  column-gap: 16px; row-gap: 0; margin-bottom: -16px; }
.industry { width: 120px; margin-bottom: 16px; text-align: center; background: #fff;
  border: 1.5px solid var(--c-border-strong); border-radius: var(--radius-sm);
  padding: 20px 8px; font-size: 0.82rem; font-weight: 500; color: var(--c-heading); }

/* Force 7 / 4-3 / 3-2-2 rows (each centered, no orphan) via line-break helpers */
.industries .brk { display: none; flex: 0 0 100%; width: 100%; height: 0; margin: 0; }
@media (min-width: 641px) and (max-width: 1000px) {
  .industries .brk-medium { display: block; }       /* 4 + 3 */
}
@media (max-width: 640px) {
  .industries .brk-narrow { display: block; }        /* 3 + 2 + 2 */
  .industry { width: calc((100% - 32px) / 3); }      /* exactly 3 fit a row */
}
.industry .ind-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--c-primary-soft);
  display: grid; place-items: center; margin: 0 auto 10px; }
.industry .ind-icon svg { width: 24px; height: 24px; stroke: var(--c-primary); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: start; }
.form-card { background: #fff; border: 1.5px solid var(--c-border-strong); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm); }
.form-card > p.lead { margin: -6px 0 22px; font-size: 0.9rem; color: var(--c-muted); }
.field { margin-bottom: 20px; }
.field label { display: flex; align-items: center; font-weight: 700; font-size: 0.9rem;
  color: var(--c-heading); margin-bottom: 8px; }
.tag-req, .tag-opt { font-size: 0.66rem; font-weight: 700; padding: 2px 8px; border-radius: 5px; margin-left: 8px; }
.tag-req { background: var(--c-primary); color: #fff; }
.tag-opt { background: #e6ebf3; color: #41506b; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; padding: 12px 14px;
  border: 1.5px solid #8290ad; /* 入力欄境界: #fbfcff 比 3.13:1 (WCAG 1.4.11) */ border-radius: var(--radius-sm);
  background: #fbfcff; color: var(--c-heading);
}
.field input::placeholder, .field textarea::placeholder { color: #6b7488; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--c-primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem;
  margin: 4px 0 20px; color: var(--c-text); }
.form-check input { margin-top: 4px; }
.form-card .btn { width: 100%; }
.form-note { font-size: 0.78rem; color: var(--c-muted); text-align: center; margin: 14px 0 0; }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--c-primary-soft); border: 1.5px solid var(--c-border-tint); color: var(--c-heading);
  font-size: 0.88rem; line-height: 1.7; }
.form-status:empty { padding: 0; border: 0; margin: 0; }
.form-status.is-success { background: #e9f7ef; border-color: #b7e3c8; color: #1b5e36; }
.form-status.is-error   { background: #fdecec; border-color: #f3c0c0; color: #b3261e; }

.info-list { margin: 0 0 8px; }
.info-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.info-item:first-child { padding-top: 0; }
.info-item .ii-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--c-primary-soft);
  display: grid; place-items: center; flex-shrink: 0; }
.info-item .ii-icon svg { width: 24px; height: 24px; stroke: var(--c-primary); }
.info-item h3, .info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.info-item p { margin: 0; font-size: 0.84rem; color: var(--c-text); }

.assure { background: var(--c-bg-tint); border: 1.5px solid var(--c-border-tint); border-radius: var(--radius);
  padding: 22px 26px; margin-top: 24px; }
.assure h3 { font-size: 1rem; color: var(--c-primary); text-align: center; margin-bottom: 14px; }
.assure ul { list-style: none; padding: 0; margin: 0; }
.assure li { position: relative; padding: 6px 0 6px 28px; font-size: 0.88rem; color: var(--c-heading); }
.assure li::before { content: "✓"; position: absolute; left: 4px; color: var(--c-primary); font-weight: 700; }

/* ---------- Two-column blocks (pricing flow / payment) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1.5px solid var(--c-border-strong); border-radius: var(--radius);
  padding: 30px 30px; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 1.1rem; margin-bottom: 16px; text-align: center; }
.panel p { font-size: 0.9rem; margin: 0; }
.panel .flow { gap: 6px; }
.panel .flow-num { width: 34px; height: 34px; font-size: 0.95rem; margin-bottom: 10px; }
.panel .flow-step h4 { font-size: 0.82rem; }

.subhead { text-align: center; font-size: 1.2rem; margin: 0 0 28px; }

.col-title { display: flex; align-items: center; gap: 12px; font-size: 1.2rem;
  color: var(--c-heading); margin: 0 0 6px; }
.col-title.mb { margin-bottom: 18px; }
.col-title .ti { width: 42px; height: 42px; border-radius: 11px; background: var(--c-primary-soft);
  display: grid; place-items: center; flex-shrink: 0; }
.col-title .ti svg { width: 22px; height: 22px; stroke: var(--c-primary); }

.flow--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 90px 0; }
.error-code { font-family: var(--font-serif); font-weight: 700; color: var(--c-primary);
  font-size: clamp(4rem, 3rem + 8vw, 8rem); line-height: 1; margin: 0 0 8px; }
.error-page h1 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin-bottom: 16px; }
.error-msg { color: var(--c-text); margin: 0 auto 32px; max-width: 480px; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.error-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.error-links a { font-size: 0.92rem; color: var(--c-primary); font-weight: 500; }
.error-links a:hover { text-decoration: underline; }

/* =========================================================
   Accessibility, media, motion
   ========================================================= */

/* <picture> should not affect layout — let the inner <img> lay out directly */
picture { display: contents; }

/* Skip link (keyboard users jump straight to main content) */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--c-primary); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; font-weight: 700; font-size: 0.9rem;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Clear keyboard focus indicator (mouse clicks stay clean via :focus-visible) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, .btn:focus-visible, .filter button:focus-visible,
.faq-q:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}

/* Scroll-reveal — subtle fade + rise as elements enter the viewport */
.reveal { opacity: 0; }
.reveal:not(.in) { will-change: opacity, transform; }
.reveal.in { opacity: 1; animation: reveal-in .6s ease backwards; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(18px); }
}
/* gentle stagger for cards within a row */
.cards .card.reveal:nth-child(2), .features .feature.reveal:nth-child(2),
.work-grid .work-card.reveal:nth-child(2), .plans .plan.reveal:nth-child(2) { animation-delay: .08s; }
.cards .card.reveal:nth-child(3), .features .feature.reveal:nth-child(3),
.work-grid .work-card.reveal:nth-child(3), .plans .plan.reveal:nth-child(3) { animation-delay: .16s; }
.features .feature.reveal:nth-child(4), .work-grid .work-card.reveal:nth-child(4) { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Mobile readability & tap targets */
@media (max-width: 520px) {
  .feature p, .card p, .work-card p, .faq-a-inner, .plan-desc, .info-item p { font-size: 0.9rem; }
  .plan-tax, .breadcrumb, .form-note { font-size: 0.82rem; }
  .filter button { padding: 11px 22px; }      /* larger tap target */
  .nav a { padding: 15px 24px; }
}

/* ---------- Component responsive ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 22px; max-width: 360px; margin-inline: auto; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -16px; right: 50%;
    transform: translateX(50%) rotate(135deg); }
  .faq { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .panel .flow { grid-template-columns: repeat(5, 1fr); }
  .panel .flow-step:not(:last-child)::after { top: 12px; bottom: auto; right: -6px;
    transform: rotate(45deg); }
}
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; gap: 26px; }
  .work-grid { grid-template-columns: 1fr; }
  .panel .flow { grid-template-columns: 1fr; max-width: 280px; }
  .panel .flow-step:not(:last-child)::after { bottom: -12px; top: auto; right: 50%;
    transform: translateX(50%) rotate(135deg); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .skip-link, .nav-toggle,
  .filter, .hero-actions, .form-check, .form-card .btn, .form-status { display: none !important; }
  * { box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .faq-a, .js .faq-a { max-height: none !important; }   /* show every FAQ answer */
  .section, .page-head { padding: 16px 0 !important; }
  a { color: #000; text-decoration: underline; }
}
