/*
 * Mint Shift: components
 * Needs tokens.css first. Every class starts with "ms-" so it can sit next to any other CSS.
 */

/* Base */
.ms { margin: 0; background: var(--ms-mint); color: var(--ms-ink); font-family: var(--ms-sans); font-size: var(--ms-text-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.ms *, .ms *::before, .ms *::after { box-sizing: border-box; }
.ms img, .ms svg { max-width: 100%; display: block; }
:where(.ms) a { color: inherit; }
.ms-container { width: min(100% - 40px, var(--ms-container)); margin-inline: auto; }
.ms-narrow { width: min(100% - 40px, var(--ms-narrow)); margin-inline: auto; }
.ms-center { text-align: center; }
.ms-center .ms-lead { margin-inline: auto; }

/* Sections: mint is the page, clover for every second or third block, one ink band per page */
.ms-section { padding-block: var(--ms-section); }
.ms-section--clover { background: var(--ms-clover); }
.ms-section--paper { background: var(--ms-paper); }
.ms-section--ink { background: var(--ms-ink); color: var(--ms-mint); }
.ms-section--ink .ms-lead { color: rgba(230, 248, 216, .72); }

/* Type: condensed Titillium for headlines and numbers, DM Sans for everything else */
.ms-kicker, .ms-hero-title, .ms-h2, .ms-h3, .ms-stat__num, .ms-price__amount { margin: 0; font-family: var(--ms-display); color: inherit; }
.ms-kicker { display: block; font-size: var(--ms-text-kicker); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
.ms-hero-title { font-size: var(--ms-text-hero); font-weight: 700; line-height: .98; letter-spacing: var(--ms-tracking-hero); }
.ms-h2 { font-size: var(--ms-text-h2); font-weight: 900; line-height: .98; letter-spacing: var(--ms-tracking-caps); text-transform: uppercase; }
.ms-h3 { font-size: var(--ms-text-h3); font-weight: 700; line-height: 1.15; }
.ms-lead { max-width: 560px; margin: 18px 0 0; color: var(--ms-ink); font-size: var(--ms-text-lead); line-height: 1.45; }
.ms-soft { color: var(--ms-moss); }
.ms-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ms-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ms-sprout); box-shadow: 0 0 0 1px var(--ms-ink); }
.ms-mark { padding: 0 .12em; background: linear-gradient(transparent 58%, var(--ms-sprout-pale) 58%); }

/* Nav: logo left, a white pill bar holding a black segmented toggle and links, two pills right */
.ms-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; }
.ms-logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ms-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; color: var(--ms-ink); white-space: nowrap; }
.ms-logo__mark { display: grid; color: var(--ms-ink); place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ms-sprout); box-shadow: inset 0 0 0 1.5px var(--ms-ink); }
.ms-navbar { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: var(--ms-radius-pill); background: var(--ms-paper); }
.ms-navbar__links { display: flex; gap: 4px; }
.ms-navbar__links a { padding: 8px 14px; border-radius: var(--ms-radius-pill); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.ms-navbar__links a:hover { background: var(--ms-mint); }
.ms-nav__actions { display: flex; gap: 10px; }

/* Segmented toggle: black track, the chosen option is a white pill with a black outline */
.ms-segment { display: inline-flex; padding: 3px; border-radius: var(--ms-radius-pill); background: var(--ms-ink); }
.ms-segment button, .ms-segment a { padding: 7px 18px; border: 0; border-radius: var(--ms-radius-pill); background: transparent; color: var(--ms-paper); font: 700 14px var(--ms-sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.ms-segment .is-on { background: var(--ms-paper); color: var(--ms-ink); box-shadow: inset 0 0 0 1.5px var(--ms-ink); }

/* Buttons: pills. Black for the main action, clover for quiet ones, outline on white */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border: 0; border-radius: var(--ms-radius-pill); font-family: var(--ms-sans); font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, transform .15s; }
.ms-btn:active { transform: scale(.98); }
.ms-btn--primary { background: var(--ms-ink); color: var(--ms-paper); }
.ms-btn--primary:hover { background: var(--ms-ink-2); }
.ms-btn--quiet { background: var(--ms-clover); color: var(--ms-ink); }
.ms-btn--quiet:hover { background: var(--ms-clover-2); }
.ms-btn--outline { background: var(--ms-paper); color: var(--ms-ink); box-shadow: inset 0 0 0 1.5px var(--ms-ink); }
.ms-btn--outline:hover { background: var(--ms-mint); }
.ms-btn--sprout { background: var(--ms-sprout); color: var(--ms-ink); box-shadow: inset 0 0 0 1.5px var(--ms-ink); }
.ms-btn--lg { min-width: 280px; padding: 17px 40px; font-family: var(--ms-display); font-size: 24px; font-weight: 700; letter-spacing: 0; }
.ms-btn--block { width: 100%; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.ms-center .ms-actions { justify-content: center; }

/* Hero: product window on one side, the two-line headline on the other */
.ms-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 100px); }
.ms-hero--flip > :first-child { order: 2; }

/* Window: the signature product frame. Hairline black outline, three dots, a ruled title bar */
.ms-window { position: relative; overflow: hidden; border: var(--ms-outline); border-radius: var(--ms-radius); background: var(--ms-paper); }
.ms-window__bar { display: flex; align-items: center; gap: 5px; height: 40px; padding-inline: 16px; border-bottom: var(--ms-outline); }
.ms-window__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--ms-ink); }
.ms-window__bar span { margin-left: auto; color: var(--ms-faint); font-size: 12px; }
.ms-window__body { padding: 22px 24px; }
.ms-window__floor { background: var(--ms-paper-2); }

