/*
 * Street Engineer test homepage — Figma Make structure, current bright brand.
 * Reference lock: docs/home-figma-structure-test.md
 */

body.se-renewal-home {
  --se-page: #ffffff;
  --se-surface: #ffffff;
  --se-soft: #f1f8fd;
  --se-soft-strong: #e2f2fc;
  --se-ink: #172b3f;
  --se-body: #465c6d;
  --se-muted: #718491;
  --se-line: #dce8ef;
  --se-line-strong: #bed2de;
  --se-blue: #0877c9;
  --se-blue-deep: #055c9f;
  --se-blue-soft: #e4f3ff;
  --se-yellow: #ffd33d;
  --se-yellow-hover: #f5c31a;
  --se-green: #118166;
  --se-amber: #a56500;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--se-page);
  color: var(--se-ink);
  font-size: 16px;
  line-height: 1.65;
}

.se-renewal-home main {
  overflow: clip;
  background: var(--se-page);
}

.se-renewal-home h1,
.se-renewal-home h2,
.se-renewal-home h3,
.se-renewal-home p,
.se-renewal-home blockquote {
  margin: 0;
}

.se-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.se-eyebrow {
  color: var(--se-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.se-section {
  padding-block: 112px;
}

.se-section__head h2,
.se-story__copy h2,
.se-final h2 {
  color: var(--se-ink);
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-wrap: balance;
}

.se-section__head > p:last-child {
  max-width: 42rem;
  margin-top: 18px;
  color: var(--se-body);
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}

.se-section__head--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.se-section__head--center .se-eyebrow {
  margin-bottom: 16px;
}

.se-section__head--center > p:last-child {
  margin-inline: auto;
}

#discover,
#how-it-works {
  scroll-margin-top: 76px;
}

/* Header */
.se-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 72px;
  border-bottom: 1px solid rgba(190, 210, 222, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 24px rgba(30, 76, 103, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.se-header__inner {
  width: min(1200px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.se-header__logo {
  gap: 10px;
  color: var(--se-ink);
  font-size: 19px;
}

.se-header__logo img {
  width: 48px;
  height: 48px;
}

.se-header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.se-header__nav a {
  position: relative;
  color: var(--se-body);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.se-header__nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--se-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.se-header__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.se-header__actions {
  margin-left: 0;
  gap: 10px;
}

.se-header__search-jump {
  display: none;
}

.se-header__login {
  min-width: 72px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--se-muted);
  font-size: 13px;
  font-weight: 700;
}

.se-header__login small {
  display: none;
}

.se-header__publish {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--se-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.se-header__publish:hover {
  background: var(--se-blue-deep);
  transform: translateY(-1px);
}

.se-header .se-theme-toggle {
  color: var(--se-body);
}

/* Hero */
.se-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #eef8ff;
}

.se-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.se-hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.93) 31%, rgba(255,255,255,.46) 54%, rgba(255,255,255,.08) 76%),
    linear-gradient(0deg, rgba(232,247,255,.52), transparent 36%);
}

.se-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 52px 46px;
}

.se-hero__copy {
  max-width: 760px;
}

.se-hero__tagline {
  margin: 0 0 10px;
  color: #294a61;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 750;
  letter-spacing: 0.015em;
  line-height: 1.6;
}

.se-hero h1 {
  color: #122b42;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
}

.se-hero__lead {
  max-width: 36rem;
  margin-top: 12px !important;
  color: #334f63;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.85;
  text-wrap: pretty;
}

.se-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.se-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.se-button:hover {
  transform: translateY(-2px);
}

.se-button--primary {
  border-color: var(--se-yellow);
  background: var(--se-yellow);
  color: #172634 !important;
  box-shadow: 0 10px 24px rgba(138, 105, 0, 0.14);
}

.se-button--primary:hover {
  border-color: var(--se-yellow-hover);
  background: var(--se-yellow-hover);
  box-shadow: 0 14px 28px rgba(138, 105, 0, 0.19);
}

.se-button--secondary {
  border-color: rgba(27, 66, 91, 0.28);
  background: rgba(255, 255, 255, 0.8);
  color: var(--se-ink) !important;
}

.se-button--secondary:hover {
  border-color: var(--se-blue);
  background: #fff;
}

/* Compact metrics: same scale as the v1 reference. */
.se-stats {
  width: min(100%, 520px);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 42, 48, 0.18);
}

.se-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0;
  text-align: left;
}

