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

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

/* Type: soft serif headlines, Figtree for everything else */
.nt-hero-title, .nt-h2, .nt-h3 { margin: 0; font-family: var(--nt-serif); font-variation-settings: "SOFT" 100; font-weight: 500; color: inherit; }
.nt-hero-title { font-size: var(--nt-text-hero); letter-spacing: -.02em; line-height: 1.04; }
.nt-h2 { font-size: var(--nt-text-h2); letter-spacing: -.015em; line-height: 1.1; }
.nt-h3 { font-size: var(--nt-text-h3); line-height: 1.25; }
.nt-sky { color: var(--nt-sky); }
.nt-mark { color: var(--nt-cobalt); }
.nt-lead { max-width: 620px; margin: 18px 0 0; color: var(--nt-soft); font-size: var(--nt-text-lead); line-height: 1.5; }
.nt-eyebrow { display: inline-block; margin-bottom: 14px; color: var(--nt-cobalt); font-size: var(--nt-text-small); font-weight: 700; letter-spacing: .02em; }
.nt-small { color: var(--nt-soft); font-size: var(--nt-text-small); }

/* Night band: the hero and any dark section */
.nt-night { position: relative; overflow: hidden; background: var(--nt-hero-bg); color: var(--nt-on-night); }
.nt-night .nt-lead, .nt-night .nt-small { color: var(--nt-on-night-soft); }
.nt-night .nt-eyebrow { color: var(--nt-sky); }

/* Strip: a slim notice under the nav, a shade lighter than navy */
.nt-strip { padding: 9px 16px; border-block: 1px solid var(--nt-night-line); background: rgba(255, 255, 255, .05); color: var(--nt-on-night-soft); font-size: var(--nt-text-small); text-align: center; }
.nt-strip a { color: var(--nt-on-night); font-weight: 600; }

/* Nav */
.nt-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.nt-logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 20px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.nt-logo__mark { width: 30px; height: 30px; flex-shrink: 0; }
.nt-nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nt-nav__links a { color: inherit; text-decoration: none; opacity: .88; }
.nt-nav__links a:hover { opacity: 1; }
.nt-nav__end { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 500; }
.nt-nav__end > a:not(.nt-btn) { color: inherit; text-decoration: none; }
.nt-nav--day { color: var(--nt-ink); border-bottom: var(--nt-border); }

/* Buttons: small corners, never pills. Cobalt for the main action */
.nt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border: 1px solid transparent; border-radius: var(--nt-radius-sm); font-family: var(--nt-sans); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s var(--nt-ease), border-color .2s var(--nt-ease); }
.nt .nt-btn--primary, .nt-btn--primary { background: var(--nt-cobalt); color: var(--nt-on-night); }
.nt-btn--primary:hover { background: var(--nt-cobalt-dark); }
.nt .nt-btn--outline-night, .nt-btn--outline-night { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .04); color: var(--nt-on-night); }
.nt-btn--outline-night:hover { background: rgba(255, 255, 255, .12); }
.nt .nt-btn--outline, .nt-btn--outline { border-color: var(--nt-line); background: var(--nt-paper); color: var(--nt-ink); }
.nt-btn--outline:hover { border-color: var(--nt-ink); }
.nt .nt-btn--white, .nt-btn--white { background: var(--nt-paper); color: var(--nt-navy); }
.nt-btn--sm { padding: 8px 16px; font-size: 14px; }
.nt-btn--block { width: 100%; }
.nt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nt-center .nt-actions { justify-content: center; }
.nt-note { margin-top: 14px; font-size: var(--nt-text-small); }

/* Hero */
.nt-hero { padding: clamp(56px, 8vw, 96px) 0 0; }
.nt-hero .nt-lead { font-size: 20px; }

/* Confetti: small shapes that float in the night band. Place with top/left inline vars */
.nt-confetti { position: absolute; top: var(--y, 20%); left: var(--x, 10%); width: 14px; height: 14px; pointer-events: none; transform: rotate(var(--r, 18deg)); }
.nt-confetti--tri { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 15px solid var(--nt-sun); }
.nt-confetti--sq { border-radius: 2px; background: var(--nt-rose); }
.nt-confetti--dot { border-radius: 50%; background: var(--nt-mint); width: 10px; height: 10px; }
.nt-confetti--bar { width: 18px; height: 6px; border-radius: 3px; background: var(--nt-sky); }