/* Bar chart: rounded-top sprout bars, the last one tallest */
.ms-bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.ms-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--ms-sprout-pale); }
.ms-bars i:nth-child(even), .ms-bars i:last-child { background: var(--ms-sprout); }

/* Growth figures inside a window */
.ms-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; border-radius: var(--ms-radius-sm); background: var(--ms-paper-2); }
.ms-figures small { display: block; color: var(--ms-moss); font-size: var(--ms-text-micro); letter-spacing: .04em; text-transform: uppercase; }
.ms-figures strong { font-family: var(--ms-display); font-size: 22px; font-weight: 600; }

/* Drawn cursor: an outlined arrow with a sprout tail. Use the inline SVG in demo.html */
.ms-cursor { position: absolute; width: 64px; height: 64px; pointer-events: none; }

/* Laurel badges: small awards between two drawn laurel sprigs */
.ms-laurels { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.ms-laurel { display: flex; align-items: center; gap: 6px; }
.ms-laurel svg { width: 22px; height: 46px; flex: none; }
.ms-laurel__text { text-align: center; font-size: 11px; font-weight: 500; line-height: 1.15; }
.ms-laurel__text strong { display: block; font-size: 15px; font-weight: 700; }

/* Stat rows: big number, a dotted leader line, a round line icon */
.ms-stats { display: grid; gap: 22px; }
.ms-stat { display: grid; grid-template-columns: auto 1fr 44px; align-items: center; gap: 0 28px; }
.ms-stat__num { font-size: var(--ms-text-stat); font-weight: 700; line-height: 1; }
.ms-stat__label { grid-column: 1; font-size: 16px; }
.ms-stat__lead { grid-row: 1; grid-column: 2; border-top: var(--ms-dotted); }
.ms-stat__icon { grid-row: 1 / span 2; grid-column: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ms-ink); border-radius: 50%; }
.ms-stat__icon svg { width: 22px; height: 22px; }

/* Dotted connector: a curved dotted arrow drawn in SVG between blocks */
.ms-connector { color: var(--ms-ink); }
.ms-connector path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }

/* Cards */
.ms-grid { display: grid; gap: var(--ms-gap); }
.ms-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ms-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ms-card { padding: 28px; border: var(--ms-outline); border-radius: var(--ms-radius); background: var(--ms-paper); }
.ms-card--flat { border: 0; background: var(--ms-clover); }
.ms-card p { margin: 10px 0 0; color: var(--ms-moss); }
.ms-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border: 2px solid var(--ms-ink); border-radius: 50%; background: var(--ms-sprout-pale); }
.ms-icon svg { width: 22px; height: 22px; }

/* Badges and chips */
.ms-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--ms-radius-pill); background: var(--ms-clover); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ms-badge--ink { background: var(--ms-ink); color: var(--ms-paper); }
.ms-badge--sprout { background: var(--ms-sprout); color: var(--ms-ink); }
.ms-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: var(--ms-outline); border-radius: var(--ms-radius-pill); background: var(--ms-paper); font-size: 13px; font-weight: 500; white-space: nowrap; }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ms-sprout); }

/* Tick list */
.ms-ticks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ms-ticks li { position: relative; padding-left: 30px; }
.ms-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ms-sprout) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%230e120d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: inset 0 0 0 1.5px var(--ms-ink); }

