*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #152b23;
  --forest: #174d39;
  --deep: #112d23;
  --muted: #475b50;
  --soft: #f7f8f3;
  --sage: #edf3eb;
  --line: #d8e2d9;
  --white: #fff;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

html { scroll-behavior: smooth; }
body { min-width: 0; margin: 0; line-height: 1.6; font-kerning: normal; }
h1, h2, h3, h4, p, figure, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #097951; outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }

.shell { width: min(100% - 6rem, 77rem); margin-inline: auto; }
.skip { position: absolute; top: .6rem; left: .6rem; z-index: 2; translate: 0 -200%; background: white; padding: .7rem 1rem; }
.skip:focus { translate: 0; }

.top { background: var(--soft); border-bottom: 1px solid var(--line); }
.bar { min-height: 5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .65rem; color: inherit; text-decoration: none; font-size: 1.55rem; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; width: 1.6rem; aspect-ratio: 1; transform: rotate(-9deg); }
.brand-mark i { background: #3b785b; border-radius: 75% 75% 15% 75%; }
.brand-mark i:nth-child(2) { rotate: 90deg; }
.brand-mark i:nth-child(3) { rotate: -90deg; }
.brand-mark i:nth-child(4) { rotate: 180deg; }
.main-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.65rem); }
.main-nav a { color: var(--muted); font-weight: 650; font-size: .95rem; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--forest); text-decoration: underline; text-decoration-thickness: 2px; }
.header-action { justify-self: end; }
.header-action[aria-current] { color: var(--forest); background: var(--sage); }

