:root {
  color-scheme: light;
  --ink: #282537;
  --muted: #757180;
  --purple: #5845de;
  --purple-dark: #4432bf;
  --line: #e8e5ef;
  --surface: #faf9fc;
  --lime: #dfff91;
  --font:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic",
    Meiryo, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1:focus,
h2:focus {
  outline: none;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: -0.03em;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend,
label {
  font-size: 0.875rem;
  font-weight: 650;
}
legend {
  padding: 0;
}
input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #bdb7cc;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 13px 15px;
  font-size: 1rem;
  line-height: 1.6;
}
input {
  min-height: 52px;
}
textarea {
  resize: vertical;
}
input:user-invalid,
textarea:user-invalid {
  border-color: #b52f42;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: 0;
  left: 1rem;
  padding: 1rem;
  background: white;
  transform: translateY(-120%);
  z-index: 20;
}
.skip:focus {
  transform: none;
}
.site-header {
  max-width: 1040px;
  min-height: 78px;
  padding: 18px 32px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-mark {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  background: var(--purple);
  color: white;
  border-radius: 10px;
  font:
    700 2rem/1 Arial,
    sans-serif;
}
.beta {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  margin-left: 2px;
  color: var(--purple);
}
.site-header nav {
  display: flex;
  gap: 23px;
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
}
.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.site-header nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.header-note {
  font-size: 0.75rem;
  color: var(--muted);
  padding-left: 25px;
  border-left: 1px solid var(--line);
}
main {
  max-width: 600px;
  padding: 0 24px;
  margin: auto;
}
.flow-steps {
  list-style: none;
  padding: 0;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.flow-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: #8a8596;
}
.flow-steps li span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ece9f1;
  font:
    600 0.75rem/1 Arial,
    sans-serif;
}
.flow-steps [aria-current] {
  color: var(--purple);
  font-weight: 750;
}
.flow-steps [aria-current] span {
  color: #fff;
  background: var(--purple);
}
.intro {
  padding: 34px 0 25px;
  text-align: center;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 10px;
}
.intro h1 {
  font-size: clamp(2.5rem, 1.3rem + 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.055em;
}
.intro h1 span {
  color: var(--purple);
}
.intro-copy {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.9;
  margin-top: 15px;
}
.photo-picker {
  border: 1.5px dashed #c7bedf;
  border-radius: 22px;
  background: #f0edf9;
  overflow: hidden;
}
.photo-placeholder {
  min-height: 208px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
}
.camera-symbol {
  width: 53px;
  height: 53px;
  color: #8b7bbe;
  margin-bottom: 17px;
}
.photo-placeholder p {
  font-size: 0.875rem;
  font-weight: 600;
  color: #60576f;
}
.photo-placeholder span {
  font-size: 0.8125rem;
  color: #83788f;
  margin-top: 3px;
}
.photo-preview {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #f0edf9;
}
.photo-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 15px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background 0.18s;
}
.button svg {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
}
.primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 12px #5845de13;
}
.primary:hover:not(:disabled) {
  background: var(--purple-dark);
}
.secondary,
.save-button {
  background: #fff;
  color: var(--purple);
  border-color: #c7bfe2;
}
.secondary:hover,
.save-button:hover {
  background: #f5f1ff;
}
.next-button {
  width: 100%;
  margin-top: 10px;
  justify-content: space-between;
}
.photo-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.9;
  margin: 15px 0 30px;
}
.photo-status {
  font-size: 0.8125rem;
  text-align: center;
  color: var(--purple);
  margin-top: 10px;
}
.photo-status:empty {
  display: none;
}
[data-error="true"],
.error {
  color: #ad2a43;
}
.workspace {
  margin-top: 23px;
  min-width: 0;
}
.editor-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 26px 25px;
}
.back-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  min-height: 44px;
  font-size: 0.8125rem;
  text-align: left;
  margin-bottom: 13px;
}
.back-button:hover {
  color: var(--purple);
}
.section-heading h2,
.preview-heading h2 {
  font-size: 1.5rem;
}
.form-hint {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 9px 0 22px;
}
.selected-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f7f5fb;
  border-radius: 13px;
  padding: 12px;
  margin-bottom: 25px;
}
.selected-photo img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: contain;
  background: #eeebf5;
}
.selected-photo div {
  min-width: 0;
}
.selected-photo strong {
  font-size: 0.875rem;
}
.selected-photo button {
  display: block;
  font-size: 0.8125rem;
  color: var(--purple);
  background: transparent;
  border: 0;
  padding: 3px 0;
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.field {
  margin-bottom: 22px;
}
.field > label {
  display: block;
  margin-bottom: 8px;
}
.optional {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 8px;
}
.unit-input {
  position: relative;
}
.unit-input input {
  padding-right: 65px;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.unit-input > span {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--muted);
  pointer-events: none;
}
.icon-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
}
.icon-picker legend {
  margin-bottom: 9px;
}
.icon-picker label {
  position: relative;
  min-width: 0;
  flex: 1;
}
.icon-picker label > span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.35rem;
  cursor: pointer;
  background: #faf9fc;
}
.icon-picker input:checked + span {
  border: 2px solid var(--purple);
  background: #ede9ff;
}
.icon-picker input:focus-visible + span,
.segmented input:focus-visible + span {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.usage-mode legend {
  margin-bottom: 9px;
}
.segmented {
  display: flex;
  padding: 4px;
  border-radius: 11px;
  background: #f0eef5;
  margin-bottom: 12px;
}
.segmented label {
  flex: 1;
  min-width: 0;
  position: relative;
}
.segmented span {
  display: grid;
  place-items: center;
  min-height: 43px;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
}
.segmented input:checked + span {
  background: white;
  color: var(--purple);
  box-shadow: 0 2px 5px #2222220a;
}
.estimate-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.estimate-fields .field {
  margin-bottom: 0;
}
.estimate-fields > p {
  grid-column: 1/-1;
  margin-bottom: 20px;
  font-size: 0.75rem;
}
.calculate-button {
  width: 100%;
  justify-content: space-between;
}
.privacy-note {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  margin-top: 12px;
}
.error {
  font-size: 0.875rem;
  margin-bottom: 12px;
}
.result-panel {
  min-width: 0;
}
.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.preview-label {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}
.receipt {
  container-type: inline-size;
  background: white;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 25px 27px 22px;
  box-shadow: 0 10px 30px #4f35690a;
  overflow: hidden;
}
.receipt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mini-brand {
  font-size: 1rem;
  font-weight: 850;
  color: var(--purple);
}
.receipt-badge {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  font-weight: 750;
  color: #35431e;
  background: var(--lime);
  border-radius: 5px;
  padding: 4px 9px;
}
.receipt-kicker {
  text-align: center;
  margin: 21px 0 17px;
  font-size: 0.8125rem;
  color: #777080;
}
.card-photo {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 13px;
  background: #f4f3f8;
  margin: 0 auto 20px;
}
.item-icon {
  font-size: 3.5rem;
  line-height: 1.2;
  text-align: center;
  margin: 19px 0 12px;
}
.receipt h3 {
  font-size: 1.1875rem;
  font-weight: 750;
  line-height: 1.7;
  text-align: center;
  overflow-wrap: anywhere;
}
.per-use-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 16px;
}
.cost {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  line-height: 1.15;
  color: var(--purple);
  margin: 2px 0 11px;
}
.cost strong {
  min-width: 0;
  font:
    700 clamp(1rem, calc(125cqi / var(--cost-length, 2)), 5.5rem) / 1.15 Arial,
    sans-serif;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cost span {
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cost.unused strong {
  font-family: var(--font);
  font-size: 2rem;
  line-height: 1.7;
}
.equation {
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  overflow-wrap: anywhere;
}
.estimate-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}
.receipt-divider {
  border-top: 2px dashed #e4dfed;
  position: relative;
  margin: 24px -27px 18px;
}
.receipt-divider::before,
.receipt-divider::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  top: -11px;
}
.receipt-divider::before {
  left: -10px;
}
.receipt-divider::after {
  right: -10px;
}
.card-comment {
  text-align: center;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
  min-height: 23px;
}
.receipt-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.6875rem;
  color: #797084;
  margin-top: 22px;
}
.milestone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 19px 0;
  font-size: 0.8125rem;
  color: #625183;
}
.milestone > span {
  display: grid;
  place-items: center;
  background: #eeebf7;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.share-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.native-share {
  width: 100%;
  margin-bottom: 12px;
}
.x-button {
  color: white;
  background: #282537;
}
.copy-link {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  min-height: 48px;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 7px auto;
}
.share-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
}
.status {
  margin-top: 12px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--purple);
  overflow-wrap: anywhere;
}
.status[data-error="true"] {
  color: #ad2a43;
}
.small {
  font-size: 0.8125rem;
  color: var(--muted);
}
.examples {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 27px 0 32px;
}
.examples-heading {
  margin-bottom: 16px;
}
.examples-heading h2 {
  font-size: 1.125rem;
}
.examples-heading > .small {
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
}
.example-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.example-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  text-align: left;
  min-width: 0;
}
.example-card:hover {
  border-color: var(--purple);
}
.example-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 11px;
  font-size: 1.85rem;
}
.purple {
  background: #eeeaff;
}
.yellow {
  background: #fff2d5;
}
.green {
  background: #eaf1e4;
}
.example-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 15px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.example-name {
  font-size: 0.875rem;
  font-weight: 650;
}
.example-math {
  font-size: 0.75rem;
  color: var(--muted);
  grid-column: 1;
}
.example-price {
  grid-column: 2;
  grid-row: 1/3;
  font:
    700 1.85rem/1.4 Arial,
    sans-serif;
}
.example-price > span {
  display: block;
  font: 400 0.6875rem/1.2 var(--font);
  text-align: right;
  color: var(--muted);
}
.example-arrow {
  display: none;
}
.sample-note {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 10px;
}
.about {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.about h2 {
  font-size: 1.5rem;
  line-height: 1.7;
}
.about-copy {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.9;
}
.about-copy p + p {
  margin-top: 16px;
}
.care {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  background: #edf0e5;
  border-radius: 15px;
  padding: 21px;
  margin-top: 28px;
}
.care-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: #64704d;
}
.care .eyebrow {
  font-size: 0.75rem;
  color: #64704d;
  margin-bottom: 3px;
}
.care h2 {
  font-size: 1.0625rem;
}
.care p:not(.eyebrow) {
  font-size: 0.8125rem;
  color: #64704d;
  margin-top: 5px;
}
.care-link {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 16px;
  background: white;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}