.se-stat strong {
  color: var(--se-blue);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 32px;
}

.se-stat span {
  color: #4d5f67;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 16px;
}

/* Discovery */
.se-discover {
  padding-block: 72px 96px;
}

.se-section__head--discover {
  display: block;
}

.se-section__head--discover .se-eyebrow {
  margin-bottom: 10px;
}

.se-section__head--discover h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.se-search {
  height: 76px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-top: 44px;
  padding: 10px 10px 10px 24px;
  border: 2px solid var(--se-line-strong);
  border-radius: 18px;
  background: var(--se-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.se-search:focus-within {
  border-color: var(--se-blue);
  box-shadow: 0 0 0 5px rgba(8, 119, 201, 0.11);
}

.se-search > .sm-icon {
  width: 25px;
  height: 25px;
  color: var(--se-blue);
}

.se-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--se-ink);
  font-size: 17px;
}

.se-search input::placeholder {
  color: #8798a3;
}

.se-search button {
  height: 52px;
  padding-inline: 26px;
  border-radius: 12px;
  background: var(--se-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.se-search button:hover {
  background: var(--se-blue-deep);
}

.se-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.se-category-tab {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--se-line-strong);
  border-radius: 4px;
  background: var(--se-surface);
  color: var(--se-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.se-category-tab:hover {
  border-color: var(--se-blue);
  color: var(--se-blue);
}

.se-category-tab.is-active {
  border-color: var(--se-blue);
  background: var(--se-blue);
  color: #fff;
}

.se-category-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.se-category-more button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: var(--se-blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.se-category-more .sm-icon {
  width: 17px;
  height: 17px;
  transition: transform 180ms ease;
}

.se-category-more button[aria-expanded="true"] .sm-icon {
  transform: rotate(180deg);
}

.se-subcategories {
  margin-top: 12px;
  padding: 28px;
  border: 1px solid var(--se-line);
  border-radius: 18px;
  background: var(--se-soft);
}

.se-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 30px;
}

.se-subcategory-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--se-ink);
  font-size: 14px;
  font-weight: 800;
}

.se-subcategory-group h3 a {
  color: var(--se-blue);
  font-size: 11px;
  font-weight: 700;
}

.se-subcategory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.se-subcategory-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--se-line);
  border-radius: 999px;
  background: var(--se-surface);
  color: var(--se-body);
  font-size: 12px;
  font-weight: 600;
}

.se-subcategory-links a:hover {
  border-color: var(--se-blue);
  color: var(--se-blue);
}

.se-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--se-blue);
  font-size: 13px;
  font-weight: 800;
}

.se-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--se-line);
  border-left: 1px solid var(--se-line);
}

.se-tool-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--se-line);
  border-bottom: 1px solid var(--se-line);
  border-radius: 0;
  background: var(--se-surface);
  transition: background 170ms ease;
}

.se-tool-card:hover {
  background: var(--se-soft);
}

.se-tool-card__media {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 168px;
  overflow: hidden;
  border-bottom: 1px solid var(--se-line);
  background: #e8f3f9;
}

.se-tool-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 240ms ease;
}

.se-tool-card:hover .se-tool-card__media > img {
  transform: scale(1.025);
}

.se-tool-card__media .mock-screen {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}

.se-tool-card__rank {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 49, 58, 0.86);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.se-tool-card__rank--1 { background: #e8a510; }
.se-tool-card__rank--2 { background: #8a9aa1; }
.se-tool-card__rank--3 { background: #b87832; }

.se-tool-card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 24px 18px;
}

.se-tool-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.se-tool-card__tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.se-tool-card__tag {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: #0d745b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.se-tool-card__tag--verified {
  background: #149f84;
}

.se-tool-card__likes {
  flex: 0 0 auto;
  color: var(--se-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
}

.se-tool-card h3 {
  margin-top: 10px;
  color: var(--se-ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
  text-wrap: pretty;
}

.se-tool-card__tagline {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 5px !important;
  overflow: hidden;
  color: var(--se-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.se-tool-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--se-muted);
  font-size: 13px;
  font-weight: 600;
}

.se-tool-card__footer strong {
  color: var(--se-blue);
  font-size: 13px;
  font-weight: 800;
}

.se-tool-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.se-tool-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--se-blue);
  font-size: 13px;
  font-weight: 800;
}

.se-data-note {
  margin-top: 12px !important;
  color: var(--se-muted);
  font-size: 11px;
  line-height: 1.7;
}

.se-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed var(--se-line-strong);
  border-radius: 16px;
  color: var(--se-muted);
  text-align: center;
}

/* Features: no card wall, just three measured columns. */
.se-features {
  background: var(--se-soft);
}

.se-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 62px;
  border-top: 1px solid var(--se-line-strong);
  border-bottom: 1px solid var(--se-line-strong);
}