.button { min-height: 3rem; min-width: 0; max-width: 100%; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: .55rem; padding: .6rem 1.15rem; font-size: 1rem; line-height: 1.4; font-weight: 650; text-align: center; text-decoration: none; transition: background .18s, color .18s, border-color .18s; }
.button.primary { background: var(--forest); color: var(--white); }
.button.primary:hover { background: #225e46; }
.button.quiet { border-color: #aebfb1; background: transparent; }
.button.quiet:hover { background: #e8efe6; border-color: #89a795; }
.button.light { background: #e1f1e3; color: var(--deep); }
.button.light:hover { background: var(--white); }
.button.inverse { color: #f4fbf4; border-color: #9eb6a9; }
.button.inverse:hover { background: #ffffff1a; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; margin-top: 1.65rem; }
.text-link { display: inline-block; max-width: 100%; padding-block: .2rem; color: var(--forest); font-weight: 650; line-height: 1.45; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero { background: var(--soft); padding-block: clamp(2.75rem, 5.9vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: center; }
.eyebrow { color: #2a634a; font-size: .875rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.hero h1 { margin: .9rem 0 1.05rem; font-size: clamp(3rem, 4.65vw, 5.5rem); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.hero-accent { display: block; color: #2e694e; }
.hero-intro, .page-intro { max-width: 35rem; color: var(--muted); font-size: clamp(1.06rem, 1.55vw, 1.2rem); }
.hero-art { overflow: hidden; border-radius: 1.25rem; border: 1px solid #cbdacc; background: #dde9dd; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.section { padding-block: clamp(2.75rem, 6vw, 5.8rem); }
.section-heading { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.green { --tint: #e8f1e8; --text-accent: #245b43; --accent: #a8c8ad; }
.purple { --tint: #f0ebf8; --text-accent: #59417d; --accent: #c9b5e5; }
.coral { --tint: #f7ede6; --text-accent: #853f30; --accent: #e4b7a8; }
.gold { --tint: #f7efd9; --text-accent: #6d541a; --accent: #d8c184; }
.app-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: clamp(1.1rem, 2.2vw, 1.75rem); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: .9rem; background: var(--white); transition: border-color .18s, box-shadow .18s; }
.app-card:hover, .app-card:focus-within { border-color: var(--accent); box-shadow: 0 .5rem 1.7rem #1f392a0d; }
.card-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; width: 100%; }
.app-icon { display: grid; place-items: center; flex: none; width: 3.3rem; aspect-ratio: 1; border-radius: .8rem; color: var(--text-accent); background: var(--tint); }
.app-icon svg { width: 56%; height: 56%; }
.category { color: var(--text-accent); font-size: .9rem; font-weight: 650; }
.card-body h3 { font-size: clamp(1.55rem, 2.45vw, 2.2rem); margin-bottom: .5rem; }
.card-body p { color: var(--muted); }
.app-card .text-link { margin-top: auto; }

.portfolio-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; margin-top: 1.25rem; }
.more-panel { min-width: 0; background: var(--soft); border: 1px solid var(--line); padding: 1.15rem; border-radius: .85rem; }
.more-panel h3 { font-size: 1.05rem; letter-spacing: -.015em; margin-bottom: .75rem; }
.upcoming-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.app-row { display: flex; align-items: center; min-width: 0; min-height: 3.8rem; gap: .65rem; padding: .45rem .65rem; text-decoration: none; border-radius: .6rem; border: 1px solid var(--line); background: var(--white); }
.app-row:hover { border-color: #899f8f; }
.app-row:hover strong { text-decoration: underline; }
.app-row .app-icon { width: 2.4rem; border-radius: .55rem; }
.app-row strong, .app-row small { display: block; }
.app-row strong { font-weight: 700; }
.app-row small { color: var(--muted); font-size: .875rem; }

.support-band { padding-block: clamp(2.45rem, 5vw, 4.4rem); background: var(--deep); color: var(--white); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.35rem; }
.band-inner h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); }
.band-inner p { margin-top: .6rem; color: #d6e7d9; }
.band-inner .actions { margin-top: 0; flex: none; }

.inner-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding-block: 1.15rem clamp(2.8rem, 6vw, 5.7rem); }
.inner-hero h1 { max-width: 58rem; margin-top: .4rem; font-size: clamp(2.35rem, 5.7vw, 5.25rem); letter-spacing: -.03em; overflow-wrap: break-word; }
.inner-hero .page-intro { margin-top: 1rem; }
.breadcrumbs { margin-bottom: clamp(1.7rem, 4vw, 3rem); color: var(--muted); font-size: .9rem; }
.breadcrumbs ol { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .6rem; color: #638071; }
.breadcrumbs [aria-current] { font-weight: 650; }
.product-hero { background: linear-gradient(125deg, var(--tint), var(--soft) 76%); }
.product-lockup { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(.7rem, 2vw, 1.35rem); }
.product-lockup .app-icon { width: clamp(3.5rem, 7vw, 5.5rem); background: var(--white); border: 1px solid var(--accent); }
.product-lockup .eyebrow { color: var(--text-accent); }
.release-note { margin-top: 1.35rem; color: var(--muted); font-weight: 650; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1.25rem 0 0; }
.feature-list > div { padding: 1.25rem; border: 1px solid var(--line); border-radius: .75rem; }
.feature-list dt { font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; }
.feature-list dd, .split-section p, .readable p { color: var(--muted); }
.product-support { background: var(--sage); }
.split-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.25rem, 5vw, 5rem); align-items: start; }
.split-section p { margin-top: .75rem; max-width: 42rem; }
.link-list { display: grid; }
.link-list a { padding: .7rem 0; border-bottom: 1px solid #b9c9ba; font-weight: 650; }
.link-list a:hover { color: var(--forest); }
.split-section h2 + .link-list { margin-top: .6rem; }
.readable { max-width: 50rem; }
.readable p { margin-bottom: 1rem; }
.company-details { background: var(--soft); padding: clamp(1.15rem, 2.5vw, 2rem); border-radius: .85rem; border: 1px solid var(--line); }
.company-details h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.company-details dl { margin-block: .8rem; }
.company-details dl > div { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.company-details dt { color: var(--muted); font-size: .9rem; }
.company-details dd { font-weight: 650; }
.company-details .button { margin-top: 1rem; }
.company-page { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.company-group { margin-top: 2rem; }
.company-group + .company-group { margin-top: 2.35rem; }
.company-group h3 { padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.company-product { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; padding-block: 1.1rem; }
.company-product + .company-product { border-top: 1px solid var(--line); }
.company-product h4 { font-size: 1.2rem; }
.company-product p { margin-top: .45rem; }
.company-product .text-link { margin-top: .55rem; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 1.2rem; }

.footer { padding-block: 2.7rem 1.2rem; background: var(--soft); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.footer-brand p { color: var(--muted); margin-top: .75rem; }
.footer-links { display: flex; flex-direction: column; gap: .35rem; align-items: start; }
.footer-links p { font-weight: 750; margin: 0 0 .15rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1rem; color: var(--muted); font-size: .875rem; }

@media (max-width: 64rem) {
  .shell { width: calc(100% - 3rem); }
}
@media (max-width: 49rem) {
  .hero-grid, .split-section, .portfolio-more { grid-template-columns: 1fr; }
  .hero-grid { gap: 1.7rem; }
  .hero-copy { max-width: 35rem; }
  .hero-art { max-width: 40rem; }
  .card-grid { grid-template-columns: 1fr; }
  .app-card { padding: 1.15rem; gap: .85rem; }
  .app-card .text-link { margin-top: .2rem; }
  .band-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 34rem) {
  .shell { width: calc(100% - 2rem); }
  .bar { grid-template-columns: 1fr auto; padding-block: .7rem; gap: .6rem; }
  .main-nav { grid-area: 2 / 1 / 3 / -1; flex-wrap: wrap; gap: .35rem 1.25rem; padding: .6rem 0 .05rem; border-top: 1px solid var(--line); }
  .header-action { grid-area: 1 / 2; min-height: 2.35rem; }
  .hero h1 { font-size: clamp(2.4rem, 8.9vw, 3.5rem); }
  .hero .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
  .hero-art { border-radius: .9rem; }
  .portfolio-more, .upcoming-list, .support-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
