/* sotomi.ai — the 1d identity from the design canvas ("Website: sotomi"). */

@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-grotesque-latin-variable.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/fonts/sora-latin-variable.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Urbanist'; src: url('/fonts/urbanist-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/fonts/outfit-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f1ede7; --card: #f7f4ed; --beige: #eae5dc;
  --ink: #2c2a29; --ink2: #5f5c58; --ink3: #6d6965;
  --blue: #364e7a; --red: #8f2a1e; --green: #325e3e; --yellow: #74511a;
  --amber: #dfac42; --grey: #c0bcb4;
  --red-tint: #f0e3de; --green-tint: #dfe8e0; --yellow-tint: #f3e8d2;
  --on-band: rgba(241, 237, 231, .3);
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--paper); }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.display { margin: 0; font-family: var(--display); font-optical-sizing: auto; font-weight: 800; letter-spacing: -.022em; text-wrap: balance; }
.h2 { font-size: clamp(38px, 5vw, 72px); line-height: .98; }
.label { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  border-radius: 999px; border: 0; font-family: var(--body); font-size: 16px; font-weight: 500;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.pill-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.pill-blue { background: var(--blue); color: var(--paper); }
.pill-ink { background: var(--ink); color: var(--paper); }
.pill-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.pill-blue:hover { background: #2d4268; }
.pill-ink:hover { background: #000; }
.pill-outline:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.wm { font-family: 'Urbanist', var(--body); font-weight: 600; letter-spacing: .02em; line-height: 1; font-size: 32px; color: var(--ink); }
.by { font-family: 'Outfit', var(--body); font-weight: 500; letter-spacing: -.005em; font-size: 14px; color: var(--ink3); white-space: nowrap; }
.by b { font-weight: 500; color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 500; }
.site-nav a:not(.pill) { color: var(--ink2); text-decoration: none; }
.site-nav a:not(.pill):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 104px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-size: clamp(45px, 6.2vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: -.005em; }
.hero-sub { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(23px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.02em; color: var(--red); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.check-card { background: var(--card); border-radius: 36px; padding: 36px; box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .45); }
.check-card-title { font-size: 30px; line-height: 1.1; margin-bottom: 8px; }
.check-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--beige); }
.check-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--beige); }
.check-item { font-weight: 600; }
.dot { flex: none; width: 22px; height: 22px; border-radius: 50%; }
.dot-red { background: var(--red); } .dot-green { background: var(--green); } .dot-yellow { background: var(--amber); }
.tag { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.tag-red { background: var(--red-tint); color: var(--red); }
.tag-green { background: var(--green-tint); color: var(--green); }
.tag-yellow { background: var(--yellow-tint); color: var(--yellow); }

/* Coloured bands */
.band { color: var(--paper); }
.band-red { background: var(--red); }
.band-green { background: var(--green); }
.band-blue { background: var(--blue); }
.band-inner { padding-top: 96px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 56px; }
.band-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: end; }
.band-lead { margin: 0; font-size: 21px; line-height: 1.5; }

/* Five places */
/* Desktop: five columns side by side. Tablet: two columns of rows. Phone: one row
   per step with three columns (number | word | bullets). */
.five { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid rgba(241, 237, 231, .5); }
.five > li { display: flex; flex-direction: column; gap: 14px; padding: 28px 20px 0; border-left: 1px solid var(--on-band); }
.five > li:first-child { padding-left: 0; border-left: 0; }
.five > li:last-child { padding-right: 0; }
.five > li > div { display: flex; flex-direction: column; gap: 14px; }
.num { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: .9; letter-spacing: -.04em; }
.word { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.025em; }
.bl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bl li { display: flex; gap: 9px; align-items: baseline; font-size: 15px; line-height: 1.4; }
.bl li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); opacity: .7; transform: translateY(-2px); }