.care .care-note {
  grid-column: 1/-1;
  font-size: 0.6875rem;
  margin-top: 0;
}
.faq {
  margin: 30px 0 36px;
}
.faq h2 {
  font-size: 1.125rem;
  margin-bottom: 13px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 19px 4px;
  font-size: 0.875rem;
  font-weight: 600;
}
.faq details p {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0 4px 20px;
  line-height: 1.9;
}
footer {
  max-width: 1040px;
  margin: 25px auto 0;
  padding: 25px 32px max(25px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
footer .brand {
  font-size: 1.0625rem;
}
footer .brand-mark {
  width: 26px;
  height: 26px;
  font-size: 1.5rem;
  border-radius: 8px;
}
footer p,
footer > span {
  font-size: 0.6875rem;
  color: var(--muted);
}
footer > span {
  margin-left: auto;
}
.shared-banner {
  background: #e5f7c5;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.8125rem;
  margin-top: 20px;
}
.shared-banner button {
  display: block;
  margin-top: 7px;
  border: 0;
  border-radius: 7px;
  background: white;
  min-height: 44px;
  padding: 7px 12px;
  font-size: 0.8125rem;
}
.noscript {
  color: #ad2a43;
  padding: 20px;
  text-align: center;
}
body:not([data-stage="photo"]) .examples,
body:not([data-stage="photo"]) .about,
body:not([data-stage="photo"]) .faq,
body:not([data-stage="photo"]) .site-header nav {
  display: none;
}
body:not([data-stage="result"]) .care {
  display: none;
}
@media (max-width: 600px) {
  .site-header {
    min-height: 64px;
    padding: 12px 20px;
    gap: 12px;
  }
  .brand {
    font-size: 1.2rem;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
    font-size: 1.8rem;
    border-radius: 9px;
  }
  .site-header nav {
    font-size: 0.75rem;
  }
  .site-header nav a:first-child,
  .header-note {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  .flow-steps {
    margin-top: 22px;
    gap: 24px;
  }
  .flow-steps li {
    font-size: 0.75rem;
    gap: 6px;
  }
  .intro {
    padding: 26px 0 22px;
  }
  .intro h1 {
    font-size: 2.65rem;
  }
  .intro .eyebrow {
    font-size: 0.6875rem;
    margin-bottom: 11px;
  }
  .intro-copy {
    font-size: 0.875rem;
    margin-top: 13px;
  }
  .photo-placeholder {
    min-height: 185px;
    padding: 20px 12px;
  }
  .photo-placeholder p {
    font-size: 0.8125rem;
  }
  .camera-symbol {
    width: 45px;
    height: 45px;
    margin-bottom: 14px;
  }
  .photo-actions {
    gap: 10px;
    margin-top: 15px;
  }
  .photo-actions .button {
    font-size: 0.875rem;
    gap: 7px;
    padding-inline: 10px;
  }
  .photo-preview {
    height: 245px;
  }
  .photo-note {
    font-size: 0.6875rem;
    margin-bottom: 28px;
  }
  .editor-panel {
    border: 0;
    padding: 0;
    background: transparent;
  }
  .workspace {
    margin-top: 20px;
  }
  .section-heading h2,
  .preview-heading h2 {
    font-size: 1.35rem;
  }
  .selected-photo {
    background: #eeeaf6;
  }
  .receipt {
    padding: 21px;
    border-radius: 16px;
  }
  .receipt-divider {
    margin-inline: -21px;
  }
  .card-photo {
    height: 210px;
  }
  .receipt-bottom {
    font-size: 0.625rem;
  }
  .receipt h3 {
    font-size: 1.1rem;
  }
  .example-card {
    gap: 12px;
    padding: 15px;
  }
  .example-name {
    font-size: 0.8125rem;
  }
  .example-math {
    font-size: 0.6875rem;
  }
  .example-body {
    column-gap: 10px;
  }
  .example-icon {
    width: 46px;
    height: 53px;
    font-size: 1.65rem;
  }
  footer {
    padding-inline: 20px;
  }
  footer > span {
    width: 100%;
    margin: 0;
  }
}
@media (max-width: 350px) {
  main {
    padding-inline: 16px;
  }
  .photo-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .photo-placeholder {
    min-height: 150px;
  }
  .photo-picker {
    border-radius: 16px;
  }
  .flow-steps {
    gap: 17px;
  }
  .preview-heading {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}
