/* Picliva site.
   Black ground, one blue accent, flat surfaces only.
   Type: General Sans. No gradients, no shadows at rest, no 1px rules, no uppercase labels. */

:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #98989f;
  --surface: #141416;
  --surface-2: #1e1e21;
  --surface-3: #2c2c31;
  --surface-4: #3d3d45;
  --field-tone: #0c0c0f;
  --panel: #17171b;
  --slot: #32323a;
  --accent: #0a84ff;
  --blue: #2a62f0;
  --btn-bg: #ffffff;
  --btn-ink: #000000;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-head: clamp(1.875rem, 1.25rem + 3vw, 3.75rem);

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1220px;
  --radius: 14px;
  --space: clamp(4rem, 8vw, 7rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Sans", "Noto Sans JP", "PingFang SC", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.muted { color: var(--muted); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 0.7rem 1rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- bar ---------- */
.bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  column-gap: clamp(0.9rem, 2vw, 1.75rem); row-gap: 0.6rem;
  padding-block: 1.05rem; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gut);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; letter-spacing: -0.02em; font-size: 1.0625rem; text-decoration: none;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.barutility {
  display: flex; flex-wrap: wrap; align-items: center; justify-self: end;
  gap: 0.45rem clamp(0.7rem, 1.6vw, 1.4rem);
}
.barutility > a { text-decoration: none; font-size: var(--step-small); color: var(--muted); }
.barutility > a:hover, .barutility > a:focus-visible { color: var(--ink); }
.barutility > a[aria-current="page"] { color: var(--ink); }
.barutility .langs { gap: 0.7rem; }
.barcta { justify-self: end; }
@media (max-width: 700px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar .brand { grid-area: 1 / 1; }
  .barcta { grid-area: 1 / 2; }
  .barutility { grid-area: 2 / 1 / 3 / 3; justify-self: start; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: var(--step-body);
  text-decoration: none; cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}
.btn:hover { background: #e6e6ea; }
.btn:active { transform: scale(0.97); }
.btn.alt { background: var(--surface-2); color: var(--ink); }
.btn.alt:hover { background: var(--surface-3); }
.btn.small { min-height: 40px; padding: 0 1rem; font-size: var(--step-small); }

.link { color: var(--muted); text-decoration: underline; text-underline-offset: 0.25em; }
.link:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.25rem, 3.4vw, 2.25rem) 0; text-align: center; }
.hero .sentence {
  font-size: clamp(2.25rem, 9.2vw, 6.75rem);
  line-height: 0.95; letter-spacing: -0.045em;
  margin-inline: auto;
  display: flex; flex-direction: column; gap: 0.06em;
}
.hero .sentence .line { display: block; white-space: nowrap; }