/* How it works */
.how-title { max-width: 860px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { background: rgba(241, 237, 231, .1); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.steps h3 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; }
.steps p { margin: 0; font-size: 17px; }
.stepn { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 26px; }

/* Pricing */
.pricing { padding-top: 96px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 36px; }
.pricing .h2 { font-size: clamp(38px, 4.5vw, 64px); line-height: 1; }
.pricing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.currency { display: flex; align-items: center; gap: 12px; }
.currency-label { font-size: 14px; color: var(--ink3); }
.currency-switch { display: flex; gap: 2px; padding: 3px; border: 1.5px solid var(--ink); border-radius: 999px; }
.cur { min-height: 44px; min-width: 80px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; cursor: pointer; }
.cur[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { background: var(--card); border: 2px solid var(--beige); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.plan-featured { border-color: var(--ink); }
.plan-price { display: flex; flex-direction: column; gap: 6px; }
.was { margin: 0; font-size: 18px; color: var(--ink3); }
.now { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 4vw, 56px); line-height: 1; letter-spacing: -.03em; }
.price-notes { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 3px; }
.off { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; background: var(--red-tint); color: var(--red); white-space: nowrap; }
.tax { font-size: 14px; line-height: 1; color: var(--ink3); }
.li-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.li-list li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.li-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); transform: translateY(-1px); }
.plan .pill { align-self: flex-start; }

/* Request */
.request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 88px; padding-bottom: 96px; }
.request-title { font-size: clamp(38px, 4.2vw, 60px); line-height: 1; }
.request-form { background: var(--paper); color: var(--ink); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.request-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.request-form input, .request-form select {
  width: 100%; min-height: 52px; border: 1.5px solid var(--ink3); border-radius: 14px; background: #fff;
  padding: 0 16px; font-family: var(--body); font-size: 16px; color: var(--ink);
}
.request-form .pill { width: 100%; }
.form-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink3); }
.form-note a { color: var(--blue); }
.request-form :focus-visible { outline-color: var(--blue); }

/* Footer */
.site-footer { background: var(--card); border-top: 1px solid var(--beige); }
.footer-inner { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .wm { font-size: 30px; }
.footer-brand .by { font-size: 13px; }
.footer-brand p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); max-width: 380px; }
.site-footer nav { display: flex; flex-direction: column; }
.site-footer nav .label { font-size: 12px; margin-bottom: 8px; }
.site-footer nav a { color: var(--ink2); text-decoration: none; font-size: 15px; line-height: 2.1; }
.site-footer nav a:hover { color: var(--blue); text-decoration: underline; }
.copyright { margin: 0; padding-top: 20px; border-top: 1px solid var(--beige); font-size: 13px; color: var(--ink3); }

/* Request form: spam trap and status */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.form-status:empty { display: none; }
.form-status.ok { padding: 14px 16px; border-radius: 14px; background: var(--green-tint); color: var(--green); font-weight: 600; }
.form-status.err { padding: 14px 16px; border-radius: 14px; background: var(--red-tint); color: var(--red); }
.request-form.sent label, .request-form.sent button { display: none; }
.request-form button[disabled] { opacity: .6; cursor: progress; }

/* Japanese: Latin faces first, then the system's Japanese fonts */
:root:lang(ja) {
  --jp: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;
  --display: 'Bricolage Grotesque', var(--jp);
  --body: 'Sora', var(--jp);
}
:lang(ja) body { line-height: 1.8; }
:lang(ja) .display { letter-spacing: .01em; line-height: 1.25; word-break: auto-phrase; }
:lang(ja) .hero-title { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.2; }
:lang(ja) .hero-sub { font-size: clamp(20px, 2vw, 27px); line-height: 1.45; letter-spacing: 0; }
:lang(ja) .h2 { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.25; }
:lang(ja) .pricing .h2 { font-size: clamp(30px, 3.6vw, 50px); }
:lang(ja) .request-title { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.3; }
:lang(ja) .check-card-title { font-size: 24px; line-height: 1.4; }
:lang(ja) .word { font-size: 26px; letter-spacing: .02em; }
:lang(ja) .label { letter-spacing: .08em; }
:lang(ja) .steps h3 { font-size: 20px; }
:lang(ja) .steps p, :lang(ja) .band-lead { line-break: strict; }
:lang(ja) .off { letter-spacing: .02em; }
:lang(ja) .tax { font-size: 13px; }
:lang(ja) .site-nav { gap: 24px; font-size: 15px; }
:lang(en) { word-break: normal; }

