/* ============================================================
   GST Point: product page
   ============================================================ */

/* ---------- 01 Hero ---------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-copy { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-copy h1 { margin: 20px 0 20px; }
.hero-copy .lede { max-width: 58ch; margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--ink-3); }
.hero-shot { position: relative; max-width: 1080px; margin: 64px auto 0; }
@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .hero-shot { margin-top: 40px; }
}

/* ---------- Live editor demo (hero) ----------
   Left: an HTML stand-in for the editor, typed into by gst-point.js.
   Right: real invoice renders from the app's InvoiceHtmlPreview. */
.demo { border-radius: 16px; overflow: hidden; background: #F1F1F1; box-shadow: 0 30px 60px -24px rgba(15, 61, 58, .28), 0 0 0 1px rgba(15, 61, 58, .08); text-align: left; }
.demo-chrome { height: 40px; background: #1A1A1A; display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.demo-chrome i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; flex: none; }
.demo-chrome i:nth-child(2) { background: #FEBC2E; } .demo-chrome i:nth-child(3) { background: #28C840; }
.demo-url { margin-left: 14px; height: 26px; padding: 0 12px; border-radius: 7px; background: #2C2C2C; color: #A3A3A3; font-size: .78rem; display: flex; align-items: center; white-space: nowrap; overflow: hidden; min-width: 0; }
.demo-body { display: grid; grid-template-columns: 1fr 1.08fr; min-height: 560px; }

.demo-editor { padding: 20px; display: grid; gap: 12px; align-content: start; color: #303030; font-size: .8rem; }
.ed-title { display: flex; align-items: center; gap: 10px; }
.ed-title b { font-size: 1.15rem; font-weight: 700; color: #1A1A1A; }
.ed-badge { height: 22px; padding: 0 8px; border-radius: 6px; background: #E0F0FF; color: #00527C; font-size: .72rem; font-weight: 600; display: inline-flex; align-items: center; }
.ed-card { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 1px 0 rgba(26, 26, 26, .07), inset 0 0 0 1px rgba(26, 26, 26, .06); }
.ed-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ed-f { display: grid; gap: 4px; }
.ed-f > span:first-child { font-size: .74rem; font-weight: 500; color: #616161; }
.ed-in { position: relative; display: flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid #C9CCCF; background: #FDFDFD; color: #1A1A1A; white-space: nowrap; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ed-in.focus { border-color: #0F766E; box-shadow: 0 0 0 3px rgba(15, 118, 110, .18); }
.ed-in.focus::after { content: ""; width: 1.5px; height: 15px; margin-left: 1px; background: #1A1A1A; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ed-h { display: block; font-size: .86rem; font-weight: 700; color: #1A1A1A; margin-bottom: 8px; }
.ed-row { display: grid; grid-template-columns: 2.4fr .9fr .6fr 1fr .6fr; gap: 6px; margin-top: 6px; }
.ed-row .ed-in { min-height: 28px; font-size: .74rem; padding: 0 8px; }
.ed-head { font-size: .7rem; font-weight: 500; color: #616161; margin-top: 0; }
.ed-totals > div { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px solid #F1F1F1; font-variant-numeric: tabular-nums; }
.ed-totals > div b { font-weight: 600; }
.ed-totals .ed-final { padding-top: 8px; font-size: .95rem; }
.ed-totals .ed-final b { font-weight: 700; font-size: 1.05rem; }
.ed-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ed-btn { height: 30px; padding: 0 12px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #C9CCCF; font-weight: 600; font-size: .78rem; display: inline-flex; align-items: center; }
.ed-btn.dark { background: #303030; color: #fff; box-shadow: none; }

.demo-preview { position: relative; background: #E4E5E7; padding: 52px 24px 24px; display: flex; justify-content: center; overflow: hidden; }
.pv-pill { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); height: 28px; padding: 0 12px; border-radius: 999px; background: #0F3D3A; color: #fff; font-size: .76rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; z-index: 3; }
.pv-pill i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; transition: background .3s; }
.demo.updating .pv-pill i { background: var(--amber); }
.pv-sheet { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1240 / 1330; overflow: hidden; background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .25); align-self: flex-start; }
.pv-img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transition: opacity .7s var(--ease), filter .5s var(--ease); }
.pv-sheet[data-state="intra"] .pv-img.inter, .pv-sheet[data-state="inter"] .pv-img.intra { opacity: 0; }
.demo.updating .pv-img { filter: blur(1.2px) saturate(.6); opacity: .5; }
.demo.updating .pv-sheet[data-state="intra"] .pv-img.inter, .demo.updating .pv-sheet[data-state="inter"] .pv-img.intra { opacity: 0; }
.pv-hi { position: absolute; border: 2px solid var(--teal); background: rgba(15, 118, 110, .08); border-radius: 3px; opacity: 0; transform: scale(.97); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.pv-hi.soft { border-color: var(--amber); background: rgba(245, 158, 11, .1); }
.pv-hi.on { opacity: 1; transform: none; }
.hero-callout { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; width: max-content; max-width: calc(100% - 32px); white-space: normal; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.demo.updating .hero-callout { opacity: 0; transform: translate(-50%, 6px); }

.demo-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; font-size: .88rem; color: var(--ink-3); }
.demo-switch > span { margin-right: 4px; }
.demo-switch .seg { height: 34px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; }
.demo-switch .seg.on { background: var(--ink); color: #fff; box-shadow: none; border-color: var(--ink); }

@media (max-width: 900px) {
  .demo-body { grid-template-columns: 1fr; min-height: 0; }
  .ed-products, .ed-totals, .ed-actions { display: none; }
  .demo-preview { padding: 48px 16px 112px; }
  .pv-sheet { max-width: 520px; aspect-ratio: 1240 / 1200; }
}
@media (max-width: 480px) {
  .demo-editor { padding: 14px; }
  .ed-fields { grid-template-columns: 1fr; }
  .ed-fields .ed-f:nth-child(1), .ed-fields .ed-f:nth-child(2) { display: none; }
  .demo-url { font-size: .7rem; }
}

/* ---------- 02 Proof strip ---------- */
.proof { padding: 72px 0 0; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.proof-grid > div { padding: 24px 20px; display: grid; gap: 2px; align-content: start; }
.proof-grid > div + div { border-left: 1px solid var(--line); }
.proof-grid b { font-weight: 600; font-size: .98rem; }
.proof-grid span { font-size: .88rem; color: var(--ink-3); }
@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > div:nth-child(3) { border-left: 0; }
  .proof-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- 03 Automation flow ---------- */
.flow { position: relative; display: grid; grid-template-columns: 1fr 280px 1fr; gap: 0; align-items: center; min-height: 460px; max-width: 1080px; margin: 0 auto; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.flow-lines { overflow: visible; }
.flow-lines .tracks path { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 5; }
.flow-lines .dot-halo { fill: var(--teal); opacity: .16; }
.flow-lines .dot-core { fill: var(--teal); }
.flow-col { position: relative; z-index: 1; display: grid; gap: 64px; }
.flow-left { justify-items: start; padding-right: 40px; }
.flow-right { justify-items: end; padding-left: 40px; }
.node { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 12px 12px; box-shadow: var(--shadow-sm); width: 100%; max-width: 280px; }
.node b { display: block; font-size: .94rem; font-weight: 600; line-height: 1.3; }
.node span:not(.node-ic) { font-size: .82rem; color: var(--ink-3); }
.node-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--mint-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.node-ic svg { width: 19px; height: 19px; }
.node-ic.shopify { background: var(--canvas-2); color: var(--ink-2); }
.flow-doc { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; }
.doc { width: 260px; height: 340px; overflow: hidden; border-radius: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .5s var(--ease); }
.doc.pulse { box-shadow: 0 0 0 6px rgba(15, 118, 110, .12), var(--shadow); }
.doc img { width: 100%; }
.status { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-sm); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background .3s; }
.status em { font-style: normal; }
.status[data-state="done"] i { background: var(--amber); }
.status[data-state="done"] { color: var(--ink); }

.steps { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 40px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.steps li > span { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.steps b { display: block; font-weight: 600; margin: 4px 0 6px; }
.steps p { color: var(--ink-2); font-size: .95rem; }

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .flow-lines { display: none; }
  .flow-col { gap: 12px; padding: 0 !important; justify-items: center; }
  .node { max-width: 360px; }
  .flow-doc { order: 0; }
  .flow-left { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
}

/* ---------- 04 Features ---------- */
.features { background: var(--canvas-2); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.fcopy { padding: 32px 32px 0; }
.fcopy h3 { font-size: 1.3rem; margin-bottom: 8px; }
.fcopy p { color: var(--ink-2); }
.fcopy .ticks { margin-top: 20px; }
.fimg { padding: 28px 0 0 32px; margin-top: auto; }
.fimg img { width: 100%; max-width: none; }
.fimg.crop { height: 260px; overflow: hidden; }
.fimg.crop img { width: 150%; }
.fcard.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.6fr; align-items: end; }
.fcard.wide .fcopy { padding: 40px; align-self: center; }
.fcard.wide .fimg { padding: 40px 0; overflow: hidden; align-self: center; }
.fcard.wide .fimg img { width: 115%; }
@media (max-width: 900px) {
  .fgrid { grid-template-columns: 1fr; }
  .fcard.wide { grid-template-columns: 1fr; }
  .fcard.wide .fcopy { padding: 28px 24px 0; }
  .fcard.wide .fimg { padding: 24px 0 0 24px; height: auto; }
  .fcard.wide .fimg img { width: 105%; }
  .fcopy { padding: 28px 24px 0; }
  .fimg { padding-left: 24px; }
  .fimg.crop { height: 200px; }
}

.extras { margin-top: 64px; }
.extras h3 { margin-bottom: 24px; }
.xgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
.xgrid li { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.xgrid b { font-weight: 600; font-size: .96rem; }
.xgrid span { font-size: .88rem; color: var(--ink-3); }
.soon-line .badge-soon { background: var(--card); }
.soon-line { margin-top: 32px; display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 900px) { .xgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .xgrid { grid-template-columns: 1fr; } }

/* ---------- 05 Templates ---------- */
.tpl { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.tpl-side { position: sticky; top: 108px; }
.tpl-side h2 { margin-bottom: 16px; }
.tpl-list { display: grid; gap: 6px; margin: 32px 0 24px; }
.tpl-tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.tpl-tab b { font-weight: 600; }
.tpl-tab:hover { border-color: var(--line-2); }
.tpl-tab.active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.tpl-stage { background: var(--canvas-2); border-radius: var(--r-lg); padding: 40px; }
.tpl-img { width: 100%; border-radius: 4px; box-shadow: var(--shadow); background: #fff; transition: opacity .25s; }
.tpl-img.swap { opacity: 0; }
@media (max-width: 900px) {
  .tpl { grid-template-columns: 1fr; gap: 32px; }
  .tpl-side { position: static; }
  .tpl-stage { padding: 16px; }
}

/* ---------- 06 Calculator ---------- */
.calc-section { background: var(--canvas-2); }
.calc { display: grid; grid-template-columns: 1fr 1fr; max-width: 960px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.calc-in { padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.calc-in .field:nth-child(3), .calc-in .field:nth-child(4) { grid-column: 1 / -1; }
.flabel { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.seg-group { display: inline-flex; padding: 4px; gap: 2px; background: var(--canvas-2); border-radius: 12px; }
.calc .seg-group { display: grid; grid-template-columns: repeat(5, 1fr); }
.seg { height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.seg:hover { color: var(--ink); }
.seg.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.calc-out { padding: 32px; background: var(--mint-soft); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.calc-kind { align-self: flex-start; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--card); color: var(--teal); font-size: .78rem; font-weight: 600; display: inline-flex; align-items: center; }
.calc-kind.inter { color: #92400E; background: var(--amber-soft); }
.calc-total { margin: 20px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--mint); }
.calc-total span { display: block; font-size: .88rem; color: var(--ink-2); }
.calc-total b { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.calc-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.calc-row.sub { color: var(--ink-3); font-size: .88rem; }
@media (max-width: 820px) {
  .calc { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .calc-in { grid-template-columns: 1fr; padding: 20px; } .calc-out { padding: 20px; } .seg { padding: 0 6px; } }

/* ---------- 07 Pricing ---------- */
.pc { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; max-width: 1000px; margin: 0 auto 32px; }
.pc-q { flex: 1 1 420px; }
.pc-q label { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 40px; }
.pc-slider { position: relative; }
.pc-slider output { position: absolute; top: -34px; left: var(--pos, 33%); transform: translateX(-50%); height: 26px; padding: 0 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; transition: left .15s; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 0; border-radius: 999px; background: linear-gradient(to right, var(--teal) var(--pos, 33%), var(--line-2) var(--pos, 33%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); box-shadow: var(--shadow-sm); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); }
.pc-ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: .78rem; color: var(--ink-3); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.plan-rec { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .1), var(--shadow); }
.plan-flag { position: absolute; top: 28px; right: 28px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--amber-soft); color: #92400E; font-size: .74rem; font-weight: 600; display: inline-flex; align-items: center; }
.plan h3 { font-size: 1.2rem; }
.plan-for { margin-top: 4px; font-size: .9rem; color: var(--ink-3); min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 4px; margin-top: 20px; }
.price b { font-family: var(--serif); font-size: 3rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price span { color: var(--ink-3); font-size: .92rem; }
.plan-sub { font-size: .84rem; color: var(--ink-3); margin: 8px 0 24px; min-height: 1.3em; }
.plan .btn { width: 100%; }
.plan .ticks { margin-top: 24px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; } .plan-for { min-height: 0; } }

.compare { max-width: 1000px; margin: 24px auto 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.compare summary { list-style: none; cursor: pointer; padding: 18px 24px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .2s; }
.compare[open] summary::after { transform: rotate(180deg); }
.compare-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.compare th, .compare td { padding: 12px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-weight: 600; background: var(--canvas); }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 18%; }
.compare tr:last-child td { border-bottom: 0; }
.compare td.n { color: var(--ink-3); }
.compare td.y { color: var(--teal); font-weight: 600; }

/* ---------- 08 Checklist ---------- */
.checklist { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.checklist > div { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.checklist span { color: var(--ink-2); }
.checklist b { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .94rem; white-space: nowrap; }
.checklist b::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; flex: none; }
@media (max-width: 640px) { .checklist > div { grid-template-columns: 1fr; gap: 6px; } .checklist b { white-space: normal; } }
@media (max-width: 600px) { .fcard.wide .fimg img { width: 150%; } }
.plan-na { margin: 20px 0 24px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--canvas-2); color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.plan [hidden] { display: none !important; }
