/* Whiskeysoft website — one stylesheet, tokens first. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand tokens (approved logo sheet) */
  --whiskey-brown: #30180F;
  --amber: #E88B27;
  --charcoal: #4A4A4A;
  --warm-cream: #FAF7F2;
  --teal: #008F89;
  --white: #FFFFFF;

  /* Derived for accessible contrast */
  --amber-ink: #A3540C;      /* amber text on white/cream: 5.2:1 */
  --amber-hover: #F09A3C;
  --brown-900: #24110A;
  --brown-700: #4A2A1C;
  --ink: #2B211C;            /* body text: warm near-black */
  --muted: #5F5751;          /* secondary text on white/cream: 6.6:1 */
  --cream-on-dark: #F3E9DC;
  --muted-on-dark: #D6C6B4;
  --line: #E9E1D6;
  --line-strong: #D9CCBB;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(48 24 15 / 6%), 0 8px 24px -12px rgb(48 24 15 / 18%);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--whiskey-brown); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 780; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--amber-ink); text-underline-offset: .18em; }
a:hover { color: var(--whiskey-brown); }
ul { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: #FFC37A; }
main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--amber); color: var(--whiskey-brown); font-weight: 700;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-block; margin: 0 0 .9rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-ink);
}
.eyebrow--on-dark { color: var(--amber); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--amber { background: var(--amber); color: var(--whiskey-brown); }
.btn--amber:hover { background: var(--amber-hover); color: var(--whiskey-brown); }
.btn--ghost { border-color: var(--line-strong); color: var(--whiskey-brown); background: var(--white); }
.btn--ghost:hover { border-color: var(--whiskey-brown); color: var(--whiskey-brown); }
.btn--dark { background: var(--whiskey-brown); color: var(--white); }
.btn--dark:hover { background: var(--brown-700); color: var(--white); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions--center { justify-content: center; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--whiskey-brown); color: var(--white); border-bottom: 1px solid rgb(232 139 39 / 22%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-header__brand { display: block; flex: none; padding: 6px 0; border-radius: 8px; }
.site-header__brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--cream-on-dark); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.site-nav ul a:hover { color: var(--white); background: rgb(255 255 255 / 8%); }
.site-nav ul a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 8px 8px 0 0; }

.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  background: transparent; color: var(--white); border: 1px solid rgb(255 255 255 / 25%); border-radius: 10px;
  font: inherit; font-weight: 600; cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .site-header__brand img { height: 34px; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px; background: var(--whiskey-brown);
    border-bottom: 1px solid rgb(232 139 39 / 30%); box-shadow: 0 16px 32px rgb(0 0 0 / 25%);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 2px; }
  .js .site-nav ul a { padding: 14px 12px; font-size: 1.08rem; border-bottom: 1px solid rgb(255 255 255 / 8%); border-radius: 0; }
  .js .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); }
  .js .site-nav .btn { min-height: 48px; }
  /* Without JavaScript the links stay visible and wrap below the logo. */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 8px; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--cream { background: var(--warm-cream); }
