:root {
  color-scheme: light;
  --white: #fff;
  --mist: #f5f5f7;
  --paper: #fafafc;
  --ink: #1d1d1f;
  --slate: #707070;
  --silver: #d6d6d6;
  --control: #e6e6e8;
  --steel: #86868b;
  --blue: #0066cc;
  --action: #0071e3;
  --action-hover: #0077ed;
  --radius: 28px;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --shell: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.5 var(--text);
  letter-spacing: -.015em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }

.shell { width: min(var(--shell), calc(100% - 80px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--action);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--control);
}

.header-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 19px/1.2 var(--display);
  letter-spacing: -.025em;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.header-inner nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.header-inner nav a:hover { color: var(--blue); }
.header-inner .button { justify-self: end; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--action);
  color: var(--white);
  font: 400 15px/1.25 var(--text);
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover { background: var(--action-hover); }
.button-small { padding: 7px 14px; font-size: 12px; }
.button-outline { color: var(--blue); background: transparent; border-color: var(--blue); }
.button-outline:hover { color: var(--white); background: var(--blue); }
.button .icon { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: 15px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 15px; height: 15px; }

.hero {
  background: var(--white);
  padding: 61px 0 58px;
  text-align: center;
}

.hero-product { font: 600 21px/1.2 var(--display); margin-bottom: 12px; }
.hero h1 {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero h1 span { white-space: nowrap; }

.hero-lede {
  margin: 19px auto 0;
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--slate);
  text-wrap: balance;
}

.hero-media { margin: 45px auto 31px; width: min(100%, 724px); }
.hero-media img {
  object-fit: contain;
  clip-path: polygon(0 0, 100% 0, 100% 86.4%, 92.4% 86.4%, 87.5% 100%, 12.5% 100%, 7.6% 86.4%, 0 86.4%);
}
.hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 23px; }
.hero-price { font-size: 15px; color: var(--ink); font-weight: 500; }
.hero-price span { color: var(--slate); font-weight: 400; }
.section { padding: 86px 0; }
.plans, .faq, .site-footer { background: var(--mist); }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(33px, 4.2vw, 52px); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p { margin-top: 12px; color: var(--slate); font-size: 17px; }
.plans-heading { display: flex; justify-content: space-between; align-items: end; gap: 26px; }

.period { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--silver);
  border-radius: 999px;
}

.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span {
  display: block;
  min-width: 64px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--slate);
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

.segmented small { font-size: 11px; margin-left: 2px; }
.segmented input:checked + span { color: var(--white); background: var(--ink); }
.segmented input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan-card {
  position: relative;
  padding: 34px;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--white);
}
.plan-icon { position: absolute; right: 32px; top: 33px; width: 35px; height: 35px; color: #525256; }
.plan-card h3 { font-size: 32px; line-height: 1.12; letter-spacing: -.03em; padding-right: 45px; }
.plan-purpose { margin-top: 12px; }
.plan-spec { margin-top: 5px; color: var(--slate); font-size: 15px; }
.plan-bottom { display: flex; gap: 12px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-top: 32px; }
.price { white-space: nowrap; }
.price strong { display: inline-block; font: 600 46px/.98 var(--display); letter-spacing: -.05em; }
.price span { font-size: 15px; color: var(--slate); }
.plan-note { margin: 18px 4px 0; color: var(--slate); font-size: 13px; }

.editorial { padding-bottom: 45px; }
.editorial-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: 40px;
}
.editorial .section-heading { margin: 0; }
.editorial .section-heading p { max-width: 340px; margin-top: 19px; }
.editorial img { border-radius: var(--radius); }
.editorial + .process { padding-top: 46px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 39px 0 0;
  padding: 0;
  list-style: none;
}

.steps li { position: relative; min-width: 0; }
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 23px;
  left: 62px;
  right: 0;
  height: 1px;
  background: var(--control);
}

.step-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid var(--silver);
  border-radius: 50%;
  background: var(--white);
}
.step-icon .icon { width: 22px; height: 22px; }
.steps h3 { margin-top: 15px; font-size: 21px; }
.steps p { margin-top: 5px; color: var(--slate); font-size: 15px; }

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.faq-column { border-top: 1px solid var(--silver); }
.faq details { border-bottom: 1px solid var(--silver); }
.faq summary {
  min-height: 61px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 2px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 17px; height: 17px; color: var(--slate); transition: transform 160ms ease; }
