/* LastCard: shared controls and homepage section layouts */
:root {
  --pale-blue: #eef4fc;
  --radius: 12px;
}
.inner {
  max-width: 1160px;
}
.narrow {
  max-width: 760px;
}
.header {
  max-width: none;
  height: 80px;
  padding-inline: max(24px, calc((100vw - 1360px) / 2));
}
.desktop-nav {
  gap: 20px;
  font-size: 13px;
}
.brand {
  width: 150px;
}
.button {
  border-radius: 8px;
  gap: 14px;
  min-height: 52px;
  padding: 13px 22px;
  line-height: 1.5;
}
.button.secondary {
  background: white;
  border-color: var(--blue);
  color: var(--blue);
}
.button.secondary:hover {
  background: #e5edfa;
}
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
}
.button .icon {
  width: 20px;
  height: 20px;
}
.page-title {
  font-size: clamp(30px, 4vw, 44px);
}
.home .section {
  padding-block: 96px;
}
.home .section-intro {
  margin-bottom: 40px;
}
.home .lead {
  font-size: 17px;
}
.home .eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.home h2 {
  font-size: clamp(30px, 3.1vw, 40px);
  line-height: 1.5;
}
.home p {
  overflow-wrap: anywhere;
}
.mobile-only {
  display: none;
}
.home-hero {
  position: relative;
  display: block;
  min-height: 690px;
  background: linear-gradient(120deg, #fff 40%, #eef4fc);
  overflow: hidden;
}
.home-hero .hero-content {
  position: relative;
  z-index: 2;
  padding-block: 96px 100px;
  pointer-events: none;
}
.home-hero .hero-content a {
  pointer-events: auto;
}
.location-label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}
.home-hero h1 {
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.4;
  margin-bottom: 24px;
}
.home-hero .hero-lead {
  font-size: 19px;
}
.home-hero .hero-note {
  font-size: 15px;
}
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #ffffffee 0%,
    #ffffffd9 30%,
    #ffffff88 48%,
    transparent 75%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  right: 32px;
  color: #536171;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.needs .section-intro {
  text-align: center;
}
.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.need-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.need-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 30px #1723330d;
  transform: translateY(-4px);
}
.icon-tile {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  background: var(--pale-blue);
  color: var(--blue);
  border-radius: 16px;
  margin-bottom: 24px;
}
.icon-tile .icon {
  width: 34px;
  height: 34px;
}
.need-card h3 {
  font-size: 23px;
}
.need-card p {
  color: #536171;
  font-size: 14px;
  margin: 16px 0 28px;
}
.card-action {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.services-section {
  background: var(--pale-blue);
}
.service-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 40px 64px;
}
.service-panel + .service-panel {
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.service-panel:nth-of-type(2) figure {
  order: 2;
}
.service-panel figure {
  min-width: 0;
}
.service-panel figure img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fff;
  padding: 12px;
  box-shadow: 0 16px 40px #2555a40b;
}
.service-panel figcaption {
  text-align: right;
  color: #536171;
  font-size: 12px;
  margin-top: 8px;
}
.service-copy {
  position: relative;
}
.service-label {
  font-size: 13px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.service-copy h3 {
  font-size: 29px;
  margin-bottom: 20px;
}
.service-copy > p:not(.service-label) {
  font-size: 16px;
}
.legacy-anchor {
  scroll-margin-top: 104px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  font-size: 14px;
  display: grid;
  gap: 8px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: start;
}
.check-list .icon {
  color: var(--blue);
  width: 19px;
  height: 25px;
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.support-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 12px;
  background: white;
  border: 1px solid #dce5f1;
}
.support-card h3 {
  margin-bottom: 16px;
}
.support-card > p:not(.service-label) {
  font-size: 16px;
}
.support-card .support-tags {
  color: #536171;
  font-size: 13px !important;
  margin-block: 20px 28px;
}
.support-card .button {
  align-self: start;
  margin-top: auto;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
}
.work-image {
  aspect-ratio: 2/1;
  background: #edf2f7;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.work-text-cover {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #eef4fc, #e0e8f3);
  color: #2555a4;
}
.work-text-cover .icon {
  width: 32px;
  height: 32px;
}
.work-text-cover span {
  font-size: 20px;
  font-weight: 700;
}
.work-text-cover small {
  font-size: 12px;
}
.work-copy {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.kind-label {
  align-self: start;
  padding: 4px 9px;
  background: var(--pale-blue);
  color: var(--blue);
  font-size: 11px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.work-copy h3 {
  font-size: 21px;
  margin-bottom: 16px;
}
.work-copy p {
  font-size: 15px;
  color: #536171;
  margin-bottom: 24px;
}
.work-copy .button {
  margin-top: auto;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
  padding: 12px;
}
.work-copy .button small {
  font-size: 10px;
  font-weight: 400;
}
.section-bottom {
  margin-top: 40px;
  text-align: center;
}
.usecases {
  background: #172333;
  color: white;
}
.usecase-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}
.usecases .eyebrow {
  color: #a8c9ff;
}
.usecases .lead {
  color: #d3dfef;
}
.usecases .button {
  background: white;
  color: #183b73;
}
.usecases .button:hover {
  background: #dce8fa;
}
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.usecase-card {
  padding: 28px;
  background: #223247;
  border: 1px solid #3b4c63;
  border-radius: 12px;
}
.usecase-card > .icon {
  width: 32px;
  height: 32px;
  color: #a8c9ff;
  margin-bottom: 18px;
}
.usecase-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.usecase-card p {
  color: #d3dfef;
  font-size: 15px;
}
.usecase-card .text-link {
  color: #bcd6ff;
  font-size: 13px;
  margin-top: 20px;
}
.flow-strip {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-top: 1px solid #3b4c63;
  padding-top: 32px;
}
.flow-strip span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.flow-strip .icon {
  color: #a8c9ff;
}
.usecase-note {
  grid-column: 1/-1;
  margin-top: -24px;
  text-align: center;
  font-size: 13px;
  color: #bac9db;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}
.timeline li {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 0 16px 8px 0;
}
.step-number {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-top: -24px;
  margin-bottom: 24px;
  box-shadow: 0 0 0 10px white;
}
.timeline h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.timeline p {
  font-size: 15px;
  color: #536171;
}
.pricing-section {
  background: #f4f6f8;
}
.pricing-label {
  font-size: 14px;
  color: #536171;
  margin-bottom: 16px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 12px 12px;
  padding: 28px;
}
.price-card h3 {
  font-size: 21px;
  margin: 16px 0;
}
.price-card p {
  font-size: 15px;
  color: #536171;
}
.price-card ul {
  padding-left: 20px;
  margin: 24px 0 0;
  font-size: 14px;
}
.budget-strip {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  background: #e6eef9;
  border-radius: 12px;
  margin-top: 32px;
}
.budget-strip p {
  font-size: 16px;
}
.founder-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}
.founder-layout figure img {
  border-radius: 16px;
  width: 300px;
}
.founder-layout figcaption {
  margin-top: 20px;
  font-size: 14px;
}
.founder-layout figcaption strong {
  font-size: 18px;
}
.founder-quote {
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.6;
}
.founder-layout p:not(.founder-quote) {
  font-size: 16px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.principles > div {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.principles span {
  color: var(--blue);
  font-size: 13px;
}
.principles h3 {
  font-size: 20px;
  margin-block: 10px;
}
.principles p {
  font-size: 15px;
  color: #536171;
}
.locations-section {
  background: var(--pale-blue);
}
.locations-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.location-visual {
  background: white;
  padding: 48px 32px;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  text-align: center;
}
.location-visual > .icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
}
.location-pref {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #536171;
  letter-spacing: 0.08em;
}
.location-points {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 32px;
  color: var(--blue);
}
.location-points strong {
  background: #eef4fc;
  border-radius: 50%;
  width: 132px;
  height: 132px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  line-height: 1.5;
}
.location-points span {
  height: 1px;
  width: 36px;
  background: #9eafc5;
}
.location-visual p {
  font-weight: 700;
  font-size: 18px;
}
.location-visual small {
  font-size: 10px;
  color: #536171;
}
.locations-layout .section-intro {
  margin-bottom: 24px;
}
.locations-layout > div > p {
  font-size: 16px;
}
.nationwide {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 24px;
}
.faq-layout {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 64px;
}
.home .faq summary {
  font-size: 16px;
  padding-block: 24px;
}
.home .faq details p {
  font-size: 15px;
}
.contact-banner {
  position: relative;
  isolation: isolate;
  background: #172333;
  color: white;
  padding-block: 80px;
}
.contact-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.contact-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #17233366, transparent);
  z-index: -1;
}
.contact-banner .eyebrow {
  color: #bed6fa;
}
.contact-banner h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 24px;
}
.contact-banner p:not(.eyebrow) {
  font-size: 16px;
}
.contact-banner .button {
  margin-top: 28px;
  background: white;
  color: #183b73;
}
.contact-banner .button:hover {
  background: #dce8fa;
}
.contact-mail {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 14px;
  margin-top: 24px;
}
.site-footer {
  background: #172333;
  color: #d3dfef;
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 40px;
}
.footer-grid .footer-brand {
  color: white;
}
.footer-grid p {
  font-size: 13px;
  margin-top: 16px;
}
.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.footer-grid nav strong {
  color: #a8c9ff;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.footer-grid nav a {
  text-decoration: none;
}
.footer-grid nav a:hover {
  text-decoration: underline;
}
.site-footer .footer-bottom {
  border-color: #3b4c63;
}
@media (max-width: 1200px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
    border: 0;
    background: none;
    padding: 12px;
  }
  .home-hero h1 {
    font-size: 50px;
  }
  .service-panel {
    gap: 32px;
  }
  .service-copy h3 {
    font-size: 26px;
  }
  .usecase-layout {
    gap: 32px;
  }
  .work-copy {
    padding: 20px;
  }
}
@media (max-width: 1023px) {
  .needs-grid,
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .need-card:last-child {
    grid-column: 1/-1;
  }
  .need-card:last-child h3 br {
    display: none;
  }
  .usecase-layout {
    grid-template-columns: 1fr;
  }
  .usecase-layout > div:first-child {
    max-width: 680px;
  }
  .usecase-layout h2 br {
    display: none;
  }
  .pricing-grid {
    gap: 16px;
  }
  .price-card {
    padding: 22px;
  }
  .budget-strip {
    align-items: start;
    flex-direction: column;
  }
  .founder-layout {
    gap: 32px;
    grid-template-columns: 240px 1fr;
  }
  .locations-layout {
    gap: 32px;
  }
  .location-visual {
    padding: 32px 16px;
  }
  .location-points strong {
    width: 100px;
    height: 100px;
    font-size: 15px;
  }
  .faq-layout {
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .header {
    height: 64px;
    padding-inline: 20px;
  }
  .brand {
    width: 135px;
  }
  .home .section {
    padding-block: 64px;
  }
  .home .section-intro {
    margin-bottom: 32px;
  }
  .home h2 {
    font-size: 28px;
  }
  .home .lead {
    font-size: 16px;
  }
  .mobile-only {
    display: initial;
  }
  .home-hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .home-hero .hero-content {
    padding-block: 40px 24px;
  }
  .location-label {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .home-hero .eyebrow {
    font-size: 9px;
  }
  .home-hero h1 {
    font-size: clamp(32px, 8.5vw, 42px);
  }
  .home-hero .hero-lead {
    font-size: 16px;
  }
  .home-hero .hero-note {
    font-size: 14px;
  }
  .hero-visual {
    position: static;
    height: 280px;
    overflow: hidden;
  }
  .hero-visual img {
    object-fit: cover;
    object-position: center bottom;
  }
  .home-hero::after {
    display: none;
  }
  .hero-caption {
    position: static;
    text-align: center;
    padding: 10px 16px 16px;
    font-size: 9px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: stretch;
    gap: 12px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .needs-grid,
  .works-grid,
  .support-grid,
  .pricing-grid,
  .principles,
  .locations-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .need-card:last-child {
    grid-column: auto;
  }
  .need-card {
    padding: 28px;
  }
  .need-card h3 {
    font-size: 22px;
  }
  .need-card h3 br {
    display: none;
  }
  .needs .section-intro {
    text-align: left;
  }
  .service-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 16px 40px;
  }
  .service-panel + .service-panel {
    padding-top: 40px;
  }
  .service-panel:nth-of-type(2) figure {
    order: 0;
  }
  .service-copy h3 {
    font-size: 25px;
  }
  .service-copy .button {
    width: 100%;
  }
  .support-card {
    padding: 28px;
  }
  .support-card h3 {
    font-size: 23px;
  }
  .support-card .button {
    align-self: stretch;
  }
  .work-copy {
    padding: 24px;
  }
  .work-image {
    aspect-ratio: 2/1;
  }
  .work-copy h3 {
    font-size: 22px;
  }
  .work-copy .button {
    align-self: stretch;
  }
  .section-bottom .button {
    width: 100%;
  }
  .usecase-grid {
    grid-template-columns: 1fr;
  }
  .usecase-card {
    padding: 24px;
  }
  .usecase-layout {
    gap: 32px;
  }
  .usecase-layout h2 br {
    display: initial;
  }
  .flow-strip {
    flex-direction: column;
    gap: 16px;
    padding-top: 28px;
  }
  .flow-strip > .icon {
    transform: rotate(90deg);
  }
  .usecase-note {
    margin-top: 0;
    text-align: left;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
    padding-left: 24px;
  }
  .timeline li {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 0 0 32px 40px;
    min-height: 145px;
  }
  .timeline li:last-child {
    padding-bottom: 0;
    border-color: transparent;
  }
  .step-number {
    position: absolute;
    left: -24px;
    top: 0;
    margin: 0;
    width: 48px;
    height: 48px;
  }
  .timeline h3 {
    padding-top: 8px;
  }
  .price-card {
    padding: 28px;
  }
  .budget-strip {
    padding: 24px;
  }
  .budget-strip .button {
    width: 100%;
  }
  .budget-strip p {
    font-size: 15px;
  }
  .founder-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .founder-layout figure {
    width: 240px;
  }
  .founder-quote {
    font-size: 23px;
  }
  .principles {
    margin-top: 40px;
    gap: 24px;
  }
  .company-title {
    margin-top: 48px;
  }
  .location-visual {
    padding: 32px 24px;
  }
  .location-points strong {
    width: 118px;
    height: 118px;
  }
  .locations-layout .button {
    width: 100%;
  }
  .faq-layout > div:first-child .button {
    display: none;
  }
  .contact-banner {
    padding-block: 0 56px;
  }
  .contact-banner > img {
    position: static;
    height: 220px;
    object-fit: cover;
    object-position: right;
    margin-bottom: 40px;
  }
  .contact-banner::after {
    display: none;
  }
  .contact-banner h2 {
    font-size: 26px;
  }
  .contact-banner .button {
    width: 100%;
  }
  .contact-mail {
    font-size: 13px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-grid > div {
    grid-column: 1/-1;
  }
  .footer-grid nav {
    font-size: 12px;
  }
  .site-footer .footer-bottom {
    flex-direction: row;
    align-items: center;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .need-card:hover {
    transform: none;
  }
}