.section--dark { background: var(--whiskey-brown); color: var(--cream-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--tight-top { padding-top: 16px; }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { margin-bottom: .3em; }
.section__head p:last-child { color: var(--muted); margin: 0; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); background: var(--white); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.brand-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(24px, 3.4vw, 40px);
}
.brand-panel__logo { width: 100%; max-width: 522px; margin: 0 auto; }
.brand-panel__shelf { margin-top: clamp(20px, 3vw, 32px); padding-top: 20px; border-top: 1px solid var(--line); }
.brand-panel__label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.shelf { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } .shelf a { flex-direction: column; align-items: flex-start; } }
.shelf li { display: flex; }
.shelf a {
  flex: 1;
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px;
  text-decoration: none; color: var(--ink); background: var(--warm-cream); border: 1px solid transparent;
}
.shelf a:hover { border-color: var(--line-strong); color: var(--ink); }
.shelf img, .shelf .mono { width: 44px; height: 44px; flex: none; border-radius: 10px; }
.shelf strong { display: block; color: var(--whiskey-brown); line-height: 1.2; }
.shelf small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.mono {
  display: inline-grid; place-items: center; background: var(--plate); color: var(--accent);
  font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.card__plate-link { display: block; }
.plate {
  display: grid; place-items: center; height: 168px; padding: 24px 32px; background: var(--plate);
}
.plate--bordered { border-bottom: 1px solid var(--line); }
.card .plate { border-bottom: 1px solid var(--line); }
.plate__logo--card { max-height: 88px; width: auto; max-width: 78%; }
.plate__logo--hero { max-height: 180px; width: auto; max-width: 82%; }
.plate__name {
  font-weight: 800; letter-spacing: .22em; color: var(--white); line-height: 1;
  padding-left: .22em; /* balance trailing letter-spacing */
  border-bottom: 3px solid var(--accent); padding-bottom: .25em;
}
.plate__name--card { font-size: 2.2rem; }
.plate__name--hero { font-size: clamp(2.6rem, 6vw, 4rem); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px clamp(20px, 2.4vw, 28px) 26px; }
.card__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.card__meta .eyebrow { margin: 0; }
.card__title { font-size: 1.6rem; margin-bottom: .3em; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.card__summary { color: var(--muted); }
.card__actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card__cta { font-weight: 700; text-decoration: none; margin-left: auto; }
.card__cta:hover { text-decoration: underline; }
.card__more { font-weight: 600; color: var(--muted); }

.checks { display: grid; gap: 8px; margin-bottom: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; 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 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%2330180F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.planned li { position: relative; padding-left: 28px; color: var(--muted); }
.planned li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 12px; height: 12px; border-radius: 50%; border: 2px dashed var(--muted); }

.status {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--available { background: #E3F4E8; color: #1E6B35; }
.status--private-beta { background: #DDF2F1; color: #00625E; }
.status--in-development { background: #FCEBD6; color: #8A4609; }
.status--coming-soon { background: #ECE8E3; color: #4F4740; }

/* ---------- solutions & principles ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.solution { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); display: flex; flex-direction: column; }
.solution p { color: var(--muted); }
.solution .text-link { margin-top: auto; }
.solution__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: var(--warm-cream) center/28px no-repeat; border: 1px solid var(--line);
}
.solution__icon--business { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3540C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E"); }
.solution__icon--creative { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3540C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E"); }
.solution__icon--automation { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3540C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgb(255 255 255 / 14%); }
.principles li { padding: 28px 28px 28px 0; border-bottom: 1px solid rgb(255 255 255 / 14%); }
.principles li:nth-child(3n+2), .principles li:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid rgb(255 255 255 / 14%); }
.principles h3 { color: var(--amber); font-size: 1.15rem; }
.principles p { color: var(--muted-on-dark); margin: 0; }

@media (max-width: 900px) {
  .solutions { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles li, .principles li:nth-child(n) { padding: 24px 20px 24px 0; border-left: 0; }
  .principles li:nth-child(2n) { padding-left: 20px; border-left: 1px solid rgb(255 255 255 / 14%); }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principles li:nth-child(n) { padding: 22px 0; border-left: 0; }
}

/* ---------- about, page heroes ---------- */
.about-teaser, .about-cols, .availability, .product-overview {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start;
}
.about-teaser .lede { color: var(--ink); }
.page-hero { padding-block: clamp(44px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.page-hero--center { text-align: center; padding-block: clamp(72px, 12vw, 140px); }
.page-hero--center .lede { margin-inline: auto; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.about-hero__mark img { width: 148px; height: auto; }
.prose { max-width: 42em; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink); }

/* ---------- product page ---------- */
.crumbs { padding-top: 20px; font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.product-hero { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px); }
.product-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.product-hero .card__meta { justify-content: flex-start; }
.product-hero__tagline { font-size: 1.25rem; font-weight: 700; color: var(--whiskey-brown); margin-top: -.2em; }
.product-hero__plate .plate { height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.features li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--accent, var(--amber)); }
.features p { margin: 0; color: var(--muted); }
.availability__status .status { font-size: .95rem; padding: 6px 14px; }
.availability .lede { color: var(--ink); }
.cards--related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.shots { display: grid; gap: 24px; margin-top: 40px; }
.solution-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.solution-detail h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 0; }
.solution-detail .planned { margin-bottom: 0; }
.solution-detail__lists > ul + h3 { margin-top: 28px; }
.solution-detail__products { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 600; }

.signins { display: grid; gap: 16px; max-width: 640px; }
.signins li { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.signins img { width: 52px; height: 52px; border-radius: 12px; }

@media (max-width: 900px) {
  .about-teaser, .about-cols, .availability, .product-overview, .product-hero__grid, .solution-detail { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero__mark { order: -1; }
  .about-hero__mark img { width: 104px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--whiskey-brown); color: var(--muted-on-dark); padding-top: clamp(48px, 6vw, 72px); border-top: 4px solid var(--amber); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer__brand img { height: 60px; width: auto; }
.site-footer__h { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: var(--cream-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__base { margin-top: 48px; padding-block: 22px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .9rem; }
.site-footer__base p { margin: 0; }
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