.faq details[open] .icon { transform: rotate(180deg); }
.faq details p { padding: 0 26px 18px 2px; color: var(--slate); font-size: 15px; }

.footer-inner {
  border-top: 1px solid var(--silver);
  padding-block: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-inner .brand { font-size: 16px; }
.footer-inner .brand-mark { width: 24px; height: 24px; }
.credit { display: block; margin-top: 8px; font-size: 12px; color: var(--slate); }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

.application {
  width: min(100% - 32px, 580px);
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}
.application::backdrop { background: rgb(29 29 31 / 40%); }
.dialog-inner { position: relative; padding: 32px; }
.application h2 { font-size: 32px; line-height: 1.1; padding: 0 34px 0 0; }
.close-form { position: absolute; top: 22px; right: 22px; }
.icon-button {
  display: grid;
  place-items: center;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
}
.icon-button:hover { background: var(--control); }
#application-form { display: grid; gap: 14px; margin-top: 24px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#application-form label { display: block; font-size: 14px; font-weight: 500; min-width: 0; }
#application-form input, #application-form select, #application-form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--steel);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
#application-form textarea { resize: vertical; min-height: 72px; }
.optional { margin-left: 4px; font-size: 12px; color: var(--slate); font-weight: 400; }
.application-quote { padding: 9px 13px; border-radius: 10px; background: var(--mist); font-size: 13px; }
.form-note { font-size: 13px; color: var(--slate); }
.form-submit { justify-self: start; }
.application-result { margin-top: 24px; }
.application-result h3 { margin-top: 11px; font-size: 24px; }
.application-result p { margin-top: 8px; color: var(--slate); font-size: 15px; }
.application-result .result-summary { color: var(--ink); font-weight: 600; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

@media (max-width: 820px) {
  .shell { width: calc(100% - 52px); }
  .header-inner { gap: 15px; }
  .header-inner nav { gap: 18px; }
  .section { padding-block: 69px; }
  .plan-card { padding: 27px; }
  .plan-icon { top: 27px; right: 25px; }
  .steps { gap: 18px; }
  .editorial { padding-bottom: 34px; }
  .editorial-inner { gap: 24px; }
  .editorial + .process { padding-top: 34px; }
}

@media (max-width: 610px) {
  html { scroll-padding-top: 64px; }
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 52px; }
  .header-inner nav { display: none; }
  .header-inner .brand { font-size: 17px; }
  .hero { padding-block: 48px 43px; }
  .hero-product { margin-bottom: 10px; font-size: 18px; }
  .hero h1 { font-size: clamp(32px, 8.8vw, 48px); line-height: 1.12; }
  .hero-lede { margin-top: 14px; }
  .hero-media { margin: 30px auto 22px; }
  .hero-actions { gap: 12px 16px; }
  .hero-price { flex-basis: 100%; }
  .section { padding-block: 52px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading p { margin-top: 8px; font-size: 15px; }
  .plans-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .plan-grid, .faq-grid { grid-template-columns: 1fr; gap: 14px; }
  .plan-card { padding: 26px; }
  .plan-card h3 { font-size: 29px; }
  .plan-bottom { margin-top: 26px; }
  .price strong { font-size: 39px; }
  .editorial-inner { grid-template-columns: 1fr; }
  .editorial .section-heading p { margin-top: 12px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 17px; margin-top: 25px; }
  .steps li:nth-child(2)::after { display: none; }
  .steps h3 { margin-top: 9px; font-size: 20px; }
  .steps p { font-size: 14px; }
  .faq-grid { gap: 0; }
  .faq-column + .faq-column { border-top: 0; }
  .faq summary { min-height: 55px; font-size: 16px; }
  .dialog-inner { padding: 24px; }
  .close-form { top: 17px; right: 17px; }
}

@media (max-width: 360px) {
  .plan-card { padding: 22px; }
  .plan-bottom .button { padding-inline: 12px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