.strip {
  display: inline-flex; flex-direction: row; align-items: stretch;
  gap: var(--gapem, 0.11em);
  height: 0.7em; margin-inline: 0.2em;
  vertical-align: baseline; position: relative; top: 0.01em;
}
.strip i {
  display: block; width: 0.6em; height: 100%; border-radius: 0.085em;
  background: #3b4250; position: relative; overflow: hidden;
}
.strip i::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 52%; background: rgba(0, 0, 0, 0.32);
}
.strip i:nth-child(2) { background: #3c3742; }
.strip i:nth-child(3) { background: #35423c; }
.strip i:nth-child(4) { background: #433c33; }

.hero .sub { margin: clamp(1rem, 2vw, 1.5rem) auto 0; max-width: 46ch; color: var(--muted); }
.hero .act { margin-top: clamp(1.25rem, 2vw, 1.5rem); display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- control rail ---------- */
.rail {
  margin: clamp(1.5rem, 2.6vw, 2rem) auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
  background: var(--surface); border-radius: 18px;
  padding: clamp(1rem, 2vw, 1.5rem);
  max-width: 860px; text-align: left;
}
@media (max-width: 760px) { .rail { grid-template-columns: 1fr; } }
.ctl { display: grid; gap: 0.6rem; align-content: start; }
.ctl .lab { font-size: var(--step-small); color: var(--muted); display: flex; justify-content: space-between; gap: 0.75rem; }
.ctl .lab b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.seg { display: flex; background: var(--surface-3); border-radius: 10px; padding: 3px; }
.seg > * {
  flex: 1; min-height: 34px; padding: 0 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font: inherit; font-size: var(--step-small); font-weight: 500; cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.seg > [aria-pressed="true"], .seg > .on { background: var(--surface-4); color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 34px; }

/* ---------- hero board (interface fragment) ---------- */
.board {
  display: grid; gap: var(--board-gap, 8px);
  height: clamp(215px, 24vh, 250px);
  background: #0e0e11; border-radius: var(--radius); padding: 10px;
}
.board[data-dir="horizontal"] { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.board[data-dir="vertical"] { grid-auto-flow: row; grid-auto-rows: minmax(0, 1fr); }
.slot { background: var(--slot); border-radius: 10px; }
.board .slot { position: relative; overflow: hidden; }

/* Stand-ins for photographs: one flat tone plus two quiet shapes, drawn in CSS.
   No gradients, no stock imagery — an abstract frame that still reads as a picture. */
.shot { position: relative; overflow: hidden; background: #3b4250; }
.shot::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 56%; background: #2b313c;
}
.shot::after {
  content: ""; position: absolute; top: 15%; right: 13%;
  width: 26%; aspect-ratio: 1 / 1; border-radius: 50%; background: #5d6675;
}
.shot.v2 { background: #3c3742; }
.shot.v2::before { height: 42%; background: #2c2833; }
.shot.v2::after {
  top: auto; right: auto; bottom: 0; left: 12%;
  width: 32%; aspect-ratio: auto; height: 46%;
  border-radius: 5px 5px 0 0; background: #5a5265;
}
.shot.v3 { background: #35423c; }
.shot.v3::before { height: 64%; background: #27322d; }
.shot.v3::after { top: 17%; right: auto; left: 14%; width: 21%; background: #6d7d74; }
.shot.v4 { background: #433c33; }
.shot.v4::before { height: 47%; background: #322c26; }
.shot.v4::after { top: auto; right: 15%; bottom: 0; width: 30%; background: #6d6355; }
.shot > .sn { z-index: 1; }
.board .sn {
  position: absolute; left: 0.6rem; bottom: 0.55rem;
  font-size: 0.8125rem; color: var(--muted); white-space: nowrap;
}
.demo { margin-top: clamp(1.25rem, 2.2vw, 1.75rem); }
.boardmeta {
  margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem;
  justify-content: center; align-items: baseline;
}
.boardmeta .live { font-size: var(--step-small); color: var(--ink); font-weight: 500; }
.boardmeta .free { font-size: var(--step-small); color: var(--muted); }

/* The two interface fragments that used to sit in the colour fields — export
   settings and library review — folded into the single demo module above. */
.flow {
  margin: clamp(1rem, 2vw, 1.4rem) auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  max-width: 860px; text-align: left;
}
.flowcell {
  background: var(--surface); border-radius: var(--radius);
  padding: clamp(0.9rem, 1.8vw, 1.25rem);
  display: grid; gap: 0.75rem; align-content: start;
}
.flowcell .ftitle {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--ink);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
}
.flowcell .frow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; font-size: var(--step-small); color: var(--muted);
}
.flowcell .fnote { font-size: var(--step-small); color: var(--muted); }
.chips { display: flex; gap: 3px; background: var(--surface-3); border-radius: 10px; padding: 3px; }
.chips i {
  font-style: normal; padding: 0.28rem 0.6rem; border-radius: 8px;
  font-size: var(--step-small); color: var(--muted); white-space: nowrap;
}
.chips i.on { background: var(--surface-4); color: var(--ink); }
.fthumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.fthumbs i { display: block; height: clamp(52px, 7vw, 66px); border-radius: 8px; }
.fthumbs .marked { outline: 2px solid var(--accent); outline-offset: -2px; }
.ftrack { display: block; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ftrack i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

/* ---------- interface panels used inside the colour fields ---------- */
.panel {
  background: var(--panel); color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  display: grid; gap: 0.9rem; align-content: space-between;
  min-height: 210px; align-self: stretch;
}
.panel .ptitle { font-size: var(--step-small); color: var(--muted); }
.panel .pnote { font-size: var(--step-small); color: var(--muted); }

/* ---------- demo section ---------- */
.work { margin-top: var(--space); }
.work h2 { font-size: var(--step-head); max-width: 22ch; letter-spacing: -0.045em; }

/* ---------- plans ---------- */
.plans { margin-top: var(--space); background: var(--field-tone); padding-block: var(--space); }
.plans h2 { font-size: var(--step-head); max-width: 22ch; }
.plans .introrow { margin-top: 1.25rem; color: var(--muted); max-width: 54ch; }

.ptable { margin-top: clamp(2rem, 4vw, 3rem); width: 100%; border-collapse: collapse; text-align: left; }
.ptable th, .ptable td { padding-block: clamp(0.7rem, 1.3vw, 1rem); vertical-align: baseline; }
.ptable thead th { font-size: var(--step-small); color: var(--muted); font-weight: 500; }
.ptable thead th.free, .ptable thead th.pro { font-size: clamp(1.125rem, 2vw, 1.5rem); color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.ptable thead th.pro { color: var(--accent); }
.ptable thead .price { display: block; font-size: var(--step-small); color: var(--muted); font-weight: 400; margin-top: 0.3rem; }
.ptable tbody th { font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); font-weight: 500; letter-spacing: -0.015em; }
.ptable tbody td { font-size: var(--step-small); color: var(--muted); }
.ptable tbody td.yes { color: var(--ink); }
.ptable tbody td.pro-only { color: var(--accent); }
.ptable tr.group th { font-size: var(--step-small); color: var(--muted); font-weight: 500; padding-top: 1.9rem; }
.ptable col.c1 { width: 54%; } .ptable col.c2 { width: 23%; } .ptable col.c3 { width: 23%; }

@media (max-width: 720px) {
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; }
  .ptable thead { display: none; }
  .ptable tbody th { padding-bottom: 0.2rem; }
  .ptable tbody td { padding-block: 0.1rem; }
  .ptable tbody td::before { content: attr(data-plan) ": "; color: var(--muted); }
  .ptable tr.group { padding-top: 1.25rem; }
  .ptable tr { padding-bottom: 1rem; }
}

.plans .foot { margin-top: clamp(1.75rem, 3vw, 2.5rem); color: var(--muted); max-width: 62ch; }

/* ---------- faq ---------- */
.faq { margin-top: var(--space); }
.faqrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.5rem); padding-block: clamp(1.25rem, 2.4vw, 1.9rem); }
.faqrow h3 { font-size: clamp(1.375rem, 2.2vw, 2.125rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.faqrow p { color: var(--muted); max-width: 46ch; }
.faqrow.head h3 { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .faqrow { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding-block: 1.25rem; }
  .faqrow h3 { font-size: 1.3125rem; }
}

/* ---------- closing ask ---------- */
.ask { margin-top: var(--space); background: var(--blue); color: #fff; }
.ask .in { max-width: var(--maxw); margin-inline: auto; padding: clamp(2.5rem, 6vw, 5rem) var(--gut); }
.ask .closing { font-size: clamp(1.875rem, 4.8vw, 3.75rem); letter-spacing: -0.04em; line-height: 1.05; max-width: 24ch; font-weight: 700; }
.askform { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.askform label { font-size: var(--step-small); width: 100%; }
.askform input[type="text"] {
  font: inherit; font-size: var(--step-body); color: #000; background: #fff;
  border: 0; border-radius: var(--radius); padding: 0 1rem; min-height: 48px;
  flex: 1 1 18rem; max-width: 32rem;
}
.askform input[type="text"]::placeholder { color: #5c5c66; }
.askform .btn { background: #000; color: #fff; }
.askform .btn:hover { background: #1c1c22; }
.ask .hint { margin-top: 1.25rem; font-size: var(--step-small); max-width: 52ch; }
.ask .links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; }
.ask .links a { font-size: var(--step-small); text-decoration: none; }
.ask .links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- footer ---------- */
footer { padding-block: clamp(2rem, 4vw, 3rem); }
footer .in {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut);
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline;
}
footer p, footer a { font-size: var(--step-small); color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .brandline { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 600; }
footer .brandline img { width: 22px; height: 22px; border-radius: 6px; }
footer .sp { margin-left: auto; }

/* ---------- prose pages (privacy, support) ---------- */
.doc { max-width: 48rem; margin-inline: auto; padding-inline: var(--gut); }
.doc .intro { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 2vw, 1.5rem); }
.doc h1 { font-size: clamp(2.25rem, 6.5vw, 5rem); max-width: 20ch; letter-spacing: -0.04em; }
.doc .intro p { margin-top: 0.9rem; color: var(--muted); max-width: 48ch; }
.doc .date { font-size: var(--step-small); margin-top: 1rem; }
.doc section { padding-block: clamp(1.25rem, 2.4vw, 1.9rem); }
.doc section h2 { font-size: clamp(1.1875rem, 1.9vw, 1.5rem); letter-spacing: -0.02em; }
.doc section h2 + p { margin-top: 0.7rem; }
.doc section p, .doc section li { color: var(--muted); max-width: 64ch; }
.doc section p + p, .doc section ul, .doc section p + ul { margin-top: 0.7rem; }
.doc ul { padding-left: 1.1rem; margin: 0; }
.doc li + li { margin-top: 0.35rem; }
.doc b { color: var(--ink); font-weight: 600; }
.doc .panel { margin-top: 1.25rem; color: var(--ink); max-width: 34rem; }
.doc .cta { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.doc .mailto { display: inline-block; margin-top: 0.75rem; font-size: var(--step-small); }

.langs { display: flex; gap: 1rem; flex-wrap: wrap; }
.langs a { font-size: var(--step-small); color: var(--muted); text-decoration: none; }
.langs a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- motion ---------- */
.js [data-enter] { opacity: 0; transform: translateY(14px); }
.js [data-enter].in {
  opacity: 1; transform: none;
  transition: opacity 380ms cubic-bezier(.2,.7,.2,1), transform 380ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.js .sentence .line { opacity: 0; transform: translateY(0.1em); }
.js .sentence.in .line {
  opacity: 1; transform: none;
  transition: opacity 420ms cubic-bezier(.2,.7,.2,1), transform 420ms cubic-bezier(.2,.7,.2,1);
}
.js .sentence.in .line:nth-child(2) { transition-delay: 90ms; }
.js .sentence.in .strip i { animation: slot-in 460ms cubic-bezier(.2,.7,.2,1) backwards; }
.js .sentence.in .strip i:nth-child(1) { animation-delay: 120ms; }
.js .sentence.in .strip i:nth-child(2) { animation-delay: 180ms; }
.js .sentence.in .strip i:nth-child(3) { animation-delay: 240ms; }
@keyframes slot-in { from { opacity: 0; transform: translateY(0.08em); } }
.js .board .slot { animation: slot-in 420ms cubic-bezier(.2,.7,.2,1) backwards; }
.board .slot:nth-child(2) { animation-delay: 70ms; }
.board .slot:nth-child(3) { animation-delay: 140ms; }
.board .slot:nth-child(4) { animation-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  .js [data-enter], .js .sentence .line { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .sentence .strip i, .js .board .slot { animation: none !important; }
  .btn, .seg > * { transition: none !important; }
}
