/* ============================================================
   SuperCNS — supercns2.sinogenomics.com
   Design system v3 — "paper & rule" (light, editorial, Swiss).

   Deliberately unlike both predecessors:
     · v1 supercns.com : cold white, #f06018 orange, rounded cards,
                         drop shadows, centered hero, Inter.
     · v2 (discarded)  : dark canvas, glows, gradient text, pills.
     · v3 (this)       : warm paper, deep teal, square corners,
                         zero shadows, hairline rules instead of
                         cards, oversized ghost numerals, strict
                         left-aligned grid, neutral grotesque type.

   Accent is lifted from the brand mark's own icon gradient
   (logo.svg ends on teal #0d9488) — coherent with the logo,
   unrelated to the old orange.
   No external font/asset requests (China-friendly, zero CDN).
   ============================================================ */

:root {
  /* paper */
  --paper:    #faf8f3;   /* warm off-white canvas */
  --paper-2:  #f2eee5;   /* banded section */
  --white:    #ffffff;

  /* ink — every value below clears WCAG AA (4.5:1) on BOTH --paper and --paper-2,
     because all of them are used for small text somewhere. */
  --ink:      #15181b;   /* 16.8:1 */
  --ink-2:    #3f464d;   /*  9.0:1 */
  --ink-3:    #5c636a;   /*  5.7:1 / 5.3:1 */
  --ink-4:    #616970;   /*  5.3:1 / 4.8:1 */
  --hint:     #7b828a;   /* placeholders only — every field has a visible <label> */

  /* rules */
  --rule:     #e4dfd4;
  --rule-2:   #cec8ba;

  /* accent — from logo.svg icon gradient (#4f46e5 → #0ea5e9 → #0d9488) */
  --accent:        #0a6d5f;  /* solid fills + accent text (AA on paper) */
  --accent-deep:   #075247;
  --accent-bright: #0d9488;  /* hairlines, marks, hovers */
  --tint:          #e9f2ef;
  --tint-2:        #d2e5e0;

  --ff: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", sans-serif;

  --wrap: 1200px;
  --head-h: 76px;
  --r: 2px;              /* corners stay crisp, never rounded */
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 24px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}

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

::selection { background: var(--tint-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------------- typography ---------------- */

h1, h2, h3, h4 {
  font-family: var(--ff);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.14;
  margin: 0;
  letter-spacing: -.022em;
}
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.12; }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.32rem); letter-spacing: -.012em; }
h4 { font-size: 1.02rem; letter-spacing: -.008em; }
p  { margin: 0 0 1.05em; }

.lead { font-size: 1.045rem; color: var(--ink-2); max-width: 68ch; }
strong { color: var(--ink); font-weight: 600; }

/* small letterspaced label — the recurring device of this system */
.kicker {
  display: flex; align-items: center; gap: .7rem;
  font-size: .69rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent-bright); flex-shrink: 0; }

/* highlighter rule behind the hero's emphasised words */
.grad-text {
  color: var(--accent-deep);
  background-image: linear-gradient(transparent 64%, var(--tint-2) 64%, var(--tint-2) 94%, transparent 94%);
}

/* ---------------- header ---------------- */

.site-head {
  position: sticky; top: 0; z-index: 60;
  height: var(--head-h);
  display: flex; align-items: center;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-head.is-stuck { border-bottom-color: var(--rule); background: rgba(250, 248, 243, .94); backdrop-filter: saturate(120%) blur(6px); }

.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand .tag {
  font-size: .6rem; font-weight: 700; letter-spacing: .14em;
  color: var(--accent); border: 1px solid var(--tint-2);
  padding: .18rem .38rem; border-radius: var(--r);
}

.nav { display: flex; align-items: center; gap: .1rem; }
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .72rem;
  font-size: .885rem; color: var(--ink-2);
  transition: color .16s;
  white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: .72rem; right: .72rem; bottom: .1rem;
  height: 2px; background: var(--accent-bright);
  transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav-item:hover > .nav-link::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); background: var(--ink); }
