/* /pricing, on top of landing.css: the same type, colors, buttons and footer. */
.pr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav nav a[aria-current="page"]::after { transform: scaleX(1); }
.pr-icon { flex: none; width: 1rem; height: 1rem; margin-top: .24rem; color: var(--accent); }
a:focus-visible, summary:focus-visible, .pr-table-wrap:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.pr-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem; background: linear-gradient(180deg, #e6f7f0 0%, #f2effe 58%, #fff 100%); }
.pr-hero .label, .pr-make .label { color: var(--accent); }
.pr-title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 400; line-height: 1.05; letter-spacing: -.04em; margin: .6rem 0 1rem; max-width: 16ch; }
.pr-title em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.pr-lede { font-size: 1.14rem; color: var(--ink-2); max-width: 38rem; margin: 0 0 1.6rem; }

.pr-plans { padding-bottom: 1.5rem; }
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.pr-card { display: flex; flex-direction: column; padding: 1.5rem 1.35rem; background: #fff; border: 1px solid var(--rule); border-radius: 18px; min-width: 0; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.pr-card.is-featured { background: #fff; border: 1.5px solid var(--accent); box-shadow: 0 22px 44px -28px rgba(31, 107, 104, .6); }
.pr-card.is-featured .pr-price, .pr-card.is-featured .pr-billing { color: var(--ink-2); }
.pr-card.is-popular { border-color: var(--ink); box-shadow: 0 18px 40px -28px rgba(18, 20, 23, .5); }
.pr-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem .6rem; min-height: 1.8rem; }
.pr-card h3 { margin: 0; font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em; }
.pr-badge { display: inline-block; padding: .14rem .55rem; font-size: .7rem; font-weight: 700; color: #fff; background: var(--ink); border-radius: 999px; white-space: nowrap; }
.pr-price { display: flex; align-items: baseline; gap: .3rem; margin: .9rem 0 .4rem; color: var(--muted); font-size: .92rem; }
.pr-price strong { font-size: 2.5rem; font-weight: 500; line-height: 1.1; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pr-billing { margin: 0 0 .55rem; min-height: 1.35em; font-size: .8rem; line-height: 1.35; color: var(--muted); }
main[data-billing="annual"] .when-monthly, main[data-billing="monthly"] .when-annual { display: none; }
.pr-billing-switch { display: inline-flex; gap: 2px; margin-bottom: 1.2rem; padding: 3px; background: var(--tint); border: 1px solid var(--rule); border-radius: 999px; }
.pr-billing-switch[hidden] { display: none; }
.pr-billing-switch button { padding: .5rem 1.05rem; font: 600 .9rem/1.3 var(--font); color: var(--ink-2); background: none; border: 0; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.pr-billing-switch button:hover { color: var(--ink); }
.pr-billing-switch button[aria-pressed="true"] { color: #fff; background: var(--accent); }
.pr-billing-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pr-save { display: inline-block; margin-left: .2rem; padding: .08rem .5rem; font-size: .72rem; font-weight: 700; line-height: 1.4; color: var(--accent); background: var(--accent-soft); border-radius: 999px; }
.pr-audience { margin: 0 0 1.2rem; font-size: .9rem; line-height: 1.45; color: var(--ink-2); min-height: 4.4em; }
.pr-cta { width: 100%; justify-content: center; text-align: center; }
.pr-features { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .6rem; }
.pr-feature { display: flex; gap: .55rem; font-size: .92rem; line-height: 1.45; color: var(--ink); }
.pr-tag { display: inline-block; padding: 0 .4rem; font-size: .68rem; font-weight: 600; line-height: 1.5; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; white-space: nowrap; vertical-align: .08em; }
.pr-fine { margin: 1rem 0 0; font-size: .84rem; line-height: 1.5; color: var(--muted); max-width: 46rem; }

.pr-once { padding: 1.5rem 0 4.5rem; }
.pr-once-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(12.5rem, .5fr); gap: 2rem; align-items: start; padding: 1.6rem 1.5rem; background: var(--tint); border: 1px solid var(--rule); border-radius: 18px; }
.pr-once-card h2 { margin: .35rem 0 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; }
.pr-once-card .pr-features { margin-top: 0; }
/* the button's words stay on one line (the Japanese is long), a little smaller than the plan cards' */
.pr-once-card > .pr-cta { white-space: nowrap; font-size: .86rem; padding-left: .9rem; padding-right: .9rem; }

.pr-make { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--pastel); }
.pr-make-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pr-make .big { margin-top: .6rem; }
.pr-make-copy { margin: 1.2rem 0 0; color: var(--ink-2); font-size: 1.05rem; max-width: 34rem; }
.pr-make-strong { margin: .9rem 0 1.4rem; font-weight: 700; }
.pr-make .pr-features { margin-top: .5rem; }
.pr-make .pr-fine { color: var(--ink-2); }
.pr-journey { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 1.5rem 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid rgba(18, 20, 23, .16); }
.pr-journey li { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; line-height: 1.4; font-weight: 500; }
.pr-step { font-size: .74rem; font-weight: 700; color: var(--accent); }

.pr-compare { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.pr-table-wrap { position: relative; margin-top: 2rem; overflow-x: auto; } /* relative: keeps the table's screen-reader text inside the scroll */
.pr-table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: .92rem; }
.pr-table th, .pr-table td { padding: .75rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); font-weight: 400; }
.pr-table thead th { font-weight: 700; font-size: 1rem; vertical-align: bottom; border-bottom: 1px solid var(--ink); }
.pr-table-price { display: block; font-size: .84rem; font-weight: 500; color: var(--muted); }
.pr-table tbody th { color: var(--ink-2); width: 30%; position: sticky; left: 0; background: #fff; }
.pr-table .pr-group th { padding-top: 1.5rem; font: 600 .74rem/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pr-table td { color: var(--ink); }
.pr-table .is-no { color: var(--muted); }
.pr-table .is-yes .pr-icon { display: block; margin-top: .1rem; }

.faq { background: var(--wash); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pr-card:hover, .pr-once-card:hover { transform: translateY(-5px); border-color: rgba(31, 107, 104, .5); box-shadow: 0 26px 46px -26px rgba(40, 60, 110, .45); }
  .pr-card.is-featured:hover { border-color: var(--accent); box-shadow: 0 30px 52px -26px rgba(31, 107, 104, .7); }
}

/* Four narrow cards: the price and its label stay on one line, so the buttons stay level. */
@media (min-width: 1081px) and (max-width: 1240px) { .pr-price span { font-size: .8rem; white-space: nowrap; } }
@media (max-width: 1080px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-once-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pr-once-card > .pr-cta { grid-column: 1 / -1; }
  .pr-journey { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pr-grid, .pr-once-card, .pr-make-grid { grid-template-columns: minmax(0, 1fr); }
  .pr-audience, .pr-billing { min-height: 0; }
  .pr-once-card { gap: 1.2rem; }
  .pr-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-table { min-width: 38rem; font-size: .86rem; }
  .pr-table tbody th { width: 9.5rem; }
  .pr-table th, .pr-table td { padding: .65rem .55rem; }
}
html[lang="ja"] .pr-title, html[lang="ja"] .pr-table .pr-group th { letter-spacing: 0; }
html[lang="ja"] .pr-title { max-width: none; line-height: 1.2; word-break: auto-phrase; }

/* each price is there in dollars and in yen; Japanese pages show yen */
.cur-jpy { display: none; }
html[lang="ja"] .cur-jpy { display: inline; }
html[lang="ja"] .cur-usd { display: none; }