/* Tabs: a white pill track on navy that switches the app window's view */
.nt-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--nt-radius-pill); background: rgba(255, 255, 255, .14); }
.nt-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: var(--nt-radius-pill); background: transparent; color: var(--nt-on-night); font: 600 14px var(--nt-sans); white-space: nowrap; cursor: pointer; }
.nt-tabs button[aria-pressed="true"] { background: var(--nt-paper); color: var(--nt-navy); }

/* Stage: holds the blob and the app window, overlapping the fold */
.nt-stage { position: relative; margin-top: 40px; }
.nt-blob { position: absolute; top: -50px; left: 8%; width: 220px; height: 220px; border-radius: 50%; background: var(--nt-rose); opacity: .9; }
.nt-blob--sun { left: auto; right: 6%; top: 40%; width: 120px; height: 120px; background: var(--nt-sun); }

/* App window: a light product window with a top bar, sidebar and panes */
.nt-app { position: relative; overflow: hidden; border-radius: var(--nt-radius) var(--nt-radius) 0 0; background: var(--nt-paper); color: var(--nt-ink); box-shadow: var(--nt-shadow-lg); font-size: 13px; text-align: left; }
.nt-app .nt-small { color: var(--nt-soft); font-size: 12px; }
.nt-app__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: var(--nt-border); background: var(--nt-paper); }
.nt-app__search { flex: 1; max-width: 380px; margin-inline: auto; padding: 6px 12px; border: var(--nt-border); border-radius: var(--nt-radius-sm); color: var(--nt-faint); }
.nt-app__body { display: grid; grid-template-columns: 190px 1fr 260px; min-height: 340px; }
.nt-app__side { padding: 12px 10px; border-right: var(--nt-border); background: #fafbfd; }
.nt-app__side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: var(--nt-radius-xs); color: var(--nt-ink); text-decoration: none; }
.nt-app__side a.is-on { background: var(--nt-cobalt-soft); color: var(--nt-cobalt-dark); font-weight: 600; }
.nt-app__main { padding: 14px 18px; }
.nt-app__aside { padding: 14px; border-left: var(--nt-border); }
.nt-app__compose { display: block; margin-bottom: 12px; padding: 7px 10px; border-radius: var(--nt-radius-xs); background: var(--nt-cobalt); color: var(--nt-on-night); font-weight: 600; text-align: center; }

