/* public/styles.css */

/* -----------------------
   Quiet Luxury palette
   ----------------------- */
:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --divider: rgba(28, 28, 28, 0.1);

  --text: #1c1c1c;
  --muted: rgba(28, 28, 28, 0.68);
  --hint: rgba(28, 28, 28, 0.52);

  --accent: #6b705c; /* sage */
  --accent-soft: rgba(107, 112, 92, 0.12);

  --shadow: 0 10px 30px rgba(28, 28, 28, 0.06);
  --radius: 18px;

  --max: 1080px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(
      1200px 600px at 10% 0%,
      rgba(107, 112, 92, 0.06),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 95% 10%,
      rgba(107, 112, 92, 0.05),
      transparent 60%
    ),
    var(--bg);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
strong {
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  border: 1px solid var(--divider);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.skip:focus {
  left: 12px;
  z-index: 99;
}

/* -----------------------
     Header
     ----------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(246, 246, 244, 0.75);
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(28, 28, 28, 0.1);
}

.nav {
  display: none;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.nav a {
  padding: 6px 8px;
  border-radius: 10px;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.header-cta {
  display: flex;
  gap: 10px;
}

@media (min-width: 860px) {
  .nav {
    display: inline-flex;
  }
}

/* -----------------------
     Buttons / Pills
     ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(28, 28, 28, 0.12);
  background: var(--accent);
  color: white;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 18px rgba(107, 112, 92, 0.18);
}
.btn:hover {
  text-decoration: none;
  filter: brightness(0.98);
}
.btn[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  box-shadow: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(28, 28, 28, 0.1);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

/* -----------------------
     Hero
     ----------------------- */
.hero {
  padding: 44px 0 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.hero-copy {
  padding: 18px 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(107, 112, 92, 0.25);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.8px;
}

.lead {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hint {
  color: var(--hint);
  font-weight: 600;
  font-size: 13px;
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: var(--accent-soft);
  color: rgba(28, 28, 28, 0.78);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18px;
}

.card-title {
  color: var(--hint);
  font-weight: 700;
  font-size: 12px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.shot {
  margin: 0;
}

.shot-frame {
  width: 100%;
  aspect-ratio: 1 / 1; /* You / Item */
  border-radius: 16px;
  border: 1px solid rgba(28, 28, 28, 0.1);
  background: linear-gradient(
    135deg,
    rgba(107, 112, 92, 0.06),
    rgba(28, 28, 28, 0.02)
  );
  overflow: hidden;
  position: relative;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Result is the hero */
.shot--result {
  grid-column: 1 / -1;
}
.shot--result .shot-frame {
  aspect-ratio: 1 / 1; /* Big result */
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(28, 28, 28, 0.1);
}

.shot--result .shot-frame img {
  object-fit: contain;
  background: #fff; /* 余白が出た時も上品 */
}

/* When image missing, show a subtle placeholder label */
.shot-frame.is-empty::after {
  content: "Add square screenshot";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(28, 28, 28, 0.46);
  font-weight: 700;
  font-size: 12px;
}

figcaption {
  margin-top: 8px;
  text-align: center;
  color: var(--hint);
  font-weight: 700;
  font-size: 12px;
}

.micro {
  margin: 12px 0 0;
  color: var(--hint);
  font-weight: 600;
  font-size: 13px;
}

/* Layout breakpoints */
@media (min-width: 980px) {
  .hero {
    padding: 58px 0 22px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 22px;
  }
  .hero-copy {
    padding: 28px 0;
  }
}

/* -----------------------
     Sections
     ----------------------- */
.section {
  padding: 36px 0;
}

.section.alt {
  padding: 40px 0;
}

.section-head {
  margin-bottom: 14px;
}

h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.3px;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.step {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(107, 112, 92, 0.2);
  font-weight: 900;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(28, 28, 28, 0.04);
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(107, 112, 92, 0.1);
  border: 1px solid rgba(28, 28, 28, 0.08);
  margin-bottom: 10px;
  color: rgba(28, 28, 28, 0.72);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.cta-card {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(107, 112, 92, 0.2);
  background: radial-gradient(
      600px 220px at 20% 0%,
      rgba(107, 112, 92, 0.14),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.7);
}

.cta-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

details {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 14px 14px;
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}
summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* -----------------------
     Footer
     ----------------------- */
.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(28, 28, 28, 0.08);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.brand--footer .brand-mark {
  width: 22px;
  height: 22px;
}

.fineprint {
  margin: 8px 0 0;
  color: var(--hint);
  font-weight: 600;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

@media (min-width: 860px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