.nav-link .caret { width: 9px; height: 9px; opacity: .5; transition: transform .2s; }
.nav-item:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 2px); left: 0;
  min-width: 250px; padding: .45rem;
  background: var(--white);
  border: 1px solid var(--rule); border-radius: var(--r);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: .55rem .7rem; border-radius: var(--r);
  font-size: .87rem; color: var(--ink-2);
  border-left: 2px solid transparent;
  transition: color .14s, background .14s, border-color .14s;
}
.dropdown a:hover { color: var(--accent-deep); background: var(--tint); border-left-color: var(--accent-bright); }

.head-cta { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--rule-2);
  border-radius: var(--r); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 0;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 55;
  background: var(--paper); border-top: 1px solid var(--rule);
  padding: 1rem 0 3rem; overflow-y: auto;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.drawer.is-open { transform: translateX(0); }
.drawer-group { border-bottom: 1px solid var(--rule); }
.drawer-top {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 0; background: none; border: 0; cursor: pointer;
  color: var(--ink); font: inherit; font-size: 1rem; font-weight: 600; text-align: left;
}
.drawer-top .caret { width: 11px; transition: transform .22s; opacity: .5; }
.drawer-top[aria-expanded="true"] .caret { transform: rotate(180deg); }
.drawer-sub { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.drawer-sub a { display: block; padding: .55rem 0 .55rem 1rem; color: var(--ink-2); font-size: .92rem; border-left: 1px solid var(--rule-2); }
.drawer-sub a:hover { color: var(--accent); border-left-color: var(--accent-bright); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .84rem 1.7rem; border-radius: var(--r);
  font-size: .885rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: .55rem 1.1rem; font-size: .83rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .875rem; font-weight: 600; color: var(--ink);
  padding-bottom: 2px; border-bottom: 1px solid var(--rule-2);
  transition: color .18s, border-color .18s;
}
.arrow-link:hover { color: var(--accent); border-bottom-color: var(--accent-bright); }
.arrow-link span { transition: transform .2s; }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------------- sections ---------------- */

.section { padding: clamp(4.5rem, 8vw, 7rem) 0; border-top: 1px solid var(--rule); }
.section-alt { background: var(--paper-2); }

/* editorial masthead: ghost numeral + label | title + lead */
.sec-head {
  display: grid; grid-template-columns: 210px 1fr; gap: 3.5rem;
  margin-bottom: 3.4rem;
}
.sec-mark { position: relative; padding-top: .1rem; }
.sec-num {
  display: block;
  font-size: 4.6rem; line-height: .85; font-weight: 700;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule-2);
  user-select: none;
}
.sec-label {
  display: block; margin-top: .9rem;
  font-size: .69rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-4);
}
.sec-body h2 { margin-bottom: 1rem; max-width: 22ch; }
.sec-body > p { color: var(--ink-2); margin: 0; max-width: 66ch; }

.sec-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 1.4rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.sec-head.center .kicker { justify-content: center; }
.sec-head.center .sec-body h2 { max-width: none; }
.sec-head.center .sec-body > p { margin-left: auto; margin-right: auto; }

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

.hero { padding: clamp(4rem, 8vw, 6.5rem) 0 0; }
.hero-inner { max-width: 1000px; }
.hero h1 { margin-bottom: 1.9rem; max-width: 15ch; }
.hero .lead { font-size: clamp(1.02rem, 1.3vw, 1.16rem); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.6rem; }

.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 4.5rem; border-top: 2px solid var(--ink);
}
.hero-meta > div { padding: 1.5rem 1.6rem 1.6rem 0; border-right: 1px solid var(--rule); }
.hero-meta > div:last-child { border-right: 0; }
.hero-meta > div + div { padding-left: 1.6rem; }
.hero-meta .n { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.2; }
.hero-meta .l { font-size: .8rem; color: var(--ink-3); margin-top: .3rem; }

/* inner page hero */
.page-hero { padding: clamp(3.2rem, 6vw, 5rem) 0 clamp(2.4rem, 4vw, 3.4rem); }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.4rem; }
.crumb { font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--ink-4); margin-bottom: 1.5rem; text-transform: uppercase; }
.crumb a:hover { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip {
  font-size: .74rem; font-weight: 500; letter-spacing: .04em;
  padding: .36rem .8rem; border-radius: var(--r);
  border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--white);
}