/* Rows inside the app: people, visits, notes */
.nt-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: var(--nt-border); }
.nt-row:last-child { border-bottom: 0; }
.nt-avatar { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--nt-cream-2); color: var(--nt-ink); font-size: 12px; font-weight: 700; }
.nt-avatar--rose { background: #fbdbe7; }
.nt-avatar--sky { background: var(--nt-cobalt-soft); }
.nt-avatar--mint { background: #d6f2e6; }
.nt-event { margin-bottom: 6px; padding: 6px 9px; border-left: 3px solid var(--nt-cobalt); border-radius: var(--nt-radius-xs); background: var(--nt-cobalt-soft); font-size: 12px; }
.nt-event--rose { border-color: var(--nt-rose); background: #fdeef4; }
.nt-event--mint { border-color: var(--nt-mint); background: #e6f7ef; }
.nt-event--sun { border-color: var(--nt-sun); background: #fdf3dc; }

/* Reviews: three short quotes with stars, under the app window */
.nt-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 40px 0 64px; text-align: center; }
.nt-stars { color: var(--nt-sun); font-size: 18px; letter-spacing: 3px; }
.nt-reviews p { margin: 8px 0 0; color: var(--nt-on-night-soft); font-size: 15px; }

/* Sheet: the cream or white body that tucks up over the night band */
.nt-sheet { position: relative; z-index: 1; margin-top: calc(var(--nt-radius-sheet) * -1); padding-top: calc(var(--nt-section) * .8); border-radius: var(--nt-radius-sheet) var(--nt-radius-sheet) 0 0; background: var(--nt-paper); }
.nt-sheet--cream { background: var(--nt-cream); }

/* Sections */
.nt-section { padding-block: var(--nt-section); }
.nt-section--cream { background: var(--nt-cream); }
.nt-section--night { background: var(--nt-hero-bg); color: var(--nt-on-night); }
.nt-section--night .nt-lead { color: var(--nt-on-night-soft); }

/* Feature split: copy one side, a cream panel with a floating card the other */
.nt-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.nt-panel { position: relative; padding: 40px; border-radius: var(--nt-radius-lg); background: var(--nt-cream); }
.nt-panel--sky { background: var(--nt-cobalt-soft); }
.nt-list { margin: 20px 0 0; padding: 0; list-style: none; }
.nt-list li { position: relative; padding: 8px 0 8px 30px; }
.nt-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--nt-cobalt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231d63d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.nt-list strong { font-weight: 700; }

/* Cards */
.nt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nt-card { padding: 28px; border: var(--nt-border); border-radius: var(--nt-radius); background: var(--nt-paper); box-shadow: var(--nt-shadow); }
.nt-card p { margin: 10px 0 0; color: var(--nt-soft); }
.nt-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: var(--nt-radius); background: var(--nt-cobalt-soft); color: var(--nt-cobalt); }
.nt-float { position: relative; padding: 16px 18px; border: var(--nt-border); border-radius: var(--nt-radius); background: var(--nt-paper); box-shadow: var(--nt-shadow); font-size: 14px; }

/* Badges */
.nt-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--nt-radius-pill); background: var(--nt-cobalt-soft); color: var(--nt-cobalt-dark); font-size: var(--nt-text-micro); font-weight: 700; white-space: nowrap; }
.nt-badge--sun { background: #fdf0d2; color: #8a5a07; }
.nt-badge--night { background: rgba(255, 255, 255, .14); color: var(--nt-on-night); }

/* Stats */
.nt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nt-stat__num { font-family: var(--nt-serif); font-variation-settings: "SOFT" 100; font-size: clamp(40px, 5vw, 56px); font-weight: 500; line-height: 1; }
.nt-stat__label { margin-top: 8px; color: var(--nt-soft); }

/* Quote */
.nt-quote { margin: 0; font-family: var(--nt-serif); font-variation-settings: "SOFT" 100; font-size: clamp(24px, 3vw, 34px); font-weight: 400; line-height: 1.3; }
.nt-quote__by { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; font-size: 15px; }

/* Pricing */
.nt-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--nt-radius-pill); background: rgba(255, 255, 255, .14); }
.nt-toggle button { padding: 8px 18px; border: 0; border-radius: var(--nt-radius-pill); background: transparent; color: var(--nt-on-night); font: 600 14px var(--nt-sans); white-space: nowrap; cursor: pointer; }
.nt-toggle button[aria-pressed="true"] { background: var(--nt-paper); color: var(--nt-navy); }
.nt-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.nt-plan { display: flex; flex-direction: column; padding: 32px 28px; border: var(--nt-border); border-radius: var(--nt-radius-lg); background: var(--nt-paper); box-shadow: var(--nt-shadow); }
.nt-plan--featured { border: 2px solid var(--nt-cobalt); box-shadow: 0 20px 50px rgba(29, 99, 216, .18); }
.nt-plan__name { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 18px; font-weight: 700; }
.nt-plan__price { margin-top: 18px; font-family: var(--nt-serif); font-variation-settings: "SOFT" 100; font-size: 52px; font-weight: 500; line-height: 1; }
.nt-plan__price small { font-family: var(--nt-sans); color: var(--nt-soft); font-size: 15px; font-weight: 500; }
.nt-plan__desc { margin: 12px 0 0; color: var(--nt-soft); }
.nt-plan .nt-list { flex: 1; margin-bottom: 24px; font-size: 15px; }
.nt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nt-table th, .nt-table td { padding: 14px 12px; border-bottom: var(--nt-border); text-align: left; }
.nt-table th { font-weight: 700; }
.nt-table td:not(:first-child), .nt-table th:not(:first-child) { text-align: center; }
.nt-table-wrap { overflow-x: auto; }

/* FAQ */
.nt-faq details { padding: 18px 0; border-bottom: var(--nt-border); }
.nt-faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.nt-faq summary::-webkit-details-marker { display: none; }
.nt-faq summary::after { content: "+"; color: var(--nt-cobalt); font-size: 22px; line-height: 1; }
.nt-faq details[open] summary::after { content: "\2212"; }
.nt-faq p { margin: 10px 0 0; color: var(--nt-soft); }