/* 404 */
.notfound { padding-top: 96px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.notfound p { margin: 0; font-size: 19px; color: var(--ink2); }

/* Tablet */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
  .check-card { max-width: 560px; }
  .band-head { grid-template-columns: 1fr; gap: 24px; }
  .five { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .five > li, .five > li:first-child { flex-direction: row; gap: 16px; padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--on-band); }
  .five > li:last-child { padding-right: 0; }
  .five > li .num { font-size: 48px; width: 44px; flex: none; }
  .steps { grid-template-columns: 1fr; max-width: 640px; }
  .request { grid-template-columns: 1fr; gap: 32px; }
  .request-form { max-width: 560px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { min-height: 68px; }
  .wm { font-size: 27px; }
  .by { font-size: 12px; }
  .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); z-index: 5; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; background: var(--card); border-radius: 24px; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .5); }
  .js .site-nav.open { display: flex; }
  .site-nav a:not(.pill) { padding: 10px 8px; }
  .site-nav .pill { margin-top: 8px; }
  .desk { display: none; }
  .hero { padding-top: 28px; padding-bottom: 56px; gap: 36px; }
  .hero-copy { gap: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .pill { width: 100%; min-height: 52px; }
  .check-card { border-radius: 28px; padding: 24px; }
  .check-card-title { font-size: 24px; }
  .check-list li { gap: 12px; padding: 12px 0; font-size: 15px; }
  .dot { width: 18px; height: 18px; }
  .tag { font-size: 11px; padding: 3px 10px; }
  .band-inner { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .band-lead { font-size: 17px; line-height: 1.55; }
  /* Phone: a 2 + 2 + 1 grid. Each step is a small column like on desktop
     (number, word, bullets); the fifth sits centred under the other four. */
  .five { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; border-top: 2px solid rgba(241, 237, 231, .5); }
  .five > li, .five > li:first-child { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 6vw, 28px) clamp(10px, 3.6vw, 18px) clamp(22px, 6.6vw, 30px) 0; border-left: 0; border-bottom: 1px solid var(--on-band); }
  .five > li:nth-child(2n) { padding: clamp(20px, 6vw, 28px) 0 clamp(22px, 6.6vw, 30px) clamp(12px, 4vw, 20px); border-left: 1px solid var(--on-band); }
  /* Fifth step spans the full width as its own two columns: number and word on the left,
     bullets on the right, lined up with the columns above. */
  .five > li:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: 0; row-gap: 10px; padding: clamp(20px, 6vw, 28px) 0 clamp(22px, 6.6vw, 30px); border-bottom: 0; }
  .five > li:last-child > div { display: contents; }
  .five > li:last-child .num { grid-column: 1; grid-row: 1; }
  .five > li:last-child .word { grid-column: 1; grid-row: 2; align-self: start; }
  .five > li:last-child .bl { grid-column: 2; grid-row: 1 / 3; align-self: center; padding-left: clamp(12px, 4vw, 20px); }
  .five > li > div { display: flex; flex-direction: column; gap: 10px; }
  .five > li .num { width: auto; font-size: clamp(38px, 11.5vw, 54px); }
  .five .word { font-size: clamp(17px, 5.4vw, 24px); line-height: 1.05; }
  .five .bl { gap: 7px; }
  .five .bl li { font-size: clamp(13px, 3.7vw, 16px); gap: 8px; line-height: 1.35; }
  .steps li { border-radius: 28px; padding: 24px; gap: 10px; }
  .steps h3 { font-size: 19px; }
  .steps p { font-size: 16px; }
  .stepn { width: 48px; height: 48px; font-size: 22px; }
  .pricing { padding-top: 64px; padding-bottom: 64px; gap: 24px; }
  .pricing-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-radius: 28px; padding: 28px; gap: 18px; }
  .was { font-size: 16px; }
  .off { font-size: 12px; }
  .li-list li { font-size: 15px; gap: 10px; }
  .plan .pill { align-self: stretch; min-height: 52px; }
  .plan .pill { white-space: normal; text-align: center; padding: 10px 20px; line-height: 1.3; }
  .request { padding-top: 56px; padding-bottom: 60px; gap: 22px; }
  .request-form { border-radius: 28px; padding: 22px; gap: 16px; }
  .footer-inner { padding-top: 44px; padding-bottom: 36px; gap: 28px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .footer-brand .wm { font-size: 27px; }
  .footer-legal { grid-column: 1 / -1; }
  .site-footer nav a { line-height: 2.2; }
}
