:root {
  --ink: #151c2e;
  --ink-soft: #3d4558;
  --paper: #eceff4;
  --white: #fbfcfd;
  --tone: #aeb6c4;
  --blue: #2457c5;
  --blue-dark: #1b4296;
  --moon: #f2c75c;

  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --body: "Zen Kaku Gothic New", "Segoe UI", system-ui, sans-serif;

  --border: 3px solid var(--ink);
  --gutter: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: -0.01em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 10;
}
.skip-link:focus { top: 12px; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--blue); color: var(--white);
  border: var(--border); border-radius: 999px;
  font-weight: 700; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}
.button:hover { background: var(--blue-dark); color: var(--white); }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }

.text-link { font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* Header */
.top { border-bottom: var(--border); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-size: 1.2rem;
}
.brand img { border-radius: 50%; border: 2px solid var(--ink); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.button) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.button):hover { text-decoration: underline; }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 11px 9px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 3px; background: var(--ink); border-radius: 2px; }

/* Manga panels */
.panel {
  margin: 0;
  background: var(--white);
  border: var(--border);
  border-radius: 6px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  /* The phone panel takes the height it needs; the bubble panel fills only what's left */
  grid-template-rows: auto 1fr;
  gap: var(--gutter);
  padding-block: 40px 72px;
}
.panel-intro { grid-row: 1 / 3; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.panel-intro h1 { max-width: 14ch; text-wrap: balance; }
.lead { font-size: 1.2rem; max-width: 34em; color: var(--ink-soft); }
.fine { font-size: 0.95rem; color: var(--ink-soft); }

.panel-phone {
  overflow: hidden;
  background:
    radial-gradient(circle, var(--tone) 1.3px, transparent 1.6px) 0 0 / 9px 9px,
    var(--white);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 26px 26px 0;
  max-height: 460px;
}
.phone { width: min(250px, 100%); border: var(--border); border-bottom: 0; border-radius: 26px 26px 0 0; }

/* Screentone panel with a speech bubble */
.panel-tone {
  position: relative;
  min-height: 190px;
  background:
    radial-gradient(circle, var(--ink) 1.2px, transparent 1.5px) 0 0 / 7px 7px,
    #c9d0db;
  padding: 24px;
  display: flex; align-items: flex-start;
}
.bubble {
  position: relative;
  max-width: 15em;
  background: var(--white);
  border: var(--border);
  border-radius: 50% / 46%;
  padding: 22px 30px;
  font-weight: 700; font-size: 1.1rem; line-height: 1.35; text-align: center;
}
.bubble::after {
  content: ""; position: absolute; left: 38%; bottom: -21px;
  width: 26px; height: 24px;
  background: var(--white);
  border-right: var(--border); border-bottom: var(--border);
  transform: skewX(-28deg) rotate(18deg);
  border-bottom-right-radius: 4px;
}
.moon { position: absolute; right: 22px; bottom: 18px; width: 54px; fill: var(--moon); stroke: var(--ink); stroke-width: 3; }

/* Sections */
.section { padding-block: 64px; border-top: var(--border); }
.section h2 { margin-bottom: 32px; }
.section-note { color: var(--ink-soft); margin: -20px 0 28px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-soft); max-width: 36em; }

/* Screenshot strip */
.shots {
  list-style: none; margin: 0; padding: 4px max(16px, calc((100% - var(--wrap)) / 2)) 12px;
  display: flex; gap: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.shots li { flex: 0 0 auto; scroll-snap-align: start; }
.shots figure { margin: 0; width: 220px; }
.shots img { border: var(--border); border-radius: 18px; background: var(--ink); }
.shots figcaption { margin-top: 12px; font-weight: 500; font-size: 0.98rem; }

/* FAQ */
.faq-list { max-width: 46em; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 1.4rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 40em; }

/* Closing panel */
.closing { padding-block: 24px 72px; }
.panel-closing {
  padding: clamp(28px, 5vw, 52px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background:
    radial-gradient(circle, var(--tone) 1.3px, transparent 1.6px) 0 0 / 9px 9px,
    var(--white);
}
.panel-closing h2 { max-width: 14ch; }

/* Footer */
.footer { border-top: var(--border); padding-block: 28px; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--ink); }

/* Phone */
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .menu-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 12px 16px 20px;
    background: var(--paper); border-bottom: var(--border);
  }
  .nav.open { display: flex; }
  .nav a:not(.button) { padding: 10px 0; }
  .top-inner { position: relative; }

  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .panel-intro { grid-row: auto; }
  .panel-phone { max-height: 380px; }
  .panel-tone { min-height: 160px; }
  .section { padding-block: 48px; }
}
