/* cherimy.com — shared styles for the marketing and legal pages.
   Palette and metrics mirror the Claude Design mockups (claude_design/cherimy_web). */

:root {
  --bg: #FAFAF8;
  --surface: #fff;
  --cream: #F0EDE7;
  --cream-2: #F4F2ED;
  --ink: #1A1918;
  --ink-2: #3A3835;
  --muted: #6B6862;
  --muted-2: #8E8B84;
  --line: #EEEBE5;
  --line-2: #E3E0DA;
  --coral: #DA534F;
  --coral-dark: #C0392B;
  --coral-light: #E8706C;
  --green: #2E9E6B;
  --on-dark: #9B9890;
  --on-dark-2: #7A776F;
  --dark-line: #2E2C2A;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --shell: 1160px;
}

* { box-sizing: border-box; }

/* The design is a single light theme; opt out of UA dark-mode adaptation so
   scrollbars and form controls stay consistent with it. */
html { scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }
h1, h2, h3 { font-family: var(--round); margin: 0; letter-spacing: .01em; }
/* height:auto keeps the ratio when a narrow container clamps the width — without
   it, images with width/height attributes squash instead of scaling. */
img { max-width: 100%; height: auto; }
::selection { background: rgba(218, 83, 79, .22); }

/* Keyboard focus must stay visible: several controls below drop the default ring. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Animation ---------- */

