@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/ZenMaruGothic-Regular-subset.woff2") format("woff2");
}

@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("./assets/fonts/ZenMaruGothic-Medium-subset.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f5f0e4;
  --paper-light: #fbf8ef;
  --ink: #263b32;
  --muted: #667268;
  --line: rgba(38, 59, 50, 0.16);
  --gold: #c18a2a;
  --gold-dark: #76501f;
  --water: #5e9eb1;
  --forest: #17382f;
  --max: 1160px;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  font-family: var(--font-body);
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3 { margin-top: 0; }

.tm-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 38, 31, 0.74);
  color: #fff;
  backdrop-filter: blur(16px);
}

.tm-topbar__inner {
  width: min(var(--max), calc(100% - 36px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.tm-brand img { width: 34px; height: 34px; border-radius: 8px; }
.tm-brand small { color: rgba(255, 255, 255, 0.62); font-size: 0.72rem; font-weight: 700; }
.tm-nav { display: flex; align-items: center; gap: 20px; font-size: 0.86rem; font-weight: 700; }
.tm-nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.tm-nav a:hover { color: #fff; }

.tm-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #122c26;
}

.tm-hero__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 39%;
}

.tm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 23, .72);
}

.tm-hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tm-hero__copy { min-width: 0; max-width: 660px; }
.tm-hero .tm-kicker { margin-bottom: 10px; line-height: 1.5; }
.tm-kicker {
  margin-bottom: 18px;
  color: #f1c66f;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tm-hero h1 {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.1;
}

.tm-hero__lead {
  max-width: 610px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
}

.tm-hero__home { width: min(100%, 220px); min-width: 0; margin: 0; }

.tm-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 24px; }
.tm-status { color: #d8e4dc; font-size: .78rem; font-weight: 400; line-height: 1.6; }
.tm-text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; font-size: .85rem; font-weight: 500; text-decoration: none; }
.tm-text-link > span:first-child { text-decoration: underline; text-underline-offset: 5px; }
.tm-text-link:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.tm-phone {
  width: 100%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
}

.tm-phone img { width: 100%; height: auto; }