.se-feature {
  position: relative;
  min-height: 290px;
  padding: 42px 38px 38px;
}

.se-feature + .se-feature {
  border-left: 1px solid var(--se-line-strong);
}

.se-feature__number {
  position: absolute;
  top: 17px;
  right: 20px;
  color: #9ab0bd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.se-feature > .sm-icon {
  width: 31px;
  height: 31px;
  color: var(--se-blue);
}

.se-feature h3 {
  margin-top: 27px;
  color: var(--se-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.se-feature p {
  margin-top: 14px !important;
  color: var(--se-body);
  font-size: 14px;
  line-height: 1.85;
  text-wrap: pretty;
}

/* Story */
.se-story {
  padding-block: 112px;
  background: var(--se-page);
}

.se-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(48px, 7vw, 94px);
}

.se-story__media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--se-soft);
}

.se-story__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: inherit;
  pointer-events: none;
}

.se-story__media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.se-story__copy .se-eyebrow {
  margin-bottom: 18px;
}

.se-story__copy h2 {
  font-size: clamp(36px, 4vw, 55px);
}

.se-story__copy > p:not(.se-eyebrow) {
  margin-top: 28px !important;
  color: var(--se-body);
  font-size: 16px;
  line-height: 1.9;
  text-wrap: pretty;
}

.se-story blockquote {
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--se-line-strong);
  border-bottom: 1px solid var(--se-line-strong);
  color: var(--se-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}

.se-story .se-text-link {
  margin-top: 25px;
}

/* Status */
.se-status {
  background: var(--se-soft);
}

.se-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
}

.se-status-item {
  min-height: 230px;
  padding: 25px 23px 24px;
  border-top: 3px solid var(--se-line-strong);
  background: rgba(255,255,255,.58);
}

.se-status-item__index {
  color: var(--se-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.se-status-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--se-ink);
  font-size: 18px;
  font-weight: 800;
}

.se-status-item h3 > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--se-muted);
}

.se-status-item p {
  margin-top: 16px !important;
  color: var(--se-body);
  font-size: 13px;
  line-height: 1.8;
}

.se-status-item--verified {
  border-top-color: var(--se-green);
}
.se-status-item--verified h3 > span {
  background: var(--se-green);
}
.se-status-item--declared {
  border-top-color: var(--se-amber);
}
.se-status-item--declared h3 > span {
  background: var(--se-amber);
}
.se-status-item--unknown {
  border-top-color: #7f8d96;
}
.se-status-item--unknown h3 > span {
  background: #7f8d96;
}
.se-status-item--pending {
  border-top-color: #b6c4cc;
}
.se-status-item--pending h3 > span {
  background: #b6c4cc;
}

/* FAQ */
.se-faq {
  background: var(--se-page);
}

.se-faq__grid {
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(48px, 8vw, 108px);
}

.se-faq__grid .se-section__head .se-eyebrow {
  margin-bottom: 16px;
}

.se-faq__grid .se-section__head h2 {
  font-size: clamp(38px, 4.2vw, 56px);
}

.se-faq__list {
  border-top: 1px solid var(--se-line-strong);
}

.se-faq details {
  border-bottom: 1px solid var(--se-line-strong);
}

.se-faq summary {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 18px 48px 18px 4px;
  color: var(--se-ink);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.se-faq summary::-webkit-details-marker {
  display: none;
}

.se-faq summary::before,
.se-faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 16px;
  height: 2px;
  background: var(--se-blue);
  transform: translateY(-50%);
  transition: transform 170ms ease;
}

.se-faq summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.se-faq details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.se-faq details p {
  max-width: 58rem;
  padding: 0 44px 24px 4px;
  color: var(--se-body);
  font-size: 14px;
  line-height: 1.9;
  text-wrap: pretty;
}

/* Final CTA */
.se-final {
  position: relative;
  min-height: 470px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #dff2ff;
  text-align: center;
}

.se-final > img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  opacity: .055;
  transform: translate(-50%, -50%);
  filter: saturate(.8);
}

.se-final__inner {
  position: relative;
  z-index: 1;
  padding-block: 82px;
}