/* ---------------- grids: newspaper columns, not cards ---------------- */

.grid { display: grid; gap: 2.6rem 2.4rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* columns are separated by a rule at the top, no boxes at all */
.grid > .card {
  padding: 1.5rem 0 0;
  background: none; border: 0;
  border-top: 2px solid var(--ink);
  transition: border-top-color .22s;
}
.grid > .card:hover { border-top-color: var(--accent-bright); }
.grid > .card h3 { margin-bottom: .75rem; }
.grid > .card p { color: var(--ink-2); font-size: .93rem; margin-bottom: 0; }
.grid > .card p + .arrow-link { margin-top: 1.4rem; }

.card-num {
  display: block; margin-bottom: 1rem;
  font-size: .69rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-4);
}

/* a standalone .card (direct child of .wrap) is a tinted callout block */
.wrap > .card {
  background: var(--tint);
  border: 1px solid var(--tint-2);
  border-left: 3px solid var(--accent-bright);
  border-radius: var(--r);
}
.wrap > .card h3 { margin-bottom: .5rem; }

/* news */
.news-card { display: flex; flex-direction: column; }
.news-meta { font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--ink-4); margin-bottom: 1rem; text-transform: uppercase; }
.news-meta b { color: var(--accent); font-weight: 700; }
.grid > .news-card h3 { font-size: 1.1rem; margin-bottom: .7rem; line-height: 1.4; }

/* ---------------- numbered steps: ruled rows ---------------- */

.steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.steps li {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.4rem; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid var(--rule);
  transition: background .18s;
}
.steps li:hover { background: rgba(255, 255, 255, .55); }
/* --accent, not --accent-bright: this numeral is text, and #0d9488 only
   reaches 3.5:1 on paper — fine for a rule, not for a glyph. */
.steps li .i {
  font-size: 1.05rem; font-weight: 700; color: var(--accent);
  letter-spacing: -.02em;
}
.steps li p { margin: 0; color: var(--ink-2); font-size: .945rem; }
.steps li strong { color: var(--ink); font-weight: 600; }

/* ---------------- bullets ---------------- */

.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .75rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: var(--ink-2); font-size: .945rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 9px; height: 2px; background: var(--accent-bright);
}

/* ---------------- tables: hairline, no fills ---------------- */

.tbl { overflow-x: auto; margin: 2rem 0; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; min-width: 580px; }
thead th {
  text-align: left; padding: .9rem 1.4rem .9rem 0;
  font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--rule-2);
  white-space: nowrap; vertical-align: bottom;
}
tbody td { padding: 1.05rem 1.4rem 1.05rem 0; font-size: .92rem; color: var(--ink-2); border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:hover td { background: rgba(255, 255, 255, .6); }
tbody td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tbl-note { font-size: .84rem; color: var(--ink-3); margin-top: -.6rem; }

/* ---------------- pricing: three ruled columns ---------------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; border-top: 1px solid var(--rule); }
.plan {
  position: relative; padding: 2.4rem 2rem;
  border-left: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.plan:last-child { border-right: 1px solid var(--rule); }
.plan.featured { background: var(--white); border-top: 3px solid var(--accent); margin-top: -1px; }

.plan-badge {
  display: inline-block; align-self: flex-start;
  font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: .22rem .6rem; border-radius: var(--r); margin-bottom: .9rem;
}
.plan-name { font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-bottom: .5rem; }
.plan-desc { font-size: .87rem; color: var(--ink-3); min-height: 3.2em; margin-bottom: 1.6rem; }
.plan-price { display: flex; align-items: baseline; gap: .4rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.6rem; }
.plan-price .amt { font-size: 2.1rem; font-weight: 700; color: var(--ink); letter-spacing: -.045em; }
.plan.featured .plan-price .amt { color: var(--accent-deep); }
.plan-price .per { font-size: .84rem; color: var(--ink-3); }
.plan .ticks { flex: 1; margin-bottom: 2rem; }
.plan .ticks li { font-size: .885rem; }
.plan .btn { width: 100%; }

/* ---------------- stats ---------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.stat { padding: 2.2rem 1.6rem 2.2rem 0; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 1.6rem; }
.stat .n {
  display: block; line-height: 1.05;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700;
  color: var(--ink); letter-spacing: -.045em;
}
.stat .n .suf { font-size: .5em; color: var(--accent); font-weight: 600; letter-spacing: 0; margin-left: .1em; }
.stat .l { font-size: .82rem; color: var(--ink-3); margin-top: .75rem; }

/* ---------------- timeline ---------------- */

.timeline { position: relative; padding-left: 2.2rem; border-left: 1px solid var(--rule-2); }
.tl-item { position: relative; padding-bottom: 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-2.2rem - 1px); top: .6rem;
  width: 9px; height: 9px; background: var(--paper);
  border: 2px solid var(--accent-bright); transform: translateX(-4px);
}
.tl-year { font-size: .69rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.tl-item h4 { margin-bottom: .45rem; }
.tl-item p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* ---------------- contact ---------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-item { display: flex; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.contact-item:first-child { border-top: 2px solid var(--ink); }
.contact-item .ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r);
  border: 1px solid var(--tint-2); display: grid; place-items: center;
  background: var(--tint); color: var(--accent); font-size: 1rem;
}
.contact-item .k { font-size: .68rem; font-weight: 600; letter-spacing: .15em; color: var(--ink-4); text-transform: uppercase; }
.contact-item .v { color: var(--ink); margin-top: .25rem; font-size: 1rem; font-weight: 500; }
.contact-item .v a:hover { color: var(--accent); }
.contact-item .v small { display: block; color: var(--ink-3); font-size: .82rem; font-weight: 400; margin-top: .2rem; }

