@import url('/fonts/fonts.css');

:root {
  --forest: #1F3D2E;
  --pine: #2E5641;
  --fern: #6F9677;
  --mist: #EEF3EC;
  --paper: #FFFFFF;
  --ink: #1D3227;
  --slate: #557063;
  --line: #CFDCCF;
  --butter: #F2CF6E;
  --moss: #8DAF98;
  --light: #E8E1C8;
  --focus: #C9A94A;
  --serif: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mist: #13241B;
    --paper: #1A2F24;
    --ink: #E6EEE6;
    --slate: #A9BFB0;
    --line: #2B4535;
    --forest: #0E1C15;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* header */
.site-head { padding: 28px 0 24px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; text-decoration: none; letter-spacing: 0.01em; }
.brand-mark { width: 1.05em; height: 1.45em; flex: none; }
.site-head nav { display: flex; gap: 22px; font-size: 0.95rem; color: var(--slate); }
.site-head nav a { text-decoration: none; }
.site-head nav a:hover { color: var(--ink); text-decoration: underline; }

/* hero: a deep forest band with layered hills fading into the page, like mist over trees at dawn */
.site-head { background: var(--forest); color: #EEF3EC; }
.site-head nav { color: #B9CDBE; }
.site-head nav a:hover { color: #FFFFFF; }
.hero { position: relative; background: var(--forest); color: #EEF3EC; padding: 72px 0 220px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.12; letter-spacing: -0.01em;
  margin: 0 0 28px; max-width: 12em;
}
.hero p { max-width: 34em; margin: 0 0 1.2em; color: #C5D6C9; font-size: 1.15rem; }
.button { display: inline-block; margin-top: 12px; background: var(--light); color: var(--forest); text-decoration: none; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; }
.button:hover { background: #FFFFFF; }
.forest { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 200px; }
.forest .far { fill: var(--pine); opacity: 0.55; }
.forest .mid { fill: var(--fern); opacity: 0.45; }
.forest .near { fill: var(--mist); }

/* section headings */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.25; margin: 0 0 8px; }
.section .lead { color: var(--slate); margin: 0 0 40px; max-width: 36em; }

/* products: one row each, led by the feeling it should leave */
.product { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; padding-top: 0; }
.feeling { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.swatch { width: 88px; height: 88px; border-radius: 50%; }
.swatch.curious { background: radial-gradient(circle at 35% 30%, #FFF3C9 0%, var(--butter) 55%, #E3A94B 100%); }
.swatch.calm { background: radial-gradient(circle at 35% 30%, #E4F0E6 0%, var(--moss) 60%, var(--pine) 100%); }
.feeling span { font-family: var(--serif); font-size: 1.1rem; }
.product h3 { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; margin: 0 0 6px; line-height: 1.3; }
.product p { margin: 0 0 12px; max-width: 38em; }
.status { color: var(--slate); font-size: 0.95rem; margin: 0; }
.status a { color: var(--ink); }

/* how we work */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ways h3 { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.4; margin: 0 0 8px; }
.ways p { margin: 0; color: var(--slate); }

/* contact */
.contact p { margin: 0 0 6px; }
.contact .mail { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--pine); }
@media (prefers-color-scheme: dark) { .contact .mail { color: var(--moss); } }

/* footer */
.site-foot { background: var(--forest); padding: 32px 0 48px; color: #B9CDBE; font-size: 0.92rem; }
.hero + .section { border-top: 0; padding-top: 40px; }
.intro-story .split p:not(.lead) { margin: 0 0 1em; }
.intro-story .split > div:last-child { padding-top: 52px; }
@media (max-width: 760px) { .intro-story .split > div:last-child { padding-top: 0; } }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* legal pages */
.doc { padding: 56px 0 72px; }
.doc article { max-width: 68ch; }
.doc h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.2; margin: 0 0 8px; }
.doc .updated { color: var(--slate); margin: 0 0 32px; }
.doc h2 { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; margin: 40px 0 8px; line-height: 1.35; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 0 0 6px; }
.doc .box { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 24px 0; }
.doc .box p { margin: 0 0 8px; }
.doc .box p:last-child { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; border-top: 1px solid var(--line); padding: 10px 12px 10px 0; }
.doc th { font-weight: 700; }

@media (max-width: 760px) {
  .hero { padding: 56px 0 150px; }
  .forest { height: 120px; }
  .product { grid-template-columns: 1fr; gap: 16px; }
  .feeling { flex-direction: row; align-items: center; gap: 14px; }
  .swatch { width: 56px; height: 56px; }
  .ways { grid-template-columns: 1fr; gap: 28px; }
  .site-head nav { gap: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .forest .far { animation: breathe 9s ease-in-out infinite alternate; transform-origin: bottom; }
  @keyframes breathe { from { transform: scaleY(1); } to { transform: scaleY(1.06); } }
}

/* ---------- multi-page additions ---------- */
.site-head nav a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; text-decoration-thickness: 2px; }
.foot-name { margin: 0; }
.wrap.narrow > * { max-width: 40em; }
.hero.small { padding: 56px 0 170px; }
.hero.small h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 18px; }

/* app pages */
.app-hero { padding-bottom: 190px; }
.app-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.app-art { width: clamp(180px, 24vw, 300px); height: auto; margin-bottom: -40px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25)); }
.app-feeling { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.15rem; color: #EEF3EC !important; margin: 0 0 6px !important; }
.swatch.small { width: 28px; height: 28px; display: inline-block; }
.status-light { color: var(--light) !important; font-weight: 700; }
.button.dark { background: var(--forest); color: #EEF3EC; }
.button.dark:hover { background: var(--pine); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; margin-top: 12px; }
.features h3 { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.35; margin: 0 0 6px; }
.features p { margin: 0; color: var(--slate); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.split .lead { margin-bottom: 16px; }
.friends { width: 100%; max-width: 425px; height: auto; margin-top: 4px; }
.plans { list-style: none; padding: 0; margin: 0 0 12px; }
.plans li { padding: 10px 0; border-top: 1px solid var(--line); }
.small-print { color: var(--slate); font-size: 0.92rem; }
.text-link { font-weight: 700; color: var(--pine); }
@media (prefers-color-scheme: dark) { .text-link { color: var(--moss); } }

/* product rows are links to their pages */
a.product { color: inherit; text-decoration: none; }
a.product:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.product .more { color: var(--pine); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; margin-left: 4px; }
@media (prefers-color-scheme: dark) { .product .more { color: var(--moss); } }

/* our story */
.story h2 { margin-top: 40px; }
.story h2:first-child { margin-top: 0; }
.story p { margin: 0 0 1em; }
.beliefs { padding-left: 1.2em; margin: 0 0 1em; }
.beliefs li { margin-bottom: 8px; }

/* contact */
.mail { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; color: var(--pine); }
@media (prefers-color-scheme: dark) { .mail { color: var(--moss); } }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin-top: 36px; max-width: none !important; }
.contact-list h3 { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin: 0 0 6px; }
.contact-list p { margin: 0 0 8px; color: var(--slate); }

@media (max-width: 760px) {
  .app-hero-grid { grid-template-columns: 1fr; }
  .app-art { justify-self: center; margin: 8px 0 -30px; }
  .features, .split, .contact-list { grid-template-columns: 1fr; gap: 28px; }
  .hero.small { padding: 40px 0 120px; }
}

/* phone screenshots */
.phone { margin: 0; width: 260px; border-radius: 34px; padding: 8px; background: #0F1F17; box-shadow: 0 24px 48px rgba(15, 31, 23, 0.28); }
.phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.phone.hero-phone { width: clamp(200px, 22vw, 270px); margin-bottom: -70px; }
.hero-phone-wrap { display: flex; flex-direction: column; align-items: center; }
.caption { order: -1; margin: 0 0 10px; font-size: 0.85rem; color: #B9CDBE !important; }
.app-hero { padding-bottom: 150px; }
.app-hero-grid { align-items: center; }
.phone.mini { width: 120px; border-radius: 20px; padding: 5px; box-shadow: 0 10px 22px rgba(15, 31, 23, 0.2); }
.phone.mini img { border-radius: 16px; }
.product { grid-template-columns: 136px minmax(0, 1fr) auto; align-items: start; }
.screens { display: flex; justify-content: center; gap: 36px; margin-top: 56px; flex-wrap: wrap; }
.screens .phone { width: 230px; }
.swatch.relieved { background: radial-gradient(circle at 35% 30%, #EEF6FA 0%, #A9C8DA 58%, #6E98B3 100%); }
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .phone.mini { display: none; }
  .phone.hero-phone { margin: 12px auto -60px; width: 220px; }
  .screens { gap: 20px; }
  .screens .phone { width: 72%; max-width: 260px; }
}
.screens-note { text-align: center; color: var(--slate); font-size: 0.9rem; margin: 20px 0 0; }
.features:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
@media (max-width: 760px) { .features:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }

/* Kansei Urban */
.swatch.athome { background: radial-gradient(circle at 35% 30%, #FBF1E4 0%, #E3C49E 58%, #B98A5A 100%); }
.screens:has(> .phone:nth-child(4)) .phone { width: 210px; }
.screens:has(> .phone:nth-child(4)) { gap: 28px; }
.site-head nav a { white-space: nowrap; }
@media (max-width: 760px) { .site-head nav { flex-wrap: wrap; gap: 6px 18px; } }

/* products as a 2 × 2 grid of cards */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.product-grid .product { display: flex; flex-direction: column; gap: 16px; padding: 28px 28px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.product-grid .product:first-of-type { padding-top: 28px; }
.product-grid .product:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 31, 23, 0.10); }
.product-grid .feeling { flex-direction: row; align-items: center; gap: 12px; }
.product-grid .swatch { width: 52px; height: 52px; }
.product-grid .product > div:last-child { display: flex; flex-direction: column; flex: 1; }
.product-grid .product p { max-width: none; }
.product-grid .status { margin-top: auto; margin-bottom: 0; padding-top: 4px; }
.product-grid .status .more { display: block; margin: 6px 0 0; }
@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .product-grid .product { padding: 22px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .product-grid .product { transition: none; } .product-grid .product:hover { transform: none; } }