.se-final .se-eyebrow {
  margin-bottom: 18px;
}

.se-final p:not(.se-eyebrow) {
  margin-top: 24px !important;
  color: var(--se-body);
  font-size: 17px;
  line-height: 1.9;
}

.se-final .se-button {
  margin-top: 32px;
}

/* Compact footer, matching the Make page's quiet close. */
.se-footer {
  background: #142c40;
  color: #fff;
}

.se-footer__inner {
  min-height: 136px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.se-footer .sm-logo {
  color: #fff;
  font-size: 16px;
}

.se-footer .sm-logo img {
  width: 32px;
  height: 32px;
}

.se-footer nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.se-footer nav a,
.se-footer small {
  color: rgba(255,255,255,.68);
  font-size: 11px;
}

.se-footer nav a:hover {
  color: #fff;
}

/* Dark theme keeps the same composition while moving surfaces, not the imagery role. */
html[data-theme="dark"] body.se-renewal-home {
  --se-page: #11181d;
  --se-surface: #182229;
  --se-soft: #152630;
  --se-soft-strong: #19323f;
  --se-ink: #f2f6f8;
  --se-body: #bdc9cf;
  --se-muted: #8ea0aa;
  --se-line: #2b3c45;
  --se-line-strong: #41545e;
  --se-blue: #55aef0;
  --se-blue-deep: #2f8bd0;
  --se-blue-soft: #18384b;
  --se-yellow: #ffd43f;
  --se-yellow-hover: #f0be16;
  --se-green: #54c8a8;
  --se-amber: #e4ad4e;
  background: var(--se-page);
}

html[data-theme="dark"] .se-header {
  border-bottom-color: var(--se-line);
  background: rgba(17, 24, 29, .94);
  box-shadow: 0 6px 24px rgba(0,0,0,.24);
}

html[data-theme="dark"] .se-header__logo,
html[data-theme="dark"] .se-header__nav a,
html[data-theme="dark"] .se-header__login,
html[data-theme="dark"] .se-header .se-theme-toggle {
  color: var(--se-ink);
}

html[data-theme="dark"] .se-hero__wash {
  background:
    linear-gradient(90deg, rgba(17,24,29,.98) 0%, rgba(17,24,29,.89) 34%, rgba(17,24,29,.34) 59%, rgba(17,24,29,.08) 78%),
    linear-gradient(0deg, rgba(17,24,29,.78), transparent 38%);
}

html[data-theme="dark"] .se-hero h1,
html[data-theme="dark"] .se-hero__lead,
html[data-theme="dark"] .se-hero__tagline {
  color: var(--se-ink);
}

html[data-theme="dark"] .se-button--secondary {
  border-color: rgba(255,255,255,.25);
  background: rgba(17,24,29,.7);
  color: #fff !important;
}

html[data-theme="dark"] .se-stats {
  box-shadow: 0 24px 60px rgba(0,0,0,.38);
}

html[data-theme="dark"] .se-search input {
  color: var(--se-ink);
}

html[data-theme="dark"] .se-search input::placeholder {
  color: var(--se-muted);
}

html[data-theme="dark"] .se-status-item {
  background: rgba(24,34,41,.72);
}

html[data-theme="dark"] .se-final {
  background: #15374a;
}

html[data-theme="dark"] .se-footer {
  background: #0a1014;
}

/* Responsive */
@media (max-width: 1020px) {
  .se-header__inner {
    gap: 22px;
  }

  .se-header__nav {
    gap: 20px;
  }

  .se-header__nav a:nth-child(3) {
    display: none;
  }

  .se-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .se-subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .se-story__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .se-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.se-renewal-home {
    font-size: 15px;
  }

  .se-shell {
    width: min(100% - 32px, 680px);
  }

  .se-section {
    padding-block: 78px;
  }

  .se-section__head h2,
  .se-story__copy h2,
  .se-final h2 {
    font-size: clamp(32px, 10.5vw, 44px);
    letter-spacing: -0.05em;
  }

  .se-header {
    height: 64px;
  }

  .se-header__inner {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .se-header__logo {
    min-width: 0;
    gap: 6px;
    font-size: 14px;
  }

  .se-header__logo img {
    width: 32px;
    height: 32px;
  }

  .se-header__logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .se-header__nav,
  .se-header__login {
    display: none;
  }

  .se-header__actions {
    margin-left: auto;
    gap: 2px;
  }

  .se-header__search-jump {
    width: 40px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--se-body);
  }

  .se-header__search-jump .sm-icon {
    width: 21px;
    height: 21px;
  }

  .se-header__publish {
    height: 38px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .se-header .se-theme-toggle {
    width: 38px;
  }

  .se-hero {
    min-height: 680px;
    align-items: end;
  }

  .se-hero__image {
    height: 48%;
    /* 縦長画面では3枚の情報カードを文字領域から退避させる。 */
    object-position: 12% 46%;
  }

  .se-hero__wash {
    background:
      linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.99) 51%, rgba(255,255,255,.72) 67%, rgba(255,255,255,.08) 100%);
  }

  .se-hero__inner {
    padding-block: 246px 46px;
  }

  .se-hero__tagline {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .se-hero h1 {
    font-size: clamp(28px, 8vw, 34px);
    letter-spacing: -0.05em;
  }

  .se-hero__lead {
    margin-top: 8px !important;
    font-size: 15px;
    line-height: 1.7;
  }

  .se-hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
  }

  .se-button {
    width: 100%;
    min-height: 50px;
  }

  .se-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
  }

  .se-stat {
    min-height: 0;
    display: flex;
    gap: 2px;
    padding: 0;
    text-align: left;
  }

  .se-stat strong {
    font-size: 20px;
    line-height: 26px;
  }

  .se-stat span {
    font-size: 10.5px;
    line-height: 1.35;
  }

  .se-discover {
    padding-block: 60px 72px;
  }

  .se-section__head--discover h2 {
    font-size: 28px;
  }

  .se-section__head--discover .se-eyebrow {
    margin-bottom: 12px;
  }

  .se-category-tabs {
    width: calc(100% + 16px);
    flex-wrap: nowrap;
    margin-top: 22px;
    padding-right: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .se-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .se-category-tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding-inline: 14px;
    scroll-snap-align: start;
  }

  .se-subcategories {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .se-subcategory-grid {
    grid-template-columns: 1fr;
  }

  .se-tool-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    border: 0;
  }

  .se-tool-card {
    display: flex;
    border: 1px solid var(--se-line);
    border-radius: 6px;
  }

  .se-tool-card__media {
    height: 168px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--se-line);
  }

  .se-tool-card__body {
    padding: 14px 16px 16px;
  }

  .se-tool-card h3 {
    font-size: 18px;
  }

  .se-tool-card__tagline {
    min-height: 42px;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .se-tool-card__footer {
    padding-top: 12px;
  }

  .se-feature-grid {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .se-feature {
    min-height: 0;
    padding: 34px 18px 36px;
  }

  .se-feature + .se-feature {
    border-top: 1px solid var(--se-line-strong);
    border-left: 0;
  }

  .se-feature__number {
    top: 28px;
    right: 12px;
  }

  .se-story {
    padding-block: 78px;
  }

  .se-story__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .se-story__media {
    min-height: 320px;
    border-radius: 18px;
  }

  .se-story__media img {
    min-height: 320px;
    object-position: center;
  }

  .se-story__copy h2 br {
    display: none;
  }

  .se-story__copy > p:not(.se-eyebrow) {
    margin-top: 22px !important;
    font-size: 15px;
  }

  .se-story blockquote {
    font-size: 16px;
  }

  .se-status-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 42px;
  }

  .se-status-item {
    min-height: 0;
    padding: 22px 4px 26px;
    background: transparent;
  }

  .se-status-item h3 {
    margin-top: 18px;
  }

  .se-faq__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .se-faq summary {
    min-height: 70px;
    font-size: 15px;
  }

  .se-final {
    min-height: 500px;
  }

  .se-final > img {
    width: 290px;
    height: 290px;
  }

  .se-final p:not(.se-eyebrow) {
    font-size: 15px;
  }

  .se-footer__inner {
    min-height: 230px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    padding-block: 42px;
    text-align: center;
  }

  .se-footer nav {
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  html[data-theme="dark"] .se-hero__wash {
    background:
      linear-gradient(0deg, rgba(17,24,29,1) 0%, rgba(17,24,29,.99) 51%, rgba(17,24,29,.7) 68%, rgba(17,24,29,.08) 100%);
  }
}

@media (max-width: 390px) {
  .se-header__logo {
    max-width: 182px;
  }

  .se-header__publish {
    padding-inline: 12px;
  }

}

@media (max-width: 340px) {
  .se-header__logo span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .se-renewal-home *,
  .se-renewal-home *::before,
  .se-renewal-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