/* Article */
.nt-article-head { padding: clamp(48px, 7vw, 88px) 0 calc(var(--nt-radius-sheet) + 48px); }
.nt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; color: var(--nt-on-night-soft); font-size: var(--nt-text-small); }
.nt-prose { font-size: 18px; line-height: 1.75; }
.nt-prose h2 { margin: 48px 0 0; font-family: var(--nt-serif); font-variation-settings: "SOFT" 100; font-size: 32px; font-weight: 500; line-height: 1.2; }
.nt-prose p { margin: 18px 0 0; }
.nt-prose ul { margin: 18px 0 0; padding-left: 22px; }
.nt-prose li { margin-top: 8px; }
.nt-prose blockquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--nt-cobalt); font-family: var(--nt-serif); font-variation-settings: "SOFT" 100; font-size: 24px; line-height: 1.4; }
.nt-callout { margin: 32px 0; padding: 22px 24px; border-radius: var(--nt-radius); background: var(--nt-cream); font-size: 16px; }
.nt-callout strong { display: block; margin-bottom: 4px; }

/* Forms */
.nt-form { display: grid; gap: 18px; }
.nt-field { display: grid; gap: 6px; }
.nt-label { font-size: var(--nt-text-small); font-weight: 600; }
.nt-input, .nt-select { width: 100%; padding: 12px 14px; border: 1px solid #cfd5df; border-radius: var(--nt-radius-sm); background: var(--nt-paper); color: var(--nt-ink); font: 16px var(--nt-sans); }
.nt-input:focus, .nt-select:focus { outline: 3px solid var(--nt-cobalt-soft); border-color: var(--nt-cobalt); }
.nt-hint { color: var(--nt-soft); font-size: var(--nt-text-micro); }
.nt-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--nt-text-small); color: var(--nt-soft); }
.nt-check input { margin-top: 3px; accent-color: var(--nt-cobalt); }
.nt-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nt-choice label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid #cfd5df; border-radius: var(--nt-radius-sm); font-size: 15px; cursor: pointer; }
.nt-choice input { accent-color: var(--nt-cobalt); }
.nt-choice label:has(input:checked) { border-color: var(--nt-cobalt); background: var(--nt-cobalt-soft); }
.nt-formcard { padding: clamp(24px, 4vw, 40px); border-radius: var(--nt-radius-lg); background: var(--nt-paper); box-shadow: var(--nt-shadow-lg); color: var(--nt-ink); }

.nt-formcard .nt-small, .nt-formcard .nt-lead { color: var(--nt-soft); }

/* CTA band */
.nt-cta { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 64px); border-radius: var(--nt-radius-lg); background: var(--nt-hero-bg); color: var(--nt-on-night); text-align: center; }
.nt-cta .nt-actions { justify-content: center; }
.nt-cta .nt-lead { color: var(--nt-on-night-soft); margin-inline: auto; }

/* Footer */
.nt-footer { padding: 64px 0 40px; background: var(--nt-navy); color: var(--nt-on-night-soft); font-size: 15px; }
.nt-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.nt-footer h4 { margin: 0 0 12px; color: var(--nt-on-night); font-size: 15px; }
.nt-footer a { display: block; padding: 4px 0; color: var(--nt-on-night-soft); text-decoration: none; }
.nt-footer a:hover { color: var(--nt-on-night); }
.nt-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--nt-night-line); font-size: var(--nt-text-small); }

/* Phone */
@media (max-width: 960px) {
  .nt-app__body { grid-template-columns: 150px 1fr; }
  .nt-app__aside { display: none; }
  .nt-split, .nt-plans { grid-template-columns: 1fr; }
  .nt-grid { grid-template-columns: 1fr 1fr; }
  .nt-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --nt-radius-sheet: 28px; }
  .nt-nav__links { display: none; }
  .nt-confetti { display: none; }
  .nt-nav__end > a:not(.nt-btn) { display: none; }
  .nt-app__body { grid-template-columns: 1fr; min-height: 0; }
  .nt-app__side { display: none; }
  .nt-app__search { display: none; }
  .nt-reviews, .nt-grid, .nt-stats, .nt-choice { grid-template-columns: 1fr; }
  .nt-reviews { gap: 20px; }
  .nt-panel { padding: 24px; }
  .nt-blob { width: 140px; height: 140px; top: -30px; left: -20px; }
  .nt-blob--sun { width: 80px; height: 80px; right: -10px; left: auto; }
  .nt-tabs button { padding: 8px 12px; }
}
