/* owner.domains — design system extracted from the design proposal.
   Tokens first, then layout, then components. */

:root {
    --teal: #0d9488;
    --teal-dark: #0b7d73;
    --teal-soft: #e2f6f0;
    --teal-line: #d7f2ec;
    --indigo: #4f46e5;
    --indigo-soft: #ece8ff;
    --indigo-line: #efecfb;
    --pink: #e5568a;
    --pink-soft: #fde4ef;
    --pink-line: #fbe3ee;
    --blue: #2b6cd4;
    --blue-soft: #dceafb;
    --blue-line: #dfeaf9;
    --amber: #d69011;
    --amber-soft: #fbf0d6;
    --amber-line: #f6ecd4;
    --violet: #5b4bd6;

    --ink: #14142b;
    --body: #5b5b74;
    --muted: #8a8aa0;
    --faint: #9a9ab0;
    --line: #ececf4;
    --surface: #ffffff;
    --surface-alt: #f7f7fb;

    --green: #22c55e;
    --red: #dc2626;
    --red-soft: #fdeaea;

    --radius-sm: 11px;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --pill: 999px;

    --shadow-card: 0 18px 40px -22px rgba(20, 20, 43, 0.4);
    --shadow-search: 0 30px 64px -28px rgba(20, 20, 43, 0.5);
    --shadow-pop: 0 22px 50px -18px rgba(20, 20, 43, 0.4);

    --font-display: 'Baloo 2', 'Trebuchet MS', cursive;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

    --container: 1120px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--body);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    color: var(--teal-dark);
}

img,
svg {
    max-width: 100%;
}

button,
input {
    font: inherit;
}

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

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* --- Layout ------------------------------------------------------------- */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: #fff;
    padding: 10px 18px;
    border-radius: var(--pill);
    font-weight: 700;
    z-index: 50;
}

.skip-link:focus {
    left: 24px;
}

/* --- Header ------------------------------------------------------------- */

.hero {
    position: relative;
    background: linear-gradient(150deg, #e6f8f1 0%, #eafaf4 40%, #eef4ff 100%);
    padding: 26px 24px 88px;
    overflow: hidden;
}

.hero--compact {
    padding-bottom: 40px;
}

/* Result state: query only, so the answer starts as high as possible. */
.hero--tight {
    padding-bottom: 26px;
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    animation: floaty 9s ease-in-out infinite;
    pointer-events: none;
}

.hero__blob--1 {
    top: -50px;
    left: 8%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 30% 30%, #a9ebd6, #7bd8c4);
    opacity: 0.5;
    animation-duration: 8s;
}

.hero__blob--2 {
    top: 180px;
    right: 6%;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle at 30% 30%, #bcd0ff, #9db4ff);
    opacity: 0.45;
    animation-duration: 10s;
}

.hero__blob--3 {
    bottom: 30px;
    left: 4%;
    width: 110px;
    height: 110px;
    border-radius: 30px;
    background: #ffd6a8;
    opacity: 0.4;
    transform: rotate(16deg);
}

.masthead {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--pill);
    padding: 12px 16px 12px 22px;
    box-shadow: var(--shadow-card);
    max-width: var(--container);
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand__mark {
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--teal), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    line-height: 1;
}

/* The five tools are the navigation. */
.masthead__nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
}

.masthead__nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #3d3d55;
    padding: 8px 14px;
    border-radius: var(--pill);
    white-space: nowrap;
}

.masthead__nav a:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--teal);
}

.masthead__nav a[aria-current='page'] {
    background: var(--ink);
    color: #fff;
}

.masthead__end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* --- Language switcher --------------------------------------------------- */

.langpicker {
    position: relative;
}

.langpicker__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--teal-line);
    border-radius: var(--pill);
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #3d3d55;
}

.langpicker__menu {
    position: absolute;
    top: 52px;
    right: 0;
    background: #fff;
    border: 1px solid var(--teal-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-pop);
    padding: 6px;
    z-index: 20;
    min-width: 172px;
    list-style: none;
    margin: 0;
}

.langpicker__menu[hidden] {
    display: none;
}

.langpicker__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: #3d3d55;
}

.langpicker__menu a:hover,
.langpicker__menu a[aria-current='true'] {
    background: #eafaf4;
    color: var(--ink);
}

.langpicker__code {
    font-size: 12px;
    font-weight: 800;
    color: var(--teal);
    width: 22px;
}

/* --- Hero content -------------------------------------------------------- */

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 60px auto 0;
    text-align: center;
}