.form { padding: 2.2rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem; font: inherit; font-size: .92rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r);
  transition: border-color .18s, background .18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--hint); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent-bright); background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--ink-3); margin: 1rem 0 0; }

/* ---------------- footer ---------------- */

.site-foot { border-top: 2px solid var(--ink); padding: 4rem 0 2rem; background: var(--paper-2); }
.foot-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3.4rem; }
.foot-brand img { height: 30px; margin-bottom: 1.3rem; }
.foot-brand p { font-size: .875rem; color: var(--ink-3); max-width: 36ch; }
.foot-col h4 { font-size: .69rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 1.2rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .62rem; }
.foot-col a, .foot-col li { font-size: .875rem; color: var(--ink-3); }
.foot-col a:hover { color: var(--accent); }
.foot-bot { padding-top: 2rem; border-top: 1px solid var(--rule-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.foot-bot p { margin: 0; font-size: .8rem; color: var(--ink-4); }
.foot-bot .links { display: flex; gap: 1.6rem; font-size: .8rem; color: var(--ink-4); }
.foot-bot .links a:hover { color: var(--accent); }

/* ---------------- reveal ---------------- */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

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

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

@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: flex; }
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .sec-head { grid-template-columns: 1fr; gap: 1.6rem; }
  .sec-num { font-size: 3.4rem; }
  .sec-label { margin-top: .4rem; }
  .plans { grid-template-columns: 1fr; border-top: 0; max-width: 520px; margin: 0 auto; }
  .plan { border-left: 0; border-top: 1px solid var(--rule); }
  .plan:last-child { border-right: 0; border-bottom: 1px solid var(--rule); }
  .plan.featured { order: -1; border-top: 3px solid var(--accent); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .foot-brand { grid-column: 1 / -1; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta > div:nth-child(2) { border-right: 0; }
  .hero-meta > div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); }
  .hero-meta > div:nth-child(4) { border-top: 1px solid var(--rule); }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .wrap { padding: 0 20px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; gap: 2.2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-right: 1rem; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--rule); }
  .stat:nth-child(odd) { padding-left: 0; }
  .hero-meta > div { padding-right: 1rem; }
  .section { padding: 4rem 0; }
  .steps li { grid-template-columns: 2.4rem 1fr; gap: 1rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bot { flex-direction: column; }
  .contact-grid { gap: 2rem; }
  .form { padding: 1.5rem; }
}
