.public-page, .pub-header, .pub-footer, .auth {
  --ink: #142c41;
  --navy: #173849;
  --green: #006b58;
  --muted: #455c66;
  --line: #8297a1;
  --rule: #afbec4;
  --deep: #163347;
  --paper: #fff;
  --tint: #e5f1ee;
  --shadow: 0 3px 0 #142c4110;
  color: var(--ink);
}
body:has(.pub-header) { background: #eef3f5; }
.pub-header { border-bottom: 2px solid var(--deep); background: var(--paper); }
.pub-header .nav { min-height: 4.5rem; flex-wrap: wrap; padding-block: .65rem; gap: 1.1rem; }
.pub-brand {
  color: var(--ink); flex-wrap: nowrap; gap: .52rem; font-size: 1.32rem; letter-spacing: -.05em;
  inline-size: max-content; max-inline-size: 100%; line-height: 1.35; overflow-wrap: normal;
}
.pub-brand strong { color: var(--green); font-weight: inherit; }
.pub-brand-mark { position: relative; flex: none; inline-size: 2.5rem; height: 2.5rem; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.pub-brand-mark img { position: absolute; width: 3.7rem; height: 3.7rem; max-width: none; top: -.19rem; left: 50%; transform: translateX(-50%); clip-path: inset(0 0 35%); }
.pub-header .links { gap: .15rem; }
.pub-header .links a { padding: .48rem .85rem; border: 1px solid transparent; border-radius: 7px; color: var(--ink); font-weight: 600; }
.pub-header .links a[aria-current] { color: #005747; background: #e1f2eb; border-color: #77a498; }
.pub-header .links a:hover, .pub-footer .links a:hover { color: #005747; text-decoration: underline; text-underline-offset: .22em; }
.pub-header .actions { gap: .5rem; }
.pub-footer { margin-top: clamp(2.5rem, 5vw, 4.2rem); padding-block: 1.35rem; border-top: 2px solid var(--deep); }
.pub-footer .links a { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.policy-body { max-width: 52rem; margin-inline: auto; padding: clamp(1rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.policy-section + .policy-section, .policy-date { border-top: 1px solid var(--rule); margin-top: 1.5rem; padding-top: 1.5rem; }
.policy-section h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.policy-section p, .policy-facts > div { margin-top: .75rem; }
.policy-facts dt { font-weight: 700; }
.policy-facts dd { margin: .25rem 0 0; }
.policy-date { font-size: .9rem; color: var(--muted); }
.policy-body [data-account-deletion] { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.policy-body [data-account-deletion] :is(h4, ul, form, button) { margin-top: .8rem; }
.policy-body [data-account-deletion] ul { padding-inline-start: 1.5rem; }
.policy-body [data-form="account-deletion"] { max-width: 32rem; }
.policy-body .privacy-confirm { display: flex; align-items: baseline; gap: .6rem; }
.policy-body .privacy-confirm input { width: 1.1rem; min-height: auto; flex: none; }
:is(.public-page,.pub-header,.auth) :is(.btn,button) { border: 1px solid #718793; border-radius: 8px; color: var(--ink); background: var(--paper); }
:is(.public-page,.pub-header,.auth) :is(.btn,button):hover { background: #e5f1ee; border-color: #406a67; }
:is(.public-page,.pub-header,.auth) :is(.btn.dark,button.dark,.btn.primary) { color: white; border-color: #005246; background: #006653; }
:is(.public-page,.pub-header,.auth) :is(.btn.dark,button.dark,.btn.primary):hover { background: #005244; }
:is(.public-page,.auth) :is(input:not([type=radio]),select,textarea) { color: var(--ink); border: 1.5px solid #708793; border-radius: 7px; background-color: white; }
:is(.public-page,.auth) :is(input,select,textarea):focus-visible { outline: 3px solid #007965; outline-offset: 2px; }
.public-page { font-variant-numeric: tabular-nums; }
.public-page [hidden] { display: none !important; }
.public-page :is(h1,h2,h3,p,figure,dl,dt,dd,ol,ul) { margin: 0; }
.public-page h1, .public-page h2, .public-page h3 { text-wrap: balance; }
.public-page h1 { font-size: clamp(2.3rem, 4.2vw, 4rem); line-height: 1.05; letter-spacing: -.035em; color: var(--navy); }
.public-page h2 { font-size: clamp(1.65rem, 2.9vw, 2.65rem); line-height: 1.14; color: var(--navy); }
.public-page h3 { font-size: 1.38rem; color: var(--ink); }
.public-page p, .public-page dd { line-height: 1.6; text-wrap: pretty; }
.public-page a:not(.btn) { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.public-page :is(a,button,input,textarea,select,summary):focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.public-page .pub-link, .help-links a, .question-list a { color: var(--green); font-weight: 650; }
.pub-link { display: inline-block; }
.public-page > .pub-section { margin-block: clamp(2rem, 4vw, 3.5rem); }
.pub-actions, .help-links { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.05rem; }
.public-page :is(.home-intro,.month-feature,.workspace-cards,.start-panel,.about-intro,.about-workspaces,.faq-layout,.plan-grid,.contact-layout,.form-pair) > * { min-width: 0; }
.pub-icon { display: inline-grid; width: 2.85rem; height: 2.85rem; flex: 0 0 auto; place-items: center; background: #ddf1ea; color: #006653; border: 1px solid #80a99a; border-radius: 9px; }
.pub-icon svg { width: 1.55rem; height: 1.55rem; }
.home-intro {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center; gap: clamp(1.6rem, 5vw, 5rem);
  position: relative; isolation: isolate; overflow: hidden;
  margin-block: clamp(1rem, 2.2vw, 1.8rem); padding: clamp(1.3rem, 4.2vw, 4.2rem);
  border: 1.5px solid #102b3d; border-radius: 14px; background: linear-gradient(115deg, #142d40 0%, #17394a 53%, #11574f 100%); color: #fff;
}
.home-intro::before {
  content: ""; z-index: -1; position: absolute; inset: 0;
  background: linear-gradient(90deg, #b6e4d920 1px, transparent 1px), linear-gradient(#b6e4d920 1px, transparent 1px); background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent 3%, #000 100%);
}
.home-copy h1 { color: #fff; font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: 1.02; }
.home-copy h1 em { color: #94e5c5; font-style: normal; }
.home-copy > p { max-width: 37rem; margin-top: 1.25rem; color: #e2f0e9; font-size: clamp(1rem, 1.35vw, 1.17rem); }
.home-copy .pub-actions { margin-top: 1.65rem; }
.public-page .btn.mint { color: #102d3f; background: #96e5c4; border-color: #b1f6da; }
.public-page .btn.mint:hover { background: #b2f0d6; }
.public-page .btn.on-dark { color: white; background: #ffffff08; border-color: #a2bfc4; }
.home-copy :is(a,button):focus-visible { outline-color: #e1f9b8; }
.home-copy .hero-note { margin-top: .88rem; font-size: .92rem; color: #c9dfd4; max-width: 32rem; }
.demo-receipt {
  background: white; color: var(--ink); border: 1.5px solid #738c96; border-radius: 12px;
  padding: clamp(1.15rem, 2.2vw, 1.9rem); box-shadow: 5px 6px 0 #69aa98; margin: 0 6px 8px 0;
}
.receipt-top, .receipt-name, .receipt-amounts > div, .month-list figcaption, .month-total, .history-card figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: .55rem 1rem; flex-wrap: wrap;
}
.receipt-top { padding-bottom: .75rem; border-bottom: 1.5px dashed #849ba5; font-size: .88rem; font-weight: 700; color: var(--green); }
.demo-status { font-weight: 650; font-size: .83rem; padding: .18rem .6rem; border: 1px solid #9badb5; border-radius: 6px; color: var(--navy); background: #edf3f5; }
.demo-status[data-state="2"] { color: #784711; background: #fff1d5; }
.demo-status[data-state="3"] { color: #0b6141; background: #dcf6e5; }
.receipt-name { justify-content: flex-start; margin-block: 1rem; }
.receipt-name h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.receipt-name p { color: var(--muted); font-size: .94rem; }
.receipt-amounts > div { padding: .15rem 0; }
.receipt-amounts dd { font-weight: 700; }
.receipt-amounts .receipt-balance { margin-top: .7rem; padding-top: .7rem; border-top: 1.5px dashed #849ba5; }
.receipt-balance dd { font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -.025em; line-height: 1.2; }
.demo-progress { width: 100%; height: .55rem; display: block; border: 0; border-radius: 9999px; overflow: hidden; background: #e1ece5; color: #0fa974; accent-color: #0fa974; margin-block: .75rem; appearance: none; }
.demo-progress::-webkit-progress-bar { background: #e1ece5; }
.demo-progress::-webkit-progress-value { background: #0fa974; border-radius: 9999px; }
.demo-progress::-moz-progress-bar { background: #0fa974; }
.demo-receipt .demo-hint { font-size: .95rem; color: var(--muted); margin: .85rem 0; min-height: 3em; }
.month-feature, .about-intro, .about-workspaces, .faq-layout, .contact-layout { display: grid; align-items: start; gap: clamp(1.5rem, 4.5vw, 4.5rem); }
.month-feature, .about-intro { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; }
.feature-copy > p, .about-story > p:not(.section-label), .faq-layout > div > .pub-link { margin-top: 1rem; }
.feature-copy > p, .about-story > p, .detail-list dd, .question-list p, .workspace-cards p, .plan-description, .contact-help p { color: var(--muted); }
.feature-copy .pub-link { margin-top: 1rem; }
.month-list, .history-card, .workspace-cards article, .plan-card, .contact-form-card {
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); box-shadow: var(--shadow);
}
.month-list { padding: clamp(1.15rem, 2.7vw, 2rem); container: month-example / inline-size; }
.month-list figcaption, .history-card figcaption { border-bottom: 1px solid var(--line); padding-bottom: .85rem; }
.month-list figcaption strong, .history-card figcaption strong { font-size: 1.22rem; }
.month-list figcaption span, .history-card figcaption small { font-size: .9rem; color: var(--muted); }
.month-list ul { padding: 0; list-style: none; }
.month-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.month-list li strong { color: #194d3e; font-size: .96rem; }
.month-list li div small { display: block; color: var(--muted); }
.date-tile { border: 1px solid #97b1a7; border-radius: 7px; background: #edf6f2; text-align: center; min-width: 3rem; padding: .25rem .5rem; font-weight: 700; color: #225e48; line-height: 1.14; }
.date-tile small { display: block; font-size: .76rem; font-weight: 600; }
.month-total { margin-top: .9rem; }
.month-total strong { font-size: 1.24rem; }
.workspace-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.85rem, 1.8vw, 1.5rem); }
.workspace-cards { margin-top: 1.3rem; }
.workspace-cards article { padding: clamp(1.25rem, 2.3vw, 1.9rem); display: flex; flex-direction: column; align-items: flex-start; }
.workspace-cards article:nth-child(2) .pub-icon { background: #eaf0fc; color: #00338d; }
.workspace-cards article:nth-child(3) .pub-icon { background: #fff1dc; color: #8a5514; }
.workspace-cards h3 { margin-top: .9rem; }
.workspace-cards p { margin: .55rem 0 1.1rem; }
.workspace-cards .pub-link { margin-top: auto; }
.start-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; border: 1.5px solid #799e93; border-radius: 12px; padding: clamp(1.3rem, 3vw, 2.6rem); background: #dff2e6; }
.start-panel > div { flex: 1 1 24rem; }
.start-panel h2 { font-size: clamp(1.45rem, 2.7vw, 2.3rem); }
.start-panel p { margin-top: .55rem; }
.home-prices:empty { display: none; }
.public-heading, .about-intro {
  border: 1.5px solid #1b4858; border-left: 6px solid #22ad83; border-radius: 12px;
  padding: clamp(1.4rem, 3.5vw, 3.25rem); background: var(--deep); color: white;
}
.public-heading { margin: clamp(1rem, 2.2vw, 1.8rem) 0 clamp(1.25rem, 2.3vw, 2rem); }
.public-page > .about-intro { margin-top: clamp(1rem, 2.2vw, 1.8rem); }
.public-heading h1, .about-intro h1 { color: white; }
.public-heading .pub-lede, .about-story .pub-lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); margin-top: 1rem; max-width: 47rem; color: #dfedef; }
.about-story .section-label { font-weight: 700; color: #9adfc8; margin-bottom: .75rem; }
.about-story h1 { max-width: 15ch; }
.history-card { padding: clamp(1.3rem, 2.65vw, 2rem); color: var(--ink); background: white; border-color: #8297a1; container: payment-history / inline-size; }
.history-card figcaption { justify-content: flex-start; }
.history-card figcaption small, .history-dates dd span { display: block; }
.history-card .pub-icon { color: var(--navy); background: #e5edf9; }
.history-dates > div { display: grid; grid-template-columns: minmax(5.5rem,.65fr) minmax(0,1.4fr); align-items: baseline; gap: .4rem .9rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.history-dates > div:last-child { padding-bottom: .15rem; border: 0; }
.history-dates dt { font-size: .92rem; color: #365569; font-weight: 650; }
.history-dates dd span { color: var(--muted); }
.about-workspaces, .faq-layout { grid-template-columns: minmax(0,.85fr) minmax(0,1.35fr); border-top: 1px solid var(--line); padding-top: clamp(1.6rem,3.7vw,3.2rem); }
.detail-list > div, .contact-help section { padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.detail-list > div:first-child, .contact-help section:first-child { padding-top: 0; }
.detail-list dt { font-size: 1.16rem; font-weight: 700; margin-bottom: .35rem; }
.question-list details { padding: .95rem 1.13rem; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; }
.question-list details + details { margin-top: .6rem; }
.question-list summary { cursor: pointer; font-weight: 650; color: #224d48; }
.question-list p { margin: .65rem 0 .1rem; }
.price-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 1rem 2rem; }
.price-controls fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.price-controls legend, .price-controls > label { font-size: .95rem; font-weight: 650; }
.price-controls legend { margin-bottom: .35rem; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: .15rem; border-radius: 9px; border: 1px solid #758d95; padding: .18rem; background: #fff; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: block; border-radius: 6px; padding: .58rem 1.05rem; }
.segmented input:checked + span { color: white; background: #07513e; }
.segmented input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.price-controls > label { min-width: min(15rem,100%); max-width: 100%; }
.price-feedback { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .95rem; }
.price-feedback button { padding: .45rem .75rem; }
.plan-comparison-tools {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: .65rem 1rem; margin-block: .95rem 1.1rem;
}
.feature-key, .feature-key > span { display: flex; align-items: center; gap: .4rem; }
.feature-key { flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.75rem,1.2vw,1rem); }
.plan-card {
  display: grid; align-content: start; row-gap: 1.05rem;
  padding: clamp(1rem,1.7vw,1.45rem); scroll-margin-top: 1rem; container-type: inline-size;
}
@supports (grid-template-rows: subgrid) {
  .plan-card { grid-row: span 5; grid-template-rows: subgrid; }
}
.plan-card > *, .workspace-cards article > * { max-inline-size: 100%; }
.plan-card h2 { font-size: 1.55rem; }
.plan-card.plan-free { border-color: #588b7c; background: #eff8f3; }
.plan-description { margin-top: .42rem !important; font-size: .94rem; }
.plan-amount {
  color: var(--green); font-size: clamp(1.55rem,2.7vw,2.35rem); line-height: 1.18; letter-spacing: -.025em; font-weight: 750;
  /* Leave room for currency symbols and every digit of a long published price. */
  font-size: min(clamp(1.55rem,2.7vw,2.35rem), max(1rem, calc(146cqi / var(--price-characters, 1))));
  overflow-wrap: anywhere;
}
.plan-card[data-plan="Business"] .plan-amount { color: var(--navy); }
.plan-term { margin-top: .3rem !important; font-size: .89rem; color: var(--muted); }
.plan-choice { display: flex; flex-direction: column; justify-content: end; align-items: stretch; gap: .65rem; }
.plan-activation { font-size: .9rem; color: var(--muted); }
.plan-limits {
  display: grid; gap: .45rem; align-content: start; padding-block: .9rem;
  border-block: 1px solid var(--rule); font-size: .89rem;
}
.plan-limits > div { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .15rem .55rem; }
.plan-limits dt { color: var(--muted); }
.plan-limits dd { font-weight: 750; }
.plan-features { list-style: none; display: grid; gap: .64rem; padding: 0; margin: 0; }
.plan-features li { display: grid; align-items: baseline; grid-template-columns: auto minmax(0,1fr); gap: .5rem; font-size: .89rem; line-height: 1.4; }
.feature-symbol {
  display: inline-grid; place-items: center; align-self: start; margin-top: .08rem;
  inline-size: 1.15rem; block-size: 1.15rem; border-radius: 50%; font: 750 .83rem/1 system-ui,sans-serif;
  color: #075640; background: #d5eee3;
}
.plan-features [data-included="false"] { color: var(--muted); }
.plan-scope { display: block; font-size: .86rem; color: var(--muted); }
.plan-features [data-included="false"] .feature-symbol, .feature-symbol[data-excluded] { color: #445962; background: #e6edef; }
.contact-layout { grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr); }
.contact-form-card { padding: clamp(1.15rem, 2.8vw, 2.35rem); }
.contact-form-card h2 { margin-bottom: .65rem; font-size: 1.55rem; }
.contact-form-card .form-intro, .field-hint, .message-limits { color: var(--muted); font-weight: 400; font-size: .93rem; }
.form-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.message-field { display: grid; gap: .35rem; }
.contact-form-card textarea { min-height: 8.5rem; resize: vertical; }
.message-limits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; margin-top: -.65rem; }
.contact-form-card button { justify-self: start; }
.contact-form-card .pub-actions { margin-top: 1rem; }
.contact-help { border: 1.5px solid #7c9b90; border-radius: 12px; background: #e4f0eb; padding: clamp(1.25rem, 2.4vw, 2rem); }
.contact-help section:last-child { border: 0; padding-bottom: 0; }
.contact-help h2 { font-size: 1.23rem; }
.contact-help p { margin: .48rem 0; }

/* Financial examples use ruled rows; the primary rate or remaining amount is kept prominent. */
.month-total { padding: .8rem .9rem; border: 1px solid #829f97; border-radius: 7px; background: #e6f2ed; }
.month-list figcaption, .history-card figcaption { border-bottom: 2px solid var(--deep); }
.workspace-cards article, .plan-card { border-top: 4px solid var(--green); }
.workspace-cards article:nth-child(2), .plan-card:nth-child(2) { border-top-color: #456681; }
.workspace-cards article:nth-child(3), .plan-card:nth-child(3) { border-top-color: #977739; }
.plan-card:nth-child(4) { border-top-color: #62567d; }
.about-story > p:not(.section-label) { color: #dfedef; }
.public-page .detail-list { padding: .2rem 1.25rem; background: white; border: 1.5px solid var(--line); border-radius: 12px; }
.detail-list > div:first-child { padding-top: 1.15rem; }
.detail-list > div:last-child { border-bottom: 0; }
.question-list details[open] { border-color: #6d9287; background: #f5faf8; }
.price-controls { border: 1.5px solid var(--line); border-radius: 10px; padding: .85rem 1.15rem; background: white; }
.public-page .contact-form-card > h2 { margin-bottom: .9rem; padding-bottom: .7rem; border-bottom: 2px solid var(--deep); }

.auth {
  max-width: 32rem; margin: clamp(1.5rem, 5vw, 4.25rem) auto;
}
.auth[data-auth-mode="signup"] { max-width: 43rem; }
.auth .pagehead {
  position: relative; isolation: isolate; overflow: hidden; margin: 0;
  border: 1.5px solid var(--deep); border-bottom: 0; border-radius: 13px 13px 0 0;
  padding: clamp(1.25rem, 3vw, 2.15rem); background: var(--deep);
}
.auth .pagehead::after {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 44%;
  background: repeating-linear-gradient(118deg, transparent 0 12px, #9edec522 12px 13px);
  mask-image: linear-gradient(90deg, transparent, black 75%);
}
.auth .pagehead h1 { color: white; margin: 0; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.auth .panel {
  background: white; border: 1.5px solid #788e99; border-top: 4px solid #38967d;
  border-radius: 0 0 13px 13px; padding: clamp(1.25rem, 3vw, 2.15rem); box-shadow: 0 4px 0 #142c4112;
}
.auth .panel > p { margin: 0 0 1.1rem; }
.auth .fields { gap: 1.1rem; }
.auth .fields, .contact-form-card .fields { grid-template-columns: minmax(0,1fr); }
.auth .auth-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.auth .entry { padding: 1rem 0 0; margin-top: 1.3rem; border: 0; border-top: 1px solid #9baeb7; }
.auth .entry p { margin: .65rem 0 0; }
.auth .entry a { color: #005d50; text-decoration: underline; font-weight: 650; text-underline-offset: .18em; }
.auth-help { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1.1rem; }
.auth .currency-preferences { padding: 1rem; border: 1px solid #829aa5; border-radius: 8px; background: #f2f6f7; }
.auth .currency-options { border-color: #728c98; }
.auth .error:not([hidden]) { margin: 0; padding: .65rem .85rem; border: 1px solid #b76675; border-radius: 7px; background: #fff3f4; color: #82263b; }

@media (max-width: 820px) {
  .pub-header .nav { gap: .5rem; }
  .pub-header .links { flex-basis: 100%; order: 3; justify-content: flex-start; flex-wrap: wrap; padding: .5rem 0 0; border-top: 1px solid var(--rule); }
  .pub-header .links a { text-align: center; }
  .pub-brand { font-size: 1.12rem; }
  .pub-header .actions { justify-content: flex-end; }
}
@media (max-width: 480px) {
  .pub-header .nav { gap: .4rem; }
  .pub-brand { gap: .38rem; }
  .pub-brand-mark { height: 2.15rem; inline-size: 2.15rem; }
  .pub-brand-mark img { width: 3.2rem; height: 3.2rem; top: -.16rem; }
  .pub-header .links a { flex: 1 1 max-content; padding-inline: .25rem; }
  .pub-header .actions { gap: .3rem; }
  .pub-footer { align-items: flex-start; gap: 1rem; }
  .auth .auth-pair { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 70rem) {
  .plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .home-intro { gap: 1.65rem; padding: 1.65rem; }
  .contact-layout { grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap: 1.25rem; }
  .form-pair { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .home-intro, .month-feature, .about-intro, .about-workspaces, .faq-layout, .contact-layout, .workspace-cards, .plan-grid { grid-template-columns: minmax(0,1fr); }
  .home-intro { gap: 1.35rem; padding: 1.2rem; }
  .home-copy h1 { font-size: clamp(2.7rem, 10.5vw, 4.1rem); }
  .home-copy .hero-note, .demo-receipt .demo-hint { min-height: auto; }
  .home-copy .pub-actions { margin-top: 1.15rem; }
  .workspace-cards { gap: .8rem; }
  .about-story h1 { max-width: 21ch; }
  .month-feature, .about-intro, .about-workspaces, .faq-layout { gap: 1.35rem; }
  .price-controls { gap: .75rem; }
  .start-panel > div { flex-basis: 100%; }
}
@container month-example (max-width: 17rem) {
  .month-list li { grid-template-columns: auto minmax(0,1fr); gap: .25rem .65rem; }
  .month-list li > strong { grid-column: 2; }
}
@container payment-history (max-width: 17rem) {
  .history-dates > div { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .receipt-top { gap: .35rem; }
}

@media screen and (min-height: 28rem) {
  .pub-header[data-public-nav] { position: sticky; top: calc(0px - var(--nav-offset, 0px)); z-index: 6; box-shadow: 0 3px 10px #142c4112; }
  .pub-header:has(.pub-brand:focus-visible, .actions :focus-visible) { top: 0; }
  html:has([data-public-nav]) { scroll-padding-block-start: calc(var(--public-nav-height, 4.75rem) + .5rem); }
}
@media screen and (min-height: 28rem) and (max-width: 820px) {
  html:has([data-public-nav]) { scroll-padding-block-start: calc(var(--public-nav-height, 9rem) + .5rem); }
}

/* A wide page has a clear gutter. On smaller screens the return link sits in the footer. */
@media screen and (min-width: 80rem) {
  body:not(:has(#release-update-notice, #toast:not(:empty))) .pub-footer .back-to-top[data-past-intro] {
    position: fixed; z-index: 3;
    inset-inline-end: max(.25rem, calc((100% - 75rem) / 4 - 1.375rem));
    bottom: max(1.25rem, env(safe-area-inset-bottom)); width: 2.75rem; padding: 0;
  }
  body:not(:has(#release-update-notice, #toast:not(:empty))) .pub-footer .back-to-top[data-past-intro] span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  body:not(:has(#release-update-notice, #toast:not(:empty))) .pub-footer .back-to-top[data-past-intro="false"]:not(:focus) {
    visibility: hidden; opacity: 0;
  }
}

:is(.public-page, .pub-header) :is(.btn, button):hover { transform: none; }
.public-page .btn.on-dark:is(:hover, :focus-visible) { color: #fff; background: #285360; }
.public-page .pub-link:is(:hover, :focus-visible), .question-list summary:is(:hover, :focus-visible) {
  color: #005545; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px;
}
.pub-header .links a:focus-visible, .pub-footer .links a:focus-visible { outline: 3px solid #006653; outline-offset: 2px; }
@media (hover: hover) {
  .pub-header .links a:not([aria-current]):hover { background-color: #edf6f2; }
  .question-list details:has(summary:hover), .plan-card:has([data-plan-cta]:hover) { box-shadow: 0 0 0 2px #64988a; }
}
.question-list details:has(summary:focus-visible), .plan-card:has([data-plan-cta]:focus-visible) { box-shadow: 0 0 0 2px #64988a; }

@media (prefers-reduced-motion: no-preference) {
  .pub-header .links a, .public-page :is(.btn, button), .plan-card, .question-list details {
    transition: background-color 140ms ease-out, border-color 140ms ease-out, box-shadow 140ms ease-out;
  }
  [data-reveal].reveal-in:not(:focus-within, :target, :has(:target)) { animation: public-section-in 360ms cubic-bezier(.2,.7,.2,1); }
  @keyframes public-section-in {
    from { opacity: .55; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-intro::after {
    content: ""; position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none;
    width: 28rem; height: 28rem; border-radius: 50%; opacity: 0;
    background: radial-gradient(closest-side, #8ae9c12e, #6ce4ba12 56%, transparent);
    transform: translate(calc(var(--pointer-x, 0px) - 50%), calc(var(--pointer-y, 0px) - 50%));
    transition: opacity 180ms ease-out;
  }
  .home-intro[data-tracking]::after { opacity: 1; }
  .public-page .btn[data-pointer-effect="magnetic"] {
    --pointer-x: 0px; --pointer-y: 0px;
    position: relative; isolation: isolate; border-color: transparent; background: transparent; transform: none;
  }
  .btn[data-pointer-effect="magnetic"]::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
    border: 1px solid #b1f6da; border-radius: inherit; background: #96e5c4;
  }
  .btn[data-pointer-effect="magnetic"]:hover::before { background: #b2f0d6; }
  .btn[data-pointer-effect="magnetic"]::before, .btn[data-pointer-effect="magnetic"] span {
    transform: translate(var(--pointer-x), var(--pointer-y)); transition: transform 110ms ease-out, background-color 140ms ease-out;
  }
  .btn[data-pointer-effect="magnetic"]:is(:focus-visible, :active)::before,
  .btn[data-pointer-effect="magnetic"]:is(:focus-visible, :active) span { transform: none; }
  [data-pointer-effect="tilt"] > figure { transition: transform 150ms ease-out; }
  [data-pointer-effect="tilt"][data-tracking] > figure {
    transform: perspective(950px) rotateX(var(--pointer-y)) rotateY(var(--pointer-x));
  }
}
@media print {
  [data-reveal].reveal-in { animation: none; }
  .home-intro::after { display: none; }
  [data-pointer-effect="tilt"][data-tracking] > figure { transform: none; }
}
