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

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

/* Stage: wraps the top of a page and holds the drifting ghost square. Clips it on every side so it never covers the next section */
.gt-stage { position: relative; isolation: isolate; overflow: clip; }
.gt-ghost { position: absolute; z-index: -1; width: clamp(320px, 46vw, 640px); aspect-ratio: 1; border-radius: 22%; background: var(--gt-page-2); transform: rotate(32deg); pointer-events: none; }
.gt-ghost--right { right: -12%; top: 8%; }
.gt-ghost--left { left: -16%; bottom: -10%; }
.gt-glow { position: absolute; z-index: -1; inset: 0; background: var(--gt-grad-glow); pointer-events: none; }

/* Sections */
.gt-section { padding-block: var(--gt-section); }
.gt-section--band { background: var(--gt-page-2); }
.gt-section--night { background: var(--gt-night); color: var(--gt-white); }
.gt-section--night .gt-lead { color: rgba(255, 255, 255, .72); }

/* Type: big rounded Bricolage headlines, a violet highlight word */
.gt-hero-title, .gt-h2, .gt-h3 { margin: 0; font-family: var(--gt-display); font-weight: 800; color: inherit; }
.gt-hero-title { font-size: var(--gt-text-hero); letter-spacing: var(--gt-tracking-hero); line-height: 1; }
.gt-h2 { font-size: var(--gt-text-h2); letter-spacing: var(--gt-tracking-h2); line-height: 1.06; }
.gt-h3 { font-size: var(--gt-text-h3); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.gt-pop { color: var(--gt-violet); }
.gt-section--night .gt-pop { color: var(--gt-lilac); }
.gt-lead { max-width: 600px; margin: 20px 0 0; color: var(--gt-soft); font-size: var(--gt-text-lead); line-height: 1.5; }
.gt-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--gt-violet); font-size: var(--gt-text-small); font-weight: 700; letter-spacing: .02em; }
.gt-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 32%; background: var(--gt-grad-sunrise); }
.gt-muted { color: var(--gt-soft); }

/* Nav: logo is a tiny gloss tile, links in a frosted pill */
.gt-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.gt-nav__links { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--gt-white); border-radius: var(--gt-radius-pill); background: var(--gt-frost); box-shadow: var(--gt-shadow); -webkit-backdrop-filter: var(--gt-blur); backdrop-filter: var(--gt-blur); }
.gt-nav__links a { padding: 7px 16px; border-radius: var(--gt-radius-pill); color: var(--gt-ink-2); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.gt-nav__links a:hover, .gt-nav__links a[aria-current] { background: var(--gt-violet-tint); color: var(--gt-violet-deep); }
.gt-nav__actions { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; }
.gt-nav__actions a:not(.gt-btn) { color: var(--gt-ink-2); text-decoration: none; white-space: nowrap; }
.gt-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--gt-ink); font-family: var(--gt-display); font-size: 22px; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.gt .gt-logo { color: var(--gt-ink); }
.gt-logo__mark { position: relative; width: 30px; height: 30px; flex: none; border-radius: var(--gt-radius-tile); background: var(--gt-grad-sunrise); box-shadow: var(--gt-shadow-tile); overflow: hidden; }
.gt-logo__mark::after { content: ""; position: absolute; inset: 0; background: var(--gt-gloss); }

/* Buttons: violet pill with a pressed lip, frosted white for the rest */
.gt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border: 1px solid transparent; border-radius: var(--gt-radius-pill); font-family: var(--gt-sans); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--gt-speed) var(--gt-ease), background .2s, box-shadow .2s; }
.gt-btn:hover { transform: translateY(-2px); }
.gt-btn:active { transform: translateY(1px); }
.gt .gt-btn--primary, .gt-btn--primary { background: var(--gt-violet); color: var(--gt-white); box-shadow: var(--gt-shadow-btn); }
.gt-btn--primary:hover { background: var(--gt-violet-deep); }
.gt .gt-btn--frost, .gt-btn--frost { border-color: var(--gt-white); background: var(--gt-frost); color: var(--gt-ink); box-shadow: var(--gt-shadow); -webkit-backdrop-filter: var(--gt-blur); backdrop-filter: var(--gt-blur); }
.gt .gt-btn--light, .gt-btn--light { background: var(--gt-white); color: var(--gt-ink); }
.gt-btn--sm { padding: 9px 16px; font-size: 14px; }
.gt-btn--lg { padding: 16px 30px; font-size: 17px; }
.gt-btn--block { width: 100%; }
.gt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.gt-center .gt-actions { justify-content: center; }
.gt-note { margin-top: 14px; color: var(--gt-faint); font-size: var(--gt-text-small); }

/* Hero */
.gt-hero { padding-block: clamp(40px, 7vw, 96px) var(--gt-section); }
.gt-hero__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }

/* Tiles: the signature. Big squircles, each filled with one glossy gradient or pattern, name set across the middle */
.gt-tiles { display: grid; gap: var(--gt-gap-tile); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gt-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gt-tile { position: relative; isolation: isolate; display: grid; place-content: center; aspect-ratio: 1; padding: 10%; border-radius: var(--gt-radius-tile); background: var(--gt-white); color: var(--gt-white); text-align: center; text-decoration: none; box-shadow: var(--gt-shadow-tile); overflow: hidden; transition: transform var(--gt-speed) var(--gt-ease), box-shadow var(--gt-speed) var(--gt-ease); }
.gt-tile::after { content: ""; position: absolute; z-index: 1; inset: 0; background: var(--gt-gloss); pointer-events: none; }
.gt-tile:hover { transform: translateY(-6px) rotate(-2deg); box-shadow: var(--gt-shadow-lift); }
.gt-tile__name { position: relative; z-index: 2; font-family: var(--gt-display); font-size: var(--gt-text-tile); font-weight: 800; letter-spacing: -.035em; line-height: .95; text-shadow: 0 2px 12px rgba(25, 25, 74, .28); }
.gt-tile__sub { position: relative; z-index: 2; margin-top: 6px; font-size: var(--gt-text-small); font-weight: 600; line-height: 1.25; opacity: .92; }
.gt-tile__art { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; }
.gt-tile--sunrise { background: var(--gt-grad-sunrise); }
.gt-tile--lagoon { background: var(--gt-grad-lagoon); }
.gt-tile--candy { background: var(--gt-grad-candy); color: var(--gt-ink-2); }
.gt-tile--meadow { background: var(--gt-grad-meadow); }
.gt-tile--prism { background: var(--gt-grad-prism); }
.gt-tile--night { background: var(--gt-night); }
.gt-tile--paper { background: var(--gt-grad-paper); color: var(--gt-ink-2); }
.gt .gt-tile { color: var(--gt-white); }
.gt .gt-tile--candy, .gt .gt-tile--paper { color: var(--gt-ink-2); }
.gt-tile--candy .gt-tile__name, .gt-tile--paper .gt-tile__name { text-shadow: 0 2px 0 rgba(255, 255, 255, .7); }
.gt-tile--sm { border-radius: 30%; }
.gt-tile--sm .gt-tile__name { font-size: 18px; }
.gt-tile--icon { width: 56px; aspect-ratio: 1; padding: 0; }

/* Frosted card: floats beside the tiles */
.gt-frost { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--gt-white); border-radius: var(--gt-radius-lg); background: var(--gt-frost); box-shadow: var(--gt-shadow); -webkit-backdrop-filter: var(--gt-blur); backdrop-filter: var(--gt-blur); }
.gt-frost p { margin: 10px 0 0; color: var(--gt-soft); }

/* Cards and grids */
.gt-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.gt-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.gt-card { padding: 28px; border-radius: var(--gt-radius-lg); background: var(--gt-white); box-shadow: var(--gt-shadow); }
.gt-card p { margin: 10px 0 0; color: var(--gt-soft); }
.gt-card .gt-tile--icon { margin-bottom: 20px; }
.gt-split { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* Switch: the small teal toggle (night mode, yearly billing, reminders) */
.gt-switch { display: inline-flex; align-items: center; gap: 10px; color: var(--gt-ink-2); font-size: var(--gt-text-small); font-weight: 600; cursor: pointer; white-space: nowrap; }
.gt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.gt-switch__track { position: relative; width: 46px; height: 26px; flex: none; border-radius: var(--gt-radius-pill); background: var(--gt-line-strong); box-shadow: inset 0 2px 4px rgba(43, 29, 79, .15); transition: background .2s; }
.gt-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--gt-white); box-shadow: 0 2px 4px rgba(43, 29, 79, .25); transition: transform var(--gt-speed) var(--gt-ease); }
.gt-switch input:checked + .gt-switch__track { background: var(--gt-teal); }
.gt-switch input:checked + .gt-switch__track::after { transform: translateX(20px); }
.gt-switch input:focus-visible + .gt-switch__track { outline: 3px solid var(--gt-violet-tint); outline-offset: 2px; }