.tm-container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.tm-eyebrow { margin-bottom: 14px; color: var(--gold-dark); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.tm-heading {
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.28;
}
.tm-copy { color: var(--muted); font-size: 1rem; font-weight: 600; line-height: 2; }
.tm-copy strong { color: var(--ink); }

.tm-how { padding: 100px 0 112px; background: var(--paper-light); }
.tm-hero + .tm-how { padding-top: 56px; scroll-margin-top: 66px; }
.tm-how__head { max-width: 700px; margin-bottom: 44px; }
.tm-how__head .tm-heading { margin-bottom: 12px; }
.tm-how__head .tm-copy { margin: 0; }
.tm-app-step {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(52px, 8vw, 104px);
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.tm-app-step--spring { grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); }
.tm-app-step--spring .tm-app-screen { order: 2; }
.tm-app-step--spring .tm-app-step__copy { order: 1; }
.tm-app-screen {
  width: min(100%, 304px);
  margin: 0 auto;
  border: 7px solid #fff;
  border-radius: 38px;
  overflow: hidden;
  background: #13251f;
  box-shadow: 0 24px 56px rgba(55, 47, 34, .16), 0 4px 14px rgba(55, 47, 34, .1);
}
.tm-app-screen img { width: 100%; height: auto; }
.tm-app-step__copy { max-width: 520px; }
.tm-app-step__copy > span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 900;
}
.tm-app-step--spring .tm-app-step__copy > span { color: #35788a; }
.tm-app-step__copy h3 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 500;
  line-height: 1.4;
}
.tm-app-step__copy p { margin: 0; color: var(--muted); font-weight: 600; line-height: 2; }
.tm-example-note { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.tm-room-example { width: min(100%, 300px); margin: 0; min-width: 0; justify-self: center; }
.tm-room-example .tm-phone { box-shadow: 0 24px 56px rgba(55, 47, 34, .16), 0 4px 14px rgba(55, 47, 34, .1); }
.tm-room-example figcaption { margin-top: 18px; color: #586153; font-size: .85rem; line-height: 1.8; text-align: center; }

.tm-feature { padding: 104px 0; }
.tm-feature--room { background: #efe2cf; scroll-margin-top: 66px; }
.tm-feature--forest { background: var(--forest); color: #fff; }
.tm-feature__grid { display: grid; grid-template-columns: minmax(320px, .84fr) minmax(0, 1fr); align-items: center; gap: 78px; }
.tm-feature--room .tm-feature__grid { row-gap: 28px; }
.tm-feature--room .tm-room-example { grid-column: 1; grid-row: 1 / span 2; }
.tm-feature--room .tm-feature__copy { grid-column: 2; grid-row: 1; align-self: end; }
.tm-feature--room .tm-room-details { grid-column: 2; grid-row: 2; align-self: start; max-width: 520px; margin: 0; }
.tm-feature--forest .tm-feature__grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .84fr); }
.tm-feature__visual { height: 620px; overflow: hidden; }
.tm-feature__visual img { width: 100%; height: 100%; object-fit: cover; }
.tm-feature--room .tm-feature__visual img { object-position: center 46%; }
.tm-feature--forest .tm-feature__visual img { object-position: center 55%; }
.tm-feature__copy { max-width: 520px; }
.tm-feature--forest .tm-copy { color: rgba(255,255,255,.74); }
.tm-feature--forest .tm-eyebrow { color: #b8dfe5; }
.tm-points { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.tm-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-weight: 700; line-height: 1.7; }
.tm-points li::before { content: "○"; color: var(--gold); }
.tm-feature--forest .tm-points li::before { color: #94d0db; }

.tm-privacy-note { padding: 72px 0; background: #e7eee9; }
.tm-privacy-note__inner { display: grid; grid-template-columns: .5fr 1fr; gap: 72px; align-items: start; }
.tm-privacy-note h2 { margin: 0; font-family: var(--font-body); font-size: clamp(1.8rem, 3.3vw, 2.7rem); font-weight: 500; line-height: 1.4; }
.tm-privacy-note p { margin: 0 0 20px; color: var(--muted); font-weight: 600; line-height: 1.9; }
.tm-inline-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.tm-inline-links a { color: var(--ink); font-weight: 800; text-underline-offset: 5px; }

.tm-closing { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.tm-closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.tm-closing::after { content: ""; position: absolute; inset: 0; background: rgba(8, 27, 23, .68); }
.tm-closing__inner { position: relative; z-index: 2; width: min(680px, calc(100% - 36px)); padding: 80px 0; }
.tm-closing__icon { width: 86px; height: 86px; margin: 0 auto 24px; border: 3px solid rgba(255,255,255,.8); border-radius: 20px; }
.tm-closing h2 { margin-bottom: 16px; font-family: var(--font-body); font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 500; }
.tm-closing p { margin-bottom: 26px; color: rgba(255,255,255,.8); font-weight: 600; line-height: 1.9; }
.tm-button { min-height: 50px; display: inline-grid; place-items: center; padding: 0 22px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-weight: 800; text-decoration: none; }

.tm-footer { padding: 32px 0; background: #102820; color: rgba(255,255,255,.68); font-size: .82rem; }
.tm-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.tm-footer p { margin: 0; }
.tm-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.tm-footer a { text-decoration: none; }

.tm-legal-page { background: var(--paper-light); }
.tm-legal-page .tm-topbar { position: static; background: #17382f; }
.tm-legal {
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 100px;
}
.tm-legal__head { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.tm-legal__head h1 { margin-bottom: 12px; font-family: var(--font-body); font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 500; }
.tm-legal__head p { margin: 0; color: var(--muted); line-height: 1.8; }
.tm-legal section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.tm-legal h2 { margin-bottom: 12px; font-size: 1.08rem; line-height: 1.5; }
.tm-legal p, .tm-legal li { color: #52645b; line-height: 1.9; }
.tm-legal ul { margin: 0; padding-left: 1.25rem; }
.tm-legal a { color: #315e50; text-underline-offset: 4px; }
.tm-legal__actions { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 32px; font-weight: 800; }
.tm-legal__date { margin-top: 30px; color: var(--muted); font-size: .86rem; }

@media (min-width: 1024px) {
  .tm-hero__inner {
    width: min(1000px, calc(100% - 80px));
    padding: 104px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: 1fr 1fr;
    gap: 0 80px;
    align-items: center;
    text-align: left;
  }
  .tm-hero__copy { grid-column: 1; grid-row: 1; align-self: end; }
  .tm-hero h1 { font-size: 4.5rem; margin-bottom: 22px; }
  .tm-hero__lead { margin-bottom: 0; font-size: 1.125rem; line-height: 1.9; }
  .tm-hero__home { grid-column: 2; grid-row: 1 / span 2; width: 100%; }
  .tm-hero__meta { grid-column: 1; grid-row: 2; align-self: start; justify-content: flex-start; margin-top: 26px; }
  .tm-phone { border-width: 5px; border-radius: 34px; }
}

@media (max-width: 820px) {
  .tm-nav a:not(:last-child) { display: none; }
  .tm-hero__backdrop { object-position: 62% center; }
  .tm-hero__inner { padding: 84px 0 24px; }
  .tm-hero__home { width: 210px; }
  .tm-hero + .tm-how { padding-top: 28px; }
  .tm-hero h1 { font-size: 3.25rem; }
  .tm-hero__lead { font-size: .94rem; line-height: 1.8; }
  .tm-phone { border-radius: 23px; }
  .tm-how { padding: 76px 0 84px; }
  .tm-how__head { margin-bottom: 30px; }
  .tm-app-step, .tm-app-step--spring { grid-template-columns: 1fr; gap: 32px; padding: 54px 0; }
  .tm-app-step .tm-app-step__copy { order: 1; }
  .tm-app-step .tm-app-screen { order: 2; }
  .tm-app-screen { width: min(100% - 44px, 280px); border-width: 6px; border-radius: 32px; }
  .tm-app-step__copy { max-width: 560px; }
  .tm-feature__grid, .tm-feature--forest .tm-feature__grid, .tm-privacy-note__inner { grid-template-columns: 1fr; gap: 34px; }
  .tm-feature { padding: 76px 0; }
  .tm-feature--room .tm-feature__copy { grid-column: 1; grid-row: 1; }
  .tm-feature--room .tm-room-example { width: min(100% - 44px, 280px); grid-column: 1; grid-row: 2; }
  .tm-feature--room .tm-room-details { grid-column: 1; grid-row: 3; max-width: none; }
  .tm-feature__visual { height: 520px; }
  .tm-feature--forest .tm-feature__visual { order: 2; }
  .tm-footer__inner { align-items: flex-start; flex-direction: column; }
  .tm-footer nav { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .tm-topbar__inner, .tm-container, .tm-hero__inner { width: min(100% - 28px, var(--max)); }
  .tm-brand small { display: none; }
  .tm-nav { gap: 12px; }
  .tm-hero h1 { font-size: 3rem; white-space: nowrap; }
  .tm-hero__meta { gap: 10px 18px; }
  .tm-feature__visual { height: 460px; }
  .tm-closing { min-height: 560px; }
}

@media (max-width: 820px) and (max-height: 700px) {
  .tm-hero__inner { padding: 80px 0 20px; }
  .tm-hero .tm-kicker { margin-bottom: 6px; }
  .tm-hero h1 { font-size: 2.5rem; margin-bottom: 8px; }
  .tm-hero__lead { font-size: .9rem; line-height: 1.7; margin-bottom: 14px; }
  .tm-hero__home { width: 158px; }
  .tm-hero + .tm-how { padding-top: 14px; }
  .tm-hero__meta { margin-top: 16px; }
}

@media (max-width: 820px) and (max-height: 600px) {
  .tm-hero__inner { padding: 76px 0 16px; }
  .tm-hero h1 { font-size: 2.25rem; }
  .tm-hero__lead { margin-bottom: 10px; }
  .tm-hero__home { width: 128px; }
  .tm-phone { border-width: 3px; border-radius: 19px; }
  .tm-hero__meta { margin-top: 12px; }
  .tm-hero + .tm-how { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