.hero--compact .hero__content {
    margin-top: 40px;
}

.hero--tight .hero__content {
    margin-top: 26px;
}

.hero--tight .search {
    margin-top: 22px;
}

.hero h1.hero__query {
    font-size: clamp(26px, 4vw, 40px);
    margin: 0;
    word-break: break-word;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--teal-line);
    border-radius: var(--pill);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #0d7d72;
}

.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.04;
    margin: 22px 0 16px;
}

.hero h1 .accent {
    color: var(--teal);
}

.hero__lead {
    font-size: clamp(17px, 2.4vw, 20px);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 540px;
}

/* --- Search -------------------------------------------------------------- */

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--teal-line);
    border-radius: var(--radius-lg);
    padding: 10px 10px 10px 20px;
    margin: 34px auto 0;
    max-width: 640px;
    box-shadow: var(--shadow-search);
}

.search__icon {
    flex: none;
    color: var(--faint);
}

.search__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    padding: 10px 0;
}

.search__input::placeholder {
    color: var(--faint);
    font-weight: 500;
}

.search__type {
    font-size: 13px;
    font-weight: 800;
    color: var(--teal);
    background: var(--teal-soft);
    padding: 6px 11px;
    border-radius: 9px;
    white-space: nowrap;
}

.search__type[hidden] {
    display: none;
}

.search__submit {
    background: linear-gradient(135deg, var(--teal), #12b39c);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    padding: 14px 26px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.search__submit:hover {
    filter: brightness(1.05);
}

.examples {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.examples__label {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.chip {
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--teal-line);
    color: var(--teal);
    padding: 7px 15px;
    border-radius: var(--pill);
    cursor: pointer;
}

.chip--blue {
    border-color: var(--blue-line);
    color: var(--blue);
}

.chip--pink {
    border-color: var(--pink-line);
    color: var(--pink);
}

/* --- Sections ------------------------------------------------------------ */

.section {
    padding: 76px 0 20px;
}

.section__head {
    text-align: center;
    margin-bottom: 44px;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--indigo);
}

.eyebrow--teal {
    color: var(--teal);
}

.section__head h2 {
    font-weight: 700;
    font-size: clamp(26px, 4vw, 38px);
    margin: 12px 0 10px;
}

.section__head p {
    font-size: 17px;
    max-width: 520px;
    margin-inline: auto;
}

/* --- Tool cards ---------------------------------------------------------- */

.toolgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.toolcard {
    display: block;
    background: #fbfaff;
    border: 1px solid var(--indigo-line);
    border-radius: 18px;
    padding: 26px;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.toolcard:hover {
    color: inherit;
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.toolcard__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--indigo-soft);
    color: var(--violet);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.toolcard h3 {
    font-weight: 600;
    font-size: 19px;
    margin: 0 0 7px;
}

.toolcard p {
    font-size: 15px;
    line-height: 1.5;
}

.toolcard--teal {
    background: #fbfefd;
    border-color: #e2f2ee;
}

.toolcard--teal .toolcard__icon {
    background: #dcf5ee;
    color: var(--teal);
}

.toolcard--pink {
    background: #fff9fc;
    border-color: var(--pink-line);
}

.toolcard--pink .toolcard__icon {
    background: var(--pink-soft);
    color: var(--pink);
}

.toolcard--amber {
    background: #fffdf6;
    border-color: var(--amber-line);
}

.toolcard--amber .toolcard__icon {
    background: var(--amber-soft);
    color: var(--amber);
}

.toolcard--blue {
    background: #f8fbff;
    border-color: var(--blue-line);
}

.toolcard--blue .toolcard__icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.toolcard--feature {
    background: linear-gradient(150deg, var(--indigo), #7c6cf0);
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.toolcard--feature h3 {
    color: #fff;
}

.toolcard--feature p {
    color: #e6e3ff;
    margin-bottom: 16px;
}

.toolcard--feature span {
    font-size: 14px;
    font-weight: 700;
}

/* --- How it works -------------------------------------------------------- */

.steps {
    background: var(--surface-alt);
    border-radius: var(--radius-xl);
    padding: 52px 44px;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step {
    text-align: center;
}

.step__number {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--indigo);
}

.step:nth-child(2) .step__number {
    color: var(--teal);
}

.step:nth-child(3) .step__number {
    color: var(--pink);
}

.step h3 {
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 8px;
}

.step p {
    font-size: 15px;
    line-height: 1.55;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px 76px;
}

.faq h2 {
    font-weight: 700;
    font-size: clamp(24px, 3.6vw, 32px);
    margin: 0 0 28px;
    text-align: center;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    background: #fff;
}

.faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    font-size: 22px;
    color: var(--indigo);
    line-height: 1;
    font-family: var(--font-body);
}

.faq__item[open] summary::after {
    content: '−';
}

.faq__item p {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 14px;
}

/* --- Results ------------------------------------------------------------- */

.results {
    /* padding-block only: the horizontal padding belongs to .container,
       which this class is always combined with. */
    padding-block: 26px 72px;
}

.results__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 16px;
}

.card > h2 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 16px;
}

.card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px 28px;
}