/* Forms */
.ms-field { display: grid; gap: 7px; margin-bottom: 18px; }
.ms-label { font-size: 14px; font-weight: 700; }
.ms-input, .ms-select { width: 100%; padding: 13px 18px; border: var(--ms-outline); border-radius: var(--ms-radius-pill); background: var(--ms-paper); color: var(--ms-ink); font: 400 16px var(--ms-sans); }
.ms-input::placeholder { color: var(--ms-faint); }
.ms-input:focus, .ms-select:focus { outline: 3px solid var(--ms-sprout); outline-offset: 1px; }
.ms-hint { color: var(--ms-moss); font-size: 13px; }
.ms-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.ms-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ms-ink); }
.ms-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ms-moss); font-size: 13px; }
.ms-or::before, .ms-or::after { content: ""; flex: 1; border-top: var(--ms-dotted); }

/* Pricing */
.ms-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ms-gap); align-items: stretch; }
.ms-price { display: flex; flex-direction: column; padding: 30px; border: var(--ms-outline); border-radius: var(--ms-radius-lg); background: var(--ms-paper); }
.ms-price--pick { background: var(--ms-ink); color: var(--ms-mint); }
.ms-price--pick .ms-soft { color: rgba(230, 248, 216, .7); }
.ms-price--pick .ms-ticks li::before { box-shadow: none; }
.ms-price__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ms-price__name { font-family: var(--ms-display); font-size: 26px; font-weight: 700; text-transform: uppercase; }
.ms-price__amount { margin-top: 18px; font-size: 64px; font-weight: 700; line-height: 1; }
.ms-price__amount small { font-family: var(--ms-sans); font-size: 15px; font-weight: 500; }
.ms-price .ms-ticks { margin: 24px 0 28px; flex: 1; }
.ms-price--pick .ms-btn--primary { background: var(--ms-sprout); color: var(--ms-ink); }
.ms-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ms-table th, .ms-table td { padding: 14px 12px; border-bottom: var(--ms-dotted); text-align: left; }
.ms-table th { font-family: var(--ms-display); font-size: 18px; }
.ms-table td:not(:first-child), .ms-table th:not(:first-child) { text-align: center; }
.ms-faq details { padding: 20px 0; border-bottom: var(--ms-dotted); }
.ms-faq summary { font-family: var(--ms-display); font-size: 22px; font-weight: 700; cursor: pointer; }
.ms-faq p { margin: 10px 0 0; color: var(--ms-moss); }

/* Article */
.ms-article { font-size: 18px; line-height: 1.7; }
.ms-article h2 { margin: 48px 0 12px; font-family: var(--ms-display); font-size: 34px; font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.ms-article p { margin: 0 0 20px; }
.ms-article a { color: var(--ms-fern); text-underline-offset: 3px; }
.ms-article blockquote { margin: 36px 0; padding: 26px 30px; border: var(--ms-outline); border-radius: var(--ms-radius); background: var(--ms-paper); font-family: var(--ms-display); font-size: 26px; font-weight: 600; line-height: 1.25; }
.ms-article blockquote cite { display: block; margin-top: 12px; font-family: var(--ms-sans); font-size: 14px; font-style: normal; font-weight: 500; color: var(--ms-moss); }
.ms-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--ms-moss); font-size: 14px; }
.ms-avatar { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ms-ink); border-radius: 50%; background: var(--ms-sprout-pale); font-family: var(--ms-display); font-weight: 700; color: var(--ms-ink); }

/* Footer */
.ms-footer { padding-block: 64px 36px; background: var(--ms-ink); color: var(--ms-mint); }
.ms-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.ms-footer h4 { margin: 0 0 14px; font-family: var(--ms-display); font-size: 16px; text-transform: uppercase; }
.ms-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ms-footer a { color: rgba(230, 248, 216, .75); text-decoration: none; }
.ms-footer a:hover { color: var(--ms-mint); }
.ms-footer .ms-logo { color: var(--ms-mint); }
.ms-footer__base { margin-top: 48px; padding-top: 20px; border-top: 1.5px dotted rgba(230, 248, 216, .35); color: rgba(230, 248, 216, .6); font-size: 13px; }

@media (max-width: 900px) {
  .ms-hero { grid-template-columns: 1fr; }
  .ms-hero--flip > :first-child { order: 0; }
  .ms-navbar { display: none; }
  .ms-grid--3, .ms-pricing { grid-template-columns: 1fr; }
  .ms-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ms-grid--2 { grid-template-columns: 1fr; }
  .ms-nav__actions .ms-btn--quiet { display: none; }
  .ms-btn--lg { min-width: 0; width: 100%; }
  .ms-stat { gap: 0 14px; }
  .ms-figures { grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 12px; }
  .ms-figures strong { font-size: 18px; }
  .ms-window__body { padding: 18px 16px; }
  .ms-price { padding: 24px; }
  .ms-footer__grid { grid-template-columns: 1fr; }
}