/* Checklist with teal squircle ticks */
.gt-checks { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.gt-checks li { display: flex; gap: 12px; }
.gt-checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 32%; background: var(--gt-teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.4l3 3 6-6.4' fill='none' stroke='%231fae9c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* Badges */
.gt-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 1px solid var(--gt-white); border-radius: var(--gt-radius-pill); background: var(--gt-frost); color: var(--gt-ink-2); font-size: var(--gt-text-small); font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: var(--gt-shadow); }
.gt .gt-badge { color: var(--gt-ink-2); }
.gt-badge__tag { padding: 2px 10px; border-radius: var(--gt-radius-pill); background: var(--gt-teal); color: var(--gt-white); font-size: 12px; font-weight: 700; }
.gt-chip { display: inline-block; padding: 3px 11px; border-radius: var(--gt-radius-pill); background: var(--gt-violet-tint); color: var(--gt-violet-deep); font-size: 12px; font-weight: 700; white-space: nowrap; }
.gt-chip--teal { background: var(--gt-teal-tint); color: var(--gt-teal); }

/* Quote */
.gt-quote { margin: 0; font-family: var(--gt-display); font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.gt-quote__by { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; color: var(--gt-soft); font-size: var(--gt-text-small); }

/* Pricing */
.gt-plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: start; }
.gt-plan { position: relative; padding: 30px; border-radius: var(--gt-radius-xl); background: var(--gt-white); box-shadow: var(--gt-shadow); }
.gt-plan--on { outline: 3px solid var(--gt-violet); outline-offset: -3px; box-shadow: var(--gt-shadow-lift); }
.gt-plan__head { display: flex; align-items: center; gap: 14px; }
.gt-plan__name { font-family: var(--gt-display); font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.gt-plan__price { margin-top: 20px; font-family: var(--gt-display); font-size: 54px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.gt-plan__price small { color: var(--gt-soft); font-family: var(--gt-sans); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.gt-plan__desc { margin: 12px 0 24px; color: var(--gt-soft); font-size: 15px; }
.gt-table-wrap { border-radius: var(--gt-radius-lg); background: var(--gt-white); box-shadow: var(--gt-shadow); overflow-x: auto; }
.gt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gt-table th, .gt-table td { padding: 14px 18px; border-bottom: var(--gt-border); text-align: left; }
.gt-table tr:last-child td { border-bottom: 0; }
.gt-table thead th { background: var(--gt-page-2); color: var(--gt-ink-2); font-family: var(--gt-display); font-size: 15px; font-weight: 700; }
.gt-table td:not(:first-child), .gt-table th:not(:first-child) { text-align: center; }
.gt-yes { color: var(--gt-teal); font-weight: 700; }
.gt-faq { display: grid; gap: 12px; }
.gt-faq details { padding: 18px 22px; border-radius: var(--gt-radius); background: var(--gt-white); box-shadow: var(--gt-shadow); }
.gt-faq summary { cursor: pointer; font-family: var(--gt-display); font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.gt-faq p { margin: 10px 0 0; color: var(--gt-soft); }

/* Article */
.gt-article { font-size: 18px; line-height: 1.75; }
.gt-article h2 { margin: 48px 0 12px; font-family: var(--gt-display); font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.gt-article p { margin: 0 0 20px; }
.gt-article blockquote { margin: 36px 0; padding: 26px 28px; border-radius: var(--gt-radius-lg); background: var(--gt-violet-tint); color: var(--gt-ink-2); font-family: var(--gt-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.gt-article figure { margin: 36px 0; }
.gt-article figcaption { margin-top: 12px; color: var(--gt-soft); font-size: var(--gt-text-small); text-align: center; }
.gt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; color: var(--gt-soft); font-size: 15px; }
.gt-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 34%; background: var(--gt-grad-lagoon); color: var(--gt-white); font-family: var(--gt-display); font-weight: 800; box-shadow: var(--gt-shadow-tile); }
.gt-callout { display: flex; gap: 16px; align-items: flex-start; margin: 30px 0; padding: 20px 22px; border-radius: var(--gt-radius); background: var(--gt-teal-tint); font-size: 16px; }

/* Forms */
.gt-form { display: grid; gap: 18px; }
.gt-field { display: grid; gap: 7px; }
.gt-label { font-size: var(--gt-text-small); font-weight: 600; }
.gt-input, .gt-select { width: 100%; padding: 13px 16px; border: 1.5px solid var(--gt-line); border-radius: var(--gt-radius); background: var(--gt-white); color: var(--gt-ink); font: 400 16px var(--gt-sans); transition: border-color .2s, box-shadow .2s; }
.gt-input::placeholder { color: var(--gt-faint); }
.gt-input:focus, .gt-select:focus { outline: 0; border-color: var(--gt-violet); box-shadow: 0 0 0 4px var(--gt-violet-tint); }
.gt-hint { color: var(--gt-faint); font-size: 13px; }
.gt-check { display: flex; gap: 10px; align-items: flex-start; color: var(--gt-soft); font-size: 14px; }
.gt-check input { margin-top: 3px; accent-color: var(--gt-teal); }
.gt-picks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.gt-pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--gt-line); border-radius: var(--gt-radius); background: var(--gt-white); font-size: 14px; font-weight: 600; cursor: pointer; }
.gt-pick input { position: absolute; opacity: 0; }
.gt-pick:has(input:checked) { border-color: var(--gt-violet); background: var(--gt-violet-tint); }
.gt-pick .gt-tile { width: 28px; flex: none; padding: 0; box-shadow: none; }

/* Footer */
.gt-footer { padding-block: 60px 40px; color: var(--gt-soft); font-size: var(--gt-text-small); }
.gt-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.gt-footer h4 { margin: 0 0 12px; color: var(--gt-ink); font-family: var(--gt-display); font-size: 16px; font-weight: 700; }
.gt-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gt-footer a { color: var(--gt-soft); text-decoration: none; }
.gt-footer a:hover { color: var(--gt-violet); }
.gt-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: var(--gt-border); }

/* Phones */
@media (max-width: 760px) {
  .gt-nav__links { display: none; }
  .gt-nav__actions a:not(.gt-btn), .gt-nav__actions .gt-muted { display: none; }
  .gt-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gt-tile__sub { font-size: 12px; }
}
@media (max-width: 420px) {
  .gt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .gt-tile, .gt-btn, .gt-switch__track::after { transition: none; }
}