.field__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.field__value {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    word-break: break-word;
}

.field__value--mono {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 500;
    word-break: break-all;
}

.field__note {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--pill);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
}

.status--ok {
    background: #e7f8ee;
    color: #14804a;
}

.status--warn {
    background: #fdf3dd;
    color: #97650a;
}

.status--bad {
    background: var(--red-soft);
    color: #b91c1c;
}

.status--neutral {
    background: var(--surface-alt);
    color: var(--body);
}

.taglist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.taglist li {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--ink);
    word-break: break-all;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.table th {
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 12px 10px 0;
    font-weight: 700;
}

.table td {
    padding: 10px 12px 10px 0;
    border-top: 1px solid var(--line);
    vertical-align: top;
    color: var(--ink);
}

.table td.mono {
    font-family: var(--font-mono);
    font-size: 13px;
    word-break: break-all;
}

.table__wrap {
    overflow-x: auto;
}

.recordtype {
    display: inline-block;
    min-width: 54px;
    text-align: center;
    background: var(--teal-soft);
    color: var(--teal);
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 800;
}

.prefixgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.prefixgrid li {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--surface-alt);
    border-radius: 8px;
    padding: 7px 10px;
    color: var(--ink);
}

.raw {
    margin-top: 8px;
}

.raw summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--indigo);
}

.raw pre {
    margin: 14px 0 0;
    background: var(--ink);
    color: #d6d6e6;
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.notice {
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.notice--error {
    background: var(--red-soft);
    color: #b91c1c;
}

.notice--info {
    background: var(--surface-alt);
    color: var(--body);
}

.linkbtn {
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--indigo);
    cursor: pointer;
}

.crosslinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.crosslinks__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Footer -------------------------------------------------------------- */

.footer {
    background: var(--ink);
    color: #c9c9d8;
    padding: 56px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer .brand {
    color: #fff;
    font-size: 19px;
    margin-bottom: 12px;
}

.footer .brand:hover {
    color: #fff;
}

.footer .brand__mark {
    background: linear-gradient(135deg, var(--indigo), #7c6cf0);
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

.footer__tagline {
    font-size: 14px;
    line-height: 1.6;
    color: var(--faint);
    max-width: 280px;
}

.footer__title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links a {
    color: #c9c9d8;
}

.footer__links a:hover {
    color: #fff;
}

.footer__bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid #2a2a45;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}

.footer__langs {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__langs a {
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
}

.footer__langs a:hover,
.footer__langs a[aria-current='true'] {
    color: #fff;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 960px) {
    .toolgrid,
    .steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Brand and language on the first row, the tools on a scrollable second
       row — they are the only way to reach a tool from here. */
    .masthead {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            'brand end'
            'nav nav';
        row-gap: 10px;
        border-radius: var(--radius-xl);
        padding: 14px 16px;
    }

    .masthead > .brand {
        grid-area: brand;
    }

    .masthead__end {
        grid-area: end;
    }

    .masthead__nav {
        grid-area: nav;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .masthead__nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 18px 16px 64px;
    }

    .container {
        padding-inline: 16px;
    }

    .toolgrid,
    .steps__grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .steps {
        padding: 32px 20px;
    }

    /* Two rows: icon + field + detected type, then a full-width button. */
    .search {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 6px 10px;
        padding: 8px 14px 12px;
        border-radius: var(--radius);
    }

    .search__icon {
        grid-row: 1;
        grid-column: 1;
    }

    .search__input {
        grid-row: 1;
        grid-column: 2;
        min-width: 0;
    }

    .search__type {
        grid-row: 1;
        grid-column: 3;
    }

    .search__submit {
        grid-row: 2;
        grid-column: 1 / -1;
        width: 100%;
    }

    .section {
        padding-top: 48px;
    }

    .card {
        padding: 20px;
    }
}