@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blobDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, -24px) scale(1.08); } }
@keyframes chipPop { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes revealUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Scroll-driven reveal where supported; everything stays visible without it. */
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: revealUp .85s cubic-bezier(.22, 1, .36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Shell ---------- */

.shell { max-width: var(--shell); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.shell-narrow { max-width: 820px; }
.shell-doc { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { display: block; }
.brand span { font-family: var(--round); font-weight: 800; font-size: 22px; letter-spacing: .01em; }

.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.site-nav a { color: var(--ink-2); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-btn {
  cursor: pointer;
  font-family: var(--round);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--cream);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 13px;
  line-height: 1;
}

.btn-store-sm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--coral);
  color: #fff;
  font-family: var(--round);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 6px 18px rgba(218, 83, 79, .28);
}
.btn-store-sm:hover { color: #fff; }

.back-home {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-family: var(--round);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-blobs i {
  position: absolute;
  border-radius: 50%;
  animation: blobDrift 16s ease-in-out infinite;
}
.hero-blobs i:first-child {
  top: -120px; right: -80px; width: 520px; height: 520px;
  background: radial-gradient(circle at 35% 35%, rgba(218, 83, 79, .20), rgba(218, 83, 79, 0) 68%);
}
.hero-blobs i:last-child {
  bottom: -160px; left: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle at 50% 50%, rgba(240, 169, 60, .16), rgba(240, 169, 60, 0) 70%);
  animation-duration: 20s;
  animation-direction: reverse;
}
.hero-grid {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 84px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { animation: heroIn .8s cubic-bezier(.22, 1, .36, 1) both; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(218, 83, 79, .10);
  color: var(--coral-dark);
  font-family: var(--round);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-copy h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; line-height: 1.16; letter-spacing: .005em; }
.hero-lead { margin: 22px 0 0; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.9; color: var(--muted); max-width: 30em; }
.hero-lead b { color: var(--ink-2); font-weight: 700; }
.hero-note { margin: 22px 0 0; font-size: 13px; color: var(--muted-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--round);
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  padding: 15px 24px;
  box-shadow: 0 10px 30px rgba(26, 25, 24, .22);
}
.btn-store:hover { color: var(--bg); }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; font-family: var(--sans); }
.btn-store strong { display: block; font-weight: 700; line-height: 1.1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--round);
  font-weight: 700;
  font-size: 16px;
  border-radius: 14px;
  padding: 15px 24px;
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { color: var(--ink); }

.hero-device, .center-col { display: flex; justify-content: center; }
.hero-device > div { position: relative; animation: floatY 7s ease-in-out infinite; }

.device {
  aspect-ratio: 1179 / 2556;
  background: var(--ink);
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 40px 80px -20px rgba(26, 25, 24, .45), 0 0 0 2px rgba(255, 255, 255, .06) inset;
}
.device-hero { width: clamp(240px, 30vw, 304px); }
.device-feature { width: clamp(230px, 26vw, 280px); border-radius: 42px; padding: 10px; box-shadow: 0 34px 66px -22px rgba(26, 25, 24, .4); }
.device-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); }
.device-feature .device-screen { border-radius: 33px; }
.device-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.float-chip {
  position: absolute;
  font-family: var(--round);
  font-weight: 700;
  font-size: 13px;
  border-radius: 14px;
  animation: chipPop .6s .7s both;
}
.float-chip-pro {
  top: 64px; left: -38px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 14px;
  box-shadow: 0 12px 28px rgba(26, 25, 24, .14);
  color: var(--green);
}
.float-chip-have {
  bottom: 120px; right: -42px;
  background: var(--coral);
  color: #fff;
  padding: 10px 15px;
  box-shadow: 0 12px 28px rgba(218, 83, 79, .34);
  animation-delay: .95s;
}

/* ---------- Statement band ---------- */

.band { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.band .shell { max-width: 1000px; padding-top: 64px; padding-bottom: 64px; text-align: center; }
.band-line { margin: 0; font-family: var(--round); font-weight: 500; font-size: clamp(20px, 3.2vw, 32px); line-height: 1.7; }
.band-line .strike { color: var(--on-dark-2); text-decoration: line-through; }
.band-line .accent { color: var(--coral-light); font-weight: 700; }
.band-sub { margin: 18px auto 0; max-width: 34em; font-size: 15px; line-height: 1.9; color: var(--on-dark); }

/* ---------- Section headings ---------- */

.section-head { text-align: center; }
.kicker { font-family: var(--round); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--coral); text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; margin-top: 10px; }
.section-head p { margin: 14px auto 0; max-width: 30em; font-size: 15px; line-height: 1.85; color: var(--muted); }

/* ---------- Screenshot gallery ---------- */

.gallery-section { padding: 78px 0 24px; overflow: hidden; }
.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 30px max(24px, calc((100% - var(--shell)) / 2 + 24px)) 38px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  flex: none;
  margin: 0;
  scroll-snap-align: center;
  width: clamp(258px, 72vw, 306px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 26px 54px -30px rgba(26, 25, 24, .4);
}
.gallery img { display: block; width: 100%; height: auto; }

/* ---------- Feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  background: rgba(218, 83, 79, .10);
  border-radius: 16px;
  margin-bottom: 18px;
}
.feature-row h3 { font-size: clamp(22px, 2.6vw, 29px); font-weight: 800; line-height: 1.35; }
.feature-row > div > p { margin: 16px 0 0; font-size: 16px; line-height: 1.9; color: var(--muted); max-width: 30em; }
.feature-row .fineprint { font-size: 13px; line-height: 1.8; color: var(--muted-2); }

.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.feature-list li::before { content: "·"; color: var(--coral); font-weight: 800; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border-radius: 999px;
  padding: 8px 15px;
  font-family: var(--round);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* AI summary card */
.summary-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 24px 50px -26px rgba(26, 25, 24, .28);
}
.summary-card h4 { font-family: var(--round); font-weight: 700; font-size: 14px; color: var(--muted-2); margin: 0 0 16px; }
.summary-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.summary-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.summary-card li span[aria-hidden] {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.summary-card .pro span[aria-hidden] { background: rgba(46, 158, 107, .14); color: var(--green); }
.summary-card .con span[aria-hidden] { background: rgba(192, 57, 43, .12); color: var(--coral-dark); }
.summary-card hr { border: 0; height: 1px; background: var(--line); margin: 2px 0; }

/* ---------- Categories ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 30px 60px -40px rgba(26, 25, 24, .3);
}
.panel .section-head { margin-bottom: 34px; }
.panel .section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.panel .section-head p { max-width: 32em; }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.chip-cloud li {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--round);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.chip-cloud li.more { color: var(--muted-2); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; }
.step-num {
  font-family: var(--round);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--coral);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 21px; font-weight: 800; margin-top: 20px; }
.step p { margin: 12px 0 0; font-size: 15px; line-height: 1.85; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--round);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: 0; padding: 0 0 18px; font-size: 15px; line-height: 1.85; color: var(--muted); }

/* ---------- Closing CTA ---------- */

.cta-section { padding: 0 24px 90px; }
.cta {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  border-radius: 32px;
  padding: clamp(44px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(218, 83, 79, .6);
}
.cta-watermark { position: absolute; top: -30px; right: -20px; opacity: .14; }
.cta > img:not(.cta-watermark) { display: block; margin: 0 auto 20px; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.35; }
.cta p { color: rgba(255, 255, 255, .9); font-size: 16px; line-height: 1.85; margin: 16px auto 0; max-width: 26em; }
.cta .btn-store { background: var(--ink); color: #fff; margin-top: 30px; box-shadow: 0 12px 30px rgba(26, 25, 24, .3); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer .shell { padding-top: 56px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-about { max-width: 26em; }
.footer-about .brand { margin-bottom: 14px; }
.footer-about .brand span { font-size: 20px; color: var(--cream); }
.footer-about p { margin: 0; font-size: 14px; line-height: 1.8; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h2 { font-family: var(--round); font-weight: 700; font-size: 13px; color: var(--cream); margin-bottom: 14px; }
.footer-cols div > div { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-cols a { color: var(--on-dark); }
.footer-cols a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--dark-line);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--on-dark-2);
}

/* Compact footer for the legal / support pages. */
.footer-slim .shell { max-width: 900px; padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--on-dark-2); }
.footer-slim .brand span { font-size: 16px; color: var(--cream); }

/* ---------- Document pages (privacy / terms / support) ---------- */

.doc-header { background: linear-gradient(180deg, rgba(218, 83, 79, .07), rgba(218, 83, 79, 0)); border-bottom: 1px solid var(--line); }
.doc-header .shell { max-width: 760px; padding-top: 56px; padding-bottom: 40px; }
.doc-header h1 { font-family: var(--round); font-weight: 800; font-size: clamp(28px, 4.4vw, 40px); margin: 12px 0 0; color: var(--ink); }
.doc-header .kicker { font-size: 12.5px; }
.doc-meta { margin: 14px 0 0; color: var(--muted-2); font-size: 13.5px; }

.doc { max-width: 760px; margin: 0 auto; padding: 36px 24px 90px; }
.doc h2 { font-family: var(--round); font-weight: 800; font-size: 19px; line-height: 1.5; margin: 44px 0 12px; color: var(--ink); padding-top: 6px; }
.doc h2:first-of-type { margin-top: 28px; }
.doc p { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 14px; }
.doc li { font-size: 15.5px; line-height: 1.9; color: var(--ink-2); margin: .35em 0; }
.doc .note { color: var(--muted-2); font-size: 13.5px; line-height: 1.85; }
.doc a { word-break: break-word; }

.doc table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 14px;
  margin: 6px 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}
.doc th, .doc td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}
.doc th:last-child, .doc td:last-child { border-right: none; }
.doc tr:last-child td { border-bottom: none; }
.doc th { background: var(--cream-2); font-family: var(--round); font-weight: 700; color: var(--ink); white-space: nowrap; }
.doc td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

.doc-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--round);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 52px; padding-bottom: 64px; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reversed > *:first-child { order: 2; }
  .feature-row.reversed > *:last-child { order: 1; }
  .steps { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

@media (max-width: 600px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: 100% !important; white-space: normal !important; }
  .doc thead { display: none; }
  .doc td { border-right: none; }
  .doc tr { border-bottom: 2px solid var(--line-2); }
  .doc tr:last-child { border-bottom: none; }
  .doc td:first-child { background: var(--cream-2); }
}

@media (max-width: 520px) {
  .btn-store-sm span { display: none; }
  .btn-store-sm { padding: 9px 12px; }
}
